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