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 | |
# Calvin's simple traffic shaper script | |
# Currently set up to handle traffic shaping on mb gateway | |
# Note that the ingress and egress rates are hardcoded in the commands below. | |
set -e | |
IFACE=$1 | |
if [ -z "$IFACE" ]; then | |
echo "Usage: $0 <iface>" |
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
ffmpeg -i /var/www/html/ffmpeg_open.mp4 -i /var/www/html/"$filename".mp4 -i /var/www/html/ffmpeg_close.mp4 -filter_complex concat=n=3:v=1:a=1 -acodec aac -vcodec libx264 -movflags +faststart -strict -2 -f mp4 output.mp4 |
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
#include <stdio.h> | |
int main(void) { | |
char pointer[] = "asdf"; | |
1[pointer] = 'c'; | |
printf("%s\n", pointer); | |
return 0; | |
} |
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
_mtime_=1401766508 | |
_guessed_eapi_=exheres-0 | |
_exlibs_=easy-multibuild /var/db/paludis/repositories/arbor/exlibs 1388110791 multibuild /var/db/paludis/repositories/arbor/exlibs 1388110791 pypi /var/db/paludis/repositories/arbor/exlibs 1388110791 python /var/db/paludis/repositories/arbor/exlibs 1397451124 setup-py /var/db/paludis/repositories/arbor/exlibs 1402721559 | |
DEPENDENCIES=( build+run: dev-libs/openssl[>=0.9.8e] dev-python/cffi[>=0.8][python_abis:*(-)?] dev-python/six[>=1.4.1][python_abis:*(-)?] test: dev-python/iso8601[python_abis:*(-)?] dev-python/pretend[python_abis:*(-)?] dev-python/pytest[python_abis:*(-)?] ) [[ defined-in = [ cryptography-0.2.2.exheres-0 ] ]] ( build+run: python_abis:2.7? ( dev-lang/python:2.7 ) python_abis:3.2? ( dev-lang/python:3.2 ) python_abis:3.3? ( dev-lang/python:3.3 ) python_abis:3.4? ( dev-lang/python:3.4 ) ) [[ defined-in = [ python.exlib ] ]] ( build: dev-python/setuptools[python_abis:*(-)?] ( test: dev-python/pytest[python_abis:*(-)?] ) ) [[ defined-in = [ setup-py.exlib |
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
# Drop this file into /etc/X11/xorg.conf.d | |
# This configures the middle and right-click areas at the *top* of the touchpad | |
# only. The main and bottom areas are left-click. | |
# The key setting is that AreaTopEdge is set to prevent you from moving the | |
# mouse cursor by accident while clicking the trackpoint buttons. | |
# Inspired by http://who-t.blogspot.ca/2013/12/lenovo-t440-touchpad-button.html | |
Section "InputClass" |
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
class webserver { | |
concat { '/etc/apache/vhostsfile': | |
} | |
} | |
define webserver::vhost($param) { | |
concat::fragment { "webserver_vhost_$name": | |
target => '/etc/apache/vhostsfile', | |
content => template('vhost_template'), | |
} |
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
KV=3.8.2 | |
ROOT='UUID=27289277-6fc5-4b51-98b2-bb266d6b4898' | |
ROOTFLAGS='subvol=exherbo,discard,space_cache,inode_cache,noatime' | |
parameters="initrd=\\EFI\\Exherbo\\initramfs-$KV.img root=$ROOT rootflags=$ROOTFLAGS loglevel=3" | |
echo -n "$parameters" | iconv -f utf8 -t ucs2 | efibootmgr -c -d /dev/sda -p 1 -g -l "\\EFI\\Exherbo\\vmlinuz-$KV.efi" -L "Exherbo Linux $KV" -@ - |
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
function getWikiText(o, callback) { | |
if (!o['relations']) { | |
callback(''); | |
return; | |
} | |
var wikiLink; | |
for (var i = 0; i < o['relations'].length; ++i) { | |
if (o['relations'][i]['type'] == 'wikipedia') { | |
wikiLink = parseURL(o['relations'][i]['url']); |
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
/ ==UserScript== | |
// @name MusicBrainz: Search Music Forest and add ISRCs | |
// @description This adds a link to Music Forest next to catalogue numbers on release pages and a link on the Music Forest page to add the ISRCs | |
// @version 20140408 | |
// @author - | |
// @namespace df069240-fe79-11dc-95ff-0800200c9a66 | |
// | |
// @include http://musicbrainz.org/release/* | |
// @include https://musicbrainz.org/release/* | |
// @include http://musicbrainz.org/release-group/* |
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
define atype ($interface_vip, $vip_addr_gw) { | |
file { "testfile-${interface_vip}": | |
content => template('testfile.erb'), | |
} | |
} |