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 / 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 / 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 / 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 / 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 / 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 / validate_ip.cs
Created December 6, 2014 14:16
validate IP address - test case progam
// Decompiled with JetBrains decompiler
// Type: val_ip.Program
// Assembly: val_ip, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: 5E7D5EDC-F012-4AF3-A5E5-6610706D35E8
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace val_ip
@h3xxx
h3xxx / android-apps.txt
Last active August 29, 2015 14:11
Android apps
Just my favourite apps:
Allegro
Apollo
Amazon Appstore
Avast Mobile Security
Aviary
CCleaner
Ceneo
Chrome
def makeRandStr(length = 7, chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJLKMNOPQRSTUVWXYZ0123456789')
str = ''
for num in 1..length
str += chars[rand(0..(chars.length - 1))]
end
return str
end
@h3xxx
h3xxx / httpd.conf
Created December 19, 2014 15:10
Apache2 subdomains (different ports) redirection
### from http://serverfault.com/questions/195611/how-do-i-redirect-subdomains-to-a-different-port-on-the-same-server
NameVirtualHost *:80
<VirtualHost *>
ServerAdmin [email protected]
ServerName dev.mydomain.com
ProxyPreserveHost On
# setup the proxy
@h3xxx
h3xxx / app.js
Last active August 29, 2015 14:11 — forked from jeff-hager-dev/app.js
var express = require('express');
var fs = require('fs');
var path = require('path');
var port = 3005;
var staticDir = "staticFiles"
var app = express();
app.use(function (req, res, next) {
//NOTE (JNHager): NEVER DO THIS IN A PRODUCTION SYSTEM. STRICTLY FOR TESTING LOCALLY!!!!