From inside the forked repository, add a new remote
pointing to the upstream repository.
$ git remote add upstream git://github.com/upstream/repo.git
$ git pull upstream master
#!/bin/bash | |
set -e | |
usage() { | |
echo "Usage: $0 [options] source.ext destination.gif" | |
echo ' -c crop output image. W:H:X:Y Pixels from top left corner' | |
echo ' -fps output Frames Per Second' | |
echo ' -s scale output image. X:Y ex: 480:360 or 480:-1 or -1:360' | |
echo ' -ss start time in hh:mm:ss.xxx or seconds' | |
echo ' -t duration in hh:mm:ss.xxx or seconds' |
<?php | |
$fp = @fopen('/dev/urandom','rb'); | |
if ($fp === FALSE) { | |
trigger_error('Can not open /dev/urandom.'); | |
die(); | |
} | |
$len = isset($argv[1]) && is_numeric($argv[1]) ? (int) $argv[1] : 32; |
<html> | |
<head> | |
<style> | |
frac { | |
top: 0.75em; | |
margin: -1em 0 0.5em; | |
display: inline-block; | |
position: relative; | |
} | |
num, den { |
#!/bin/bash | |
set -e | |
dig +short @resolver1.opendns.com myip.opendns.com |
#!/bin/bash | |
set -e | |
usage() { | |
echo "Usage: $0 infile1.ext [infile2.ext ...] outfile.ext" | |
echo | |
exit 1 | |
} | |
confirm() { |
#!/bin/bash | |
set -e | |
if [ ! -f cmdline.txt -o ! -f kernel.img -o ! -f bootcode.bin ]; then | |
echo 'This script must be run inside the /boot partition' | |
exit 1 | |
fi | |
enableWIFI() { | |
echo -n 'Enter 2 letter ISO country code (https://www.iso.org/obp/ui/#search): ' |
module wedge(radius, start_angle, end_angle) { | |
// https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Other_Language_Features#.24fa.2C_.24fs_and_.24fn | |
fragments = $fn > 0 | |
? ($fn >= 3 ? $fn : 3) | |
: ceil(max(min(360/$fa, radius*2*PI/$fs), 5)); | |
angle = end_angle - start_angle; | |
step = angle / fragments / (abs(angle)/360); | |
polygon([ |