Skip to content

Instantly share code, notes, and snippets.

@0x003e
0x003e / install-go.sh
Last active October 5, 2020 11:44 — forked from jpillora/install-go.sh
Install latest version of Go in Linux
#!/bin/bash
#force run with bash
if [ -z "$BASH_VERSION" ]
then
exec bash "$0" "$@"
return
fi
#create local scope
@0x003e
0x003e / golang.sh
Last active October 1, 2016 20:16 — forked from jacoelho/golang.sh
Install golang debian/ubuntu
#!/bin/bash
export GOLANG_VERSION=1.7.1
export GOLANG_DOWNLOAD_URL=https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz
apt-get update -qq
apt-get install -y --no-install-recommends \
g++ \
gcc \
https://db.tt/7JS0KyLi
@0x003e
0x003e / README.md
Created August 27, 2016 05:53 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@0x003e
0x003e / remote_rpi.md
Created December 21, 2015 00:38 — forked from stonehippo/remote_rpi.md
Getting a Raspberry Pi set up for x11vnc and Bonjour (mDNS) access

Getting my Raspberry Pi set up

Getting on the network

Before the rest of this gist is useful, you've got to get your Raspberry Pi on the network. I followed the information from the Adafruint Learning System Raspberry Pi tutorials, which can be found at http://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup.

Couple of additional network setup notes

The two files that are most important are

@0x003e
0x003e / node-and-npm-in-30-seconds.sh
Created November 13, 2015 07:34 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
Gestion du cache de l'application
===
***
[TOC]
***
Il n'est pas nécessaire de nettoyer le cache après chaque livraison, dans la mesure que nous si le serveur apache est correctement configuré, celui-ci renvoie **une en-tête pour le navigateur internet du client** qui stipule de ne pas mètre en cache les fichiers les informations issues du serveur du **selon le protocole HTTP**.
> Source: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9
@0x003e
0x003e / install.sh
Last active August 29, 2015 11:26 — forked from wdullaer/install.sh
Install Latest Docker and Docker-compose on Ubuntu
# Ask for the user password
# Script only works if sudo caches the password for a few minutes
# sudo su && apt-get isntall curl -y && curl https://gist.github.com/0x003e/0554581634389790398b/raw/8ee28b111cf7f7367f2d01ed39d9862ae94f235e/install.sh |sh
#
sudo true
# Install kernel extra's to enable docker aufs support
sudo apt-get -y install linux-image-extra-$(uname -r)
# Add Docker PPA and install latest version
@0x003e
0x003e / gist:4b0de76d53c709871684
Last active August 29, 2015 14:27 — forked from fionnan/gist:bcba3482490a691c9fa8
Delete docker images
sudo docker ps | cut -f1 -d' ' | tail -n+2 | xargs sudo docker kill && for cont in $(sudo docker ps -a | grep "Exit" | cut -d " " -f 1); do sudo docker rm $cont; done && sudo docker images | awk -F " " '{print $3}' | sed '1d' | xargs sudo docker rmi