Jumat, 17 Maret 2017

chat widget test

Selasa, 24 Februari 2015

random notes

/etc/rc.local

mount -t cifs //192.168.56.1/projects /home/[user]/projects -o `cat /home/[user]/.projects_smb_opts`
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3000


gnome-terminal shortcut

[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=projects
Name[en_US]=projects
Exec=gnome-terminal --tab-with-profile=Default --working-directory=/home/[user]/projects
Comment[en_US]=

Sharing files from windows to lubuntu using samba

nano .projects_smb_opts
user=[username],password=[password],dir_mode=0777,file_mode=0777
mkdir /home/[lubuntu username]/projects
sudo nano /etc/rc.local
mount -t cifs //192.168.56.2/projects /home/[lubuntu username]/projects -o `cat /home/[lubuntu username]/.projects_smb_opts`

static ip on lubuntu

/etc/network/interfaces
auto eth0

iface eth0 inet static
address 192.168.56.101
gateway 192.168.56.100
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255

Selasa, 15 Juli 2014

git push huge files

add config:
[http]
  postBuffer = 209715200