Skip to content

Instantly share code, notes, and snippets.

View kramarama's full-sized avatar
sand of time

Vladimir K kramarama

sand of time
View GitHub Profile
Atom settings gist
@kramarama
kramarama / services
Created December 20, 2014 23:18
services management
sudo apt-get install sysv-rc-conf
@kramarama
kramarama / pin
Created December 19, 2014 23:24
pin package
echo "mongodb-org hold" | sudo dpkg --set-selections
@kramarama
kramarama / misc
Last active August 29, 2015 14:11
Ubuntu Packages
sudo apt-cache madison virtualbox
apt-cache showpkg expack
apt-cache search expack
sudo apt-get apt-rdepends
apt-rdepends -p packagename
@kramarama
kramarama / sw
Created December 16, 2014 14:38
home
apt-get install sweethome3d
@kramarama
kramarama / docker-logrotate
Created December 13, 2014 13:47
docker logrotate
/var/lib/docker/containers/*/*.log {
rotate 7
daily
compress
delaycompress
copytruncate
sharedscripts
postrotate
/usr/bin/docker restart forwarder
endscript
@kramarama
kramarama / config
Created December 3, 2014 23:02
thunderbird default browser
network.protocol-handler.warn-external.http
network.protocol-handler.warn-external.https
set both to yes
@kramarama
kramarama / alternatives
Created December 3, 2014 22:32
alternatives
sudo update-alternatives --get-selections
sudo update-alternatives --set x-www-browser
sudo update-alternatives --set gnome-www-browser
sudo update-alternatives --config x-www-browser
sudo update-alternatives --config gnome-www-browser
/usr/bin/chromium-browser
/usr/bin/google-chrome-stable
gconftool-2 --get /desktop/gnome/url-handlers/http/command
@kramarama
kramarama / vpn
Last active August 29, 2015 14:10
fuck roskomnadzor
http://www.vpnbook.com/
sudo ifdown eth0 && sudo ifup eth0
nmcli dev list iface wlan0 | grep IP4
sudo /etc/init.d/dns-clean restart
sudo /etc/init.d/networking force-reload
sudo /etc/init.d/nscd restart
sudo /etc/init.d/dnsmasq restart
@kramarama
kramarama / exe
Created November 27, 2014 16:35
windows suxx
mstsc.exe /console /admin