Skip to content

Instantly share code, notes, and snippets.

Avatar

Pavel Roskin proski

View GitHub Profile
@jimporter
jimporter / build-boost-libc++
Last active Jan 2, 2020
Build Boost against libc++
View build-boost-libc++
#!/bin/sh
# First, build libc++ See <http://libcxx.llvm.org/>, "Build on Linux using CMake
# and libsupc++." and substitute libsupc++ for libstdc++. NOTE: You'll probably
# need to explicitly link libsupc++ when you compile your own code!
#
# Next, download Boost and extract it somewhere. Set SRC_DIR to that location.
SRC_DIR=$HOME/src/boost_1_55_0
# Set this to be the install prefix. "/usr" is also a good choice.
@dixson3
dixson3 / workspace.sh
Created Jan 10, 2014
Create and manage a case-sensitive disk-image on OSX. This is great when you have a need to work with case-sensitive repos on a mac.
View workspace.sh
#!/bin/bash
# where to store the sparse-image
WORKSPACE=~/Documents/workspace.dmg.sparseimage
create() {
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE}
}
detach() {
@dashohoxha
dashohoxha / install_wifi_access_point.sh
Last active Nov 22, 2019
How to setup a Wifi Access Point on Ubuntu 12.04 (or its derivatives).
View install_wifi_access_point.sh
#!/bin/bash
### Setup a wifi Access Point on Ubuntu 12.04 (or its derivatives).
### make sure that this script is executed from root
if [ $(whoami) != 'root' ]
then
echo "
This script should be executed as root or with sudo:
sudo $0
"
@fedir
fedir / gist-backup.py
Last active Apr 7, 2020 — forked from nicerobot/backup.sh
Clone or update all user's gists #backup #github #gists #management
View gist-backup.py
#!/usr/bin/env python
# Clone or update all a user's gists
# curl -ks https://raw.github.com/gist/5466075/gist-backup.py | USER=fedir python
# USER=fedir python gist-backup.py
import json
import urllib
from subprocess import call
from urllib import urlopen
import os