Skip to content

Instantly share code, notes, and snippets.

View itwars's full-sized avatar
😎
C◎⦿L

Vincent RABAH itwars

😎
C◎⦿L
View GitHub Profile
@itwars
itwars / nodejs-rpi.sh
Last active February 1, 2017 09:20
Node.JS Raspberry Pi Package builder Raspbian See details on http://nodejs-news.com
#!/bin/bash
#---------------------------------------
# Node.JS Raspberry Pi Package builder
# Raspbian
# http://nodejs-news.com
#---------------------------------------
echo "-> Getting fpm (Effing package managers) Ruby gem"
sudo gem install fpm --no-ri --no-rdoc
@itwars
itwars / gzip_content.rb
Last active December 21, 2015 07:09
Gzip Generation Plugin For Jekyll
#
# Gzip Generation Plugin For Jekyll
#
module Jekyll
#
# Polymorphic Monkey-Patching
#
# Page, Post, and StaticFile have very different interfaces, but this plugin
@itwars
itwars / brewcask-update.sh
Last active August 29, 2015 14:01
Snippet that you must start right after a brew update to be notify of what brew cask app need to be updated on your Mac OSX
#!/usr/bin/env bash
#┌───────────────────────────────┐
#│ Print cask packages thet need │
#│ to be updated │
#└───────────────────────────────┘
caskList=( $(brew cask list) )
for i in "${caskList[@]}"; do
info=( $(brew cask info $i) )
@itwars
itwars / docker-compose-download.sh
Last active November 24, 2015 19:11
Always download the latest version of docker-compose for Linux
curl -s https://github.com/docker/compose/releases/latest | sed -e 's#<html><body>You are being <a href="https://github.com/docker/compose/releases/tag/##g' -e 's#">redirected</a>.</body></html>##' | xargs -0 -I % curl -L https://github.com/docker/compose/releases/download/%/docker-compose-`uname -s`-`uname -m` | sudo tee /usr/local/bin/docker-compose > /dev/null; sudo chmod +x /usr/local/bin/docker-compose
@itwars
itwars / docker-machine-download.sh
Last active April 27, 2018 08:49
Always download the latest version of docker-machine
curl -s https://github.com/docker/machine/releases/latest | sed -e 's#<html><body>You are being <a href="https://github.com/docker/machine/releases/tag/##g' -e 's#">redirected</a>.</body></html>##' | xargs -i -t curl -L https://github.com/docker/machine/releases/download/{}/docker-machine-`uname -s`-`uname -m` --output /tmp/docker-machine && chmod +x /tmp/docker-machine && sudo cp /tmp/docker-machine /usr/local/bin/docker-machine
@itwars
itwars / Aircrack Commands
Created September 18, 2016 16:02 — forked from victorreyesh/Aircrack Commands
Cracking WPA2 / WEP Wifi / Aircrack 10 seconds guide. For Mac OSX
//Install Macports.
//Install aircrack-ng:
sudo port install aircrack-ng
//Install the latest Xcode, with the Command Line Tools.
//Create the following symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
//Figure out which channel you need to sniff:
sudo airport -s
sudo airport en1 sniff [CHANNEL]
modprobe bonding
ifconfig bond0 192.168.0.1 netmask 255.255.0.0
ifenslave bond0 eth0 eth1
@itwars
itwars / vimrc
Last active October 1, 2017 10:08
" ┌───────────────────────────┐
" │ NeoVim configuration file │
" │ Author: Vincent RABAH │
" │ Update date: 2017-06-01 │
" └───────────────────────────┘
" ┌─────────┐
" │ Plugins │
" └─────────┘
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {