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 / Template_object_class.java
Last active August 29, 2015 14:10
Template object class
package PACKAGE;
import PACKAGE...;
/**
* DOCUMENT
*
* @author $Author: h3XXx $
* @version $Revision: 100000 $
*/
public class OBJECTClass extends OBJECTClassGeneric
@h3xxx
h3xxx / linux_disk_recovery_tools.txt
Created December 1, 2014 09:01
Linux disk recovery tools
https://www.raymond.cc/blog/5-free-tools-to-backup-and-restore-master-boot-record-mbr/2/
http://www.rodsbooks.com/gdisk/repairing.html
parted / gparted
gpart
gdisk
fdisk
sfdisk
BOOTREC /FIXMBR
@h3xxx
h3xxx / gen_ips.py
Last active August 29, 2015 14:10
Generate random IP addresses
#!/usr/bin/python
import sys
import random
count = 10 # default value
if len(sys.argv) > 1:
try:
count = int(sys.argv[1])
@h3xxx
h3xxx / unix_scraps.txt
Created November 9, 2014 20:51
unix scraps
Is the internets on fire due to FOSS bugs? Try
host -t txt istheinternetonfire.com
dig +short -t txt istheinternetonfire.com
May be add to your bash/ksh/zsh startup file?
echo '*** BUG Watch * ' >> ~/.bash_profile
echo 'dig +short -t txt istheinternetonfire.com ' >> ~/.bash_profile
echo '*** *** * * * * ' >> ~/.bash_profile
@h3xxx
h3xxx / wymagania.txt
Last active August 29, 2015 14:09
wymagania
- Github, GIT
- metodologia: Getting Things Done®, Agile SCRUM, TDD/BDD, DDD, CQRS, event sourcing
- mobiledev: PhoneGap, Titanium
- Node-Webkit
- Umiejętność bezwzrokowego pisania na klawiaturze
- CoffeeScript, Less/Sass, Grunt, Angular (restangular, ui-router), NodeJS, jQuery, Bower, Ember, Backbone, CanJS, Meteor, EmberJS, express, sails, Web Components i framework Polymer, AMD/CommonJS modules, RequireJS, r.js optimizer, CommonJS modules + Browserify, ES6 Harmony modules + ES6 transpiler + SystemJS
- Magento, Typo3
- AWS - elasticsearch
- mongoDB
@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

@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 / 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 / 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 / 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