This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [[ $EUID -ne 0 ]]; then | |
echo -e " | |
ROOT PRIVILEDGES NEEDED! | |
You have to run this script as root. | |
Aborting... | |
" | |
exit 1 | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Node.js for Raspberry Pi 2 Packaging Script | |
## ========================================= | |
## Use like this: | |
## ./buildnode.sh <node_tarball_version> | |
clean () { | |
rm -rvf node-v$1 node-v$1-rpi2 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/sh | |
# | |
# Build script to cross-compile OpenOCD with MinGW on Mint Linux (FTDI, JLINK, TI-ICDI, OSBDM). | |
# | |
# 7zip | |
# curl | |
# git | |
# MinGW-W64 | |
# libtool | |
# Automake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget --no-check-certificate https://raw.github.com/bagder/curl/master/lib/mk-ca-bundle.pl | |
perl mk-ca-bundle.pl && rm certdata.txt | |
mkdir -p ~/.ssl/ && mv ca-bundle.crt mk-ca-bundle.pl ~/.ssl | |
echo "ca_certificate = ~/.ssl/ca-bundle.crt" >> ~/.wgetrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# dependencies | |
echo "Installing dependencies via Homebrew (http://brew.sh)" | |
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew update | |
brew install gcc48 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
from os import walk, rename, unlink, mkdir, remove | |
from os.path import isdir, exists | |
from sys import argv, exit, getfilesystemencoding | |
from shutil import copyfile | |
import shutil | |
conversion = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# AUTHOR: Andy Savage <[email protected]> | |
# GITHUB: https://gist.github.com/hongkongkiwi/cfef6910c5c644eaebc9 | |
# PURPOSE: After building one or more packages in OpenWRT this script signs them with a key file | |
# this can then be easily used in opkg to verify signatures. | |
# | |
KEY_DIR="$HOME/signify-keys" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Node.js for Raspberry Pi 1 Packaging Script | |
## ========================================= | |
## Use like this: | |
## ./buildnode.sh <node_tarball_version> | |
clean () { | |
rm -rvf node-v$1/ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Node.js for Raspberry Pi 2 Packaging Script | |
## ========================================= | |
## Use like this: | |
## ./buildnode.sh <node_tarball_version> | |
clean () { | |
rm -rvf node-v$1/ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## Node.js for Raspberry Pi Packaging Script | |
## ========================================= | |
## Execute this script from within node.js git repo | |
## Use like this: | |
## ~/node/$ VERSION=v0.10.0 ./buildnode.sh | |
if [ -z $VERSION ]; then | |
echo "set the VERSION first" | |
exit 1 |