Skip to content

Instantly share code, notes, and snippets.

View heralight's full-sized avatar

Alexandre Richonnier heralight

View GitHub Profile
@heralight
heralight / Remove all git tags
Last active November 11, 2017 16:31 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
# Delete local tags.
git tag -d $(git tag -l)
#Fetch remote tags.
git fetch
#Delete remote tags.
git push origin --delete $(git tag -l) # Pushing once should be faster than multiple times
#Delete local tags.
git tag -d $(git tag -l)
# for shell copy paste:
@heralight
heralight / bootstrap.sh
Created October 27, 2017 15:58 — forked from keo/bootstrap.sh
Setup encrypted partition for Docker containers
#!/bin/sh
# Setup encrypted disk image
# For Ubuntu 14.04 LTS
CRYPTFS_ROOT=/cryptfs
apt-get update
apt-get -y upgrade
apt-get -y install cryptsetup
Complete installation process:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev mercurial
sudo apt-get update
sudo apt-get upgrade
cd ~
mkdir git
cd ~/git
package demo.js
import net.liftweb.http.js.JsCmd
object JsCommands30 {
/**
* JsSchedule the execution of the JsCmd using setTimeout()
* @param what the code to execute
*/