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 | |
# This script dumps a database to SQL, compresses, encrypts and timestamps it, then saves it to Dropbox. Ideal for a cronjob. | |
# It uses symmetric encryption, so guard your password carefully. | |
# | |
# NOT RECOMMENDED FOR LARGE DATABASES! | |
# Dump a MySQL database | |
# Read this for how to get your password into mysqldump: | |
# https://dev.mysql.com/doc/refman/5.1/en/password-security-user.html | |
mysqldump -u username > database.sql |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<config version="2" xmlns="http://mediatomb.cc/config/2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://mediatomb.cc/config/2 http://mediatomb.cc/config/2.xsd"><!-- | |
Read /usr/share/doc/mediatomb-common/README.gz section 6 for more | |
information on creating and using config.xml configration files. | |
--> | |
<server> | |
<ui enabled="yes" show-tooltips="yes"> | |
<accounts enabled="no" session-timeout="30"> | |
<account user="mediatomb" password="mediatomb"/> | |
</accounts> |
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/env ruby | |
# PVC: Easy as shell pipes | |
# https://rubygems.org/gems/pvc | |
require 'pvc' | |
# SoX: Sound eXchange | |
# http://sox.sourceforge.net/ | |
destination_dir = 'amplified' |
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
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
import time | |
import sublime_plugin | |
class TimestampCommand(sublime_plugin.EventListener): | |
"""Expand `isoD`, `now`, `datetime`, `utcnow`, `utcdatetime`, | |
`date` and `time` |
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/env ruby | |
# Open Buildkite builds for the current repo and branch | |
# Tested on OSX 10.10.5 | |
repo = `git info | grep remote.origin.url | sed -nE 's/.*github\.com[\:\/](.*)\.git/\\1/p'`.chomp | |
buildkite_slug = repo.gsub('_', '-') | |
branch = ARGV.length > 0 ? ARGV[0] : `git rev-parse --abbrev-ref HEAD`.chomp | |
`open https://buildkite.com/#{buildkite_slug}/builds?branch=#{branch}` |
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
def hello_world | |
puts 'Hello, World!' | |
end | |
hello_world |
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 -e | |
repo=$1 | |
tag1=$2 | |
tag2=$3 | |
get_pkgs () { | |
img=$1 | |
file=$2 |
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
// ==UserScript== | |
// @name Basecamp - Projects Sticky Header | |
// @namespace http://tampermonkey.net/ | |
// @version 0.13 | |
// @description This script adds a new sticky header to Basecamp projects and todo lists on scroll. Never forget where you are again! | |
// @updateURL https://gist.github.com/lucaswilric/75f9492fc64befed433e32b3013bc1ab/raw/basecamp-projects-sticky-header.user.js | |
// @downloadURL https://gist.github.com/lucaswilric/75f9492fc64befed433e32b3013bc1ab/raw/basecamp-projects-sticky-header.user.js | |
// @author Dan Berkowitz, Lucas Wilson-Richter | |
// @match https://3.basecamp.com/* | |
// @grant GM_addStyle |