This file contains 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 | |
ffmpeg -i ${1}.srt ${1}.ass | |
ffmpeg -i ${1}.mp4 -vf ass=${1}.ass ${1}_subtitles.mp4 |
This file contains 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
.file "sh.s" | |
.text | |
.globl main | |
.type main, @function | |
main: | |
subl $32, %esp | |
movb $0x2f, 16(%esp) | |
movb $0x62, 17(%esp) | |
movb $0x69, 18(%esp) |
This file contains 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 | |
import os | |
import sys | |
import shutil | |
PACKAGE_NAME = "some_package" | |
def id_generator(size=6, chars=string.ascii_uppercase + string.digits): | |
return ''.join(random.choice(chars) for _ in range(size)) |
This file contains 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
[metadata] | |
title = 1 | |
artist = 2 | |
album = 3 |
This file contains 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
""" | |
config.py | |
John Andersen | |
johnandersenpdx@gmail.com | |
This file provides quick access to sections | |
of a config file by use of ConfigParser. | |
""" | |
import os |
This file contains 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
var sc_api = function sc_api (sub_domain, js_type) | |
{ | |
this.protocol = "http"; | |
this.domain = "datadash.io"; | |
// Defualt sub_domain is pdx | |
if ( typeof sub_domain === "undefined" ) | |
{ | |
sub_domain = "pdx"; | |
} | |
this.sub_domain = sub_domain; |
This file contains 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
<script type="text/javascript"> | |
function factor ( mult, add ) | |
{ | |
if ( mult > 0 ) | |
{ | |
for ( var i = -mult; i < mult; ++i ) | |
{ | |
for ( var j = mult; j >= -mult; --j ) | |
{ | |
if ( i * j == mult && i + j == add ) |
This file contains 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 | |
# Make sure we are passed a username so we can add the user to a docker group | |
USER="" | |
if [ "$1" != "" ]; then | |
USER=$1 | |
else | |
echo You need to enter a username or '${USER}' as the fisrt argument | |
exit 0 | |
fi |
This file contains 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
postgresql: | |
image: sameersbn/postgresql:9.4 | |
environment: | |
- DB_USER=gitlab | |
- DB_PASS=password | |
- DB_NAME=gitlabhq_production | |
volumes: | |
- /srv/docker/gitlab/postgresql:/var/lib/postgresql | |
gitlab: | |
image: sameersbn/gitlab:7.11.3 |
This file contains 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
couchdb: | |
image: klaemo/couchdb:latest | |
ports: | |
- "15984:5984" | |
volumes: | |
- /srv/docker/couchdb:/usr/local/var/lib/couchdb | |