Skip to content

Instantly share code, notes, and snippets.

View grekko's full-sized avatar
🙃
wAt

Gregory Igelmund grekko

🙃
wAt
View GitHub Profile
@grekko
grekko / retrieve-27c3-hq-video-recordings
Created January 15, 2011 19:18
Retrieve all CCC 27C3 Recordings via FTP from one of for random FTP Mirrors
require 'net/ftp'
require 'uri'
ftp_hosts_hq = %w(
ftp://ftp.halifax.rwth-aachen.de/CCC/27C3/mp4-h264-HQ/
ftp://mirror.fem-net.de/CCC/27C3/mp4-h264-HQ/
ftp://ftp.selfnet.de/CCC/27C3/mp4-h264-HQ/
ftp://ftp.uni-kl.de/CCC/27C3/mp4-h264-HQ/
)
hallo welt
@grekko
grekko / mysqldump-all-databases.sh
Created February 24, 2012 11:11
MySQLdump all database in separate files
#!/bin/bash
DBUSER=root
DBPASS=deinrootpasswort
DUMPDIR=./DatabaseDumps
DUMPDATE=$(date '+%Y-%m-%d')
if [ ! -d $DUMPDIR ] ; then
mkdir $DUMPDIR
fi
@grekko
grekko / Mail Delivery Subsystem Error
Created October 7, 2013 13:32
Mail Delivery Subsystem Error
Delivery to the following recipient failed permanently:
[email protected]
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain airbrake.io by mxa.mailgun.org. [198.61.253.48].
The error that the other server returned was:
550 5.1.0 Recipient rejected: <[email protected]>
@grekko
grekko / .tmux.conf
Last active December 29, 2015 08:19
My tmux conf example file which I use on several servers
# using vi mode keys
setw -g mode-keys vi
# color settings
set -g default-terminal "screen-256color"
set -g pane-active-border-fg yellow
unbind q
bind q kill-window
--type-set=haml=.haml
--type-set=slim=.slim
--type-add=html=.haml,.slim
--type-set=sass=.sass,.scss
--type-add=css=.sass,.scss
--type-set=coffee=.coffee
--type-add=js=.js.erb,.coffee
# Task: Implement the rcat utility and get these tests to pass on a system
# which has the UNIX cat command present
# To see Gregory Brown's solution, see http://github.com/elm-city-craftworks/rcat
# Feel free to publicly share your own solutions
rrequire "open3"
working_dir = File.dirname(__FILE__)
gettysburg_file = "#{working_dir}/data/gettysburg.txt"
@grekko
grekko / null.gemspec
Last active August 29, 2015 14:05
Null Object for Ruby
Gem::Specification.new do |s|
s.name = 'null'
s.version = '0.0.1'
s.platform = Gem::Platform::RUBY
s.author = 'Gregory Igelmund'
s.email = '[email protected]'
s.summary = 'Dynamic Null Object'
s.description = 'Responds on all methods with itself. Credits to @flori. NullObject is taken from Tins: https://github.com/flori/tins'
s.files = ['null.rb']
@grekko
grekko / play-bar.yml
Last active August 29, 2015 14:07
Ansible playbook w/ multiple play includes
---
- hosts: all
remote_user: root
tasks:
- name: Say bar
shell: echo "bar"
@grekko
grekko / .envrc.sample
Last active August 29, 2015 14:07
Ruby Tapas Episode fetcher
export TAPAS_HTTP_COOKIE=
export HTTP_AUTH=