Skip to content

Instantly share code, notes, and snippets.

View h3xxx's full-sized avatar
:octocat:
hello :trollface: 💻 :hurtrealbad:

Roger Bonin h3xxx

:octocat:
hello :trollface: 💻 :hurtrealbad:
View GitHub Profile
@h3xxx
h3xxx / install_apps.sh
Last active December 21, 2015 20:49
some of my must have applications I have to install on clean system
#!/bin/bash
### system tools ###
apr-get install mc htop byobu exfat-fuse glances
### desktop tools ###
apr-get install conky nautilus-dropbox pidgin
### graphics ###
apr-get install gimp inkscape
@h3xxx
h3xxx / pretty_dist_upgrade.sh
Created October 20, 2013 18:23
pretty ubuntu dist upgrade
sudo apt-get update
sudo apt-get upgrade
sudo apt-get --purge autoremove
sudo apt-get clean all
sudo apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
# do-release-upgrade -c
sudo do-release-upgrade
@h3xxx
h3xxx / eclipse-kepler.desktop
Created November 8, 2013 11:21
just a desktop shortcut for Eclipse IDE to workaround Unity menu bug
[Desktop Entry]
Name=Kepler
Comment=Eclipse Kepler
Keywords=eclipse;kepler;
Exec=env UBUNTU_MENUPROXY= /usr/bin/eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
StartupNotify=true
OnlyShowIn=GNOME;Unity;
@h3xxx
h3xxx / uninstall-ubuntu-lenses.sh
Last active December 27, 2015 18:39
uninstall Ubuntu Lenses shopping script from https://fixubuntu.com/
gsettings set com.canonical.Unity.Lenses remote-content-search none;
if [ `cat /etc/lsb-release | grep DISTRIB_RELEASE | cut -d"=" -f2` \< '13.10' ]; then sudo apt-get remove -y unity-lens-shopping; else gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"; fi;
sudo sh -c 'echo "127.0.0.1 productsearch.ubuntu.com" >> /etc/hosts';
@h3xxx
h3xxx / eclipse_plugins.txt
Created November 17, 2013 22:22
eclipse plugins
...
@h3xxx
h3xxx / upgrade_mint_petra2qiana.sh
Created June 24, 2014 18:13
upgrade Mint Linux 16 (Petra) to 17 (Qiana)
sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list
sudo sed -i 's/petra/qiana/' /etc/apt/sources.list
sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list.d/official-package-repositories.list
sudo sed -i 's/petra/qiana/' /etc/apt/sources.list.d/official-package-repositories.list
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get upgrade
@h3xxx
h3xxx / apt.conf
Created June 25, 2014 06:57
apt proxy configuration
// /etc/apt/apt.conf
// replace proxy_server.com:8000 with your proxy server url
Acquire::http::proxy "http://proxy_server.com:8000/";
Acquire::ftp::proxy "ftp://proxy_server.com:8000/";
Acquire::https::proxy "https://proxy_server.com:8000/";
@h3xxx
h3xxx / reinstall_grub.sh
Created June 27, 2014 06:21
reinstall Grub on harddisk using USB Linux
# let's assume you want to reinstall Grub on /dev/sda where Linux is on /dev/sda2
sudo mkdir /mnt/temp
sudo mount /dev/sda2 /mnt/temp
sudo mount --bind /dev /mnt/temp/dev &&
sudo mount --bind /dev/pts /mnt/temp/dev/pts &&
sudo mount --bind /proc /mnt/temp/proc &&
sudo mount --bind /sys /mnt/temp/sys
@h3xxx
h3xxx / test.svg
Last active August 29, 2015 14:05
just a SVG file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@h3xxx
h3xxx / sublime-text-plugins.md
Last active August 29, 2015 14:06
Plugins for Sublime Text

Package Control : https://sublime.wbond.net/installation

import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) 

GIT : https://github.com/kemayo/sublime-text-git

GitGutter : https://github.com/jisaacks/GitGutter