- Ruby (gem): manage deps (chef, cap)
- Opscode Chef: apply config. to target system
- Berkshelf: manage chfe deps (cookbooks)
- Capistrano: deploy sources to server
- composer: deps manager for php
- Symfony 2
- vagrant
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/bash | |
BITS=2048 | |
# In one line: | |
# rm -f temp.key && ssh-keygen -t rsa -b 2048 -f temp.key -N "" -q && ssh-keygen -e -f temp.key -m PKCS8 | tr "\n" " " && echo && cat temp.key | tr "\n" " " && echo | |
# In multiple lines: | |
rm -f temp.key | |
ssh-keygen -t rsa -b $BITS -f temp.key -N "" -q |
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
[Nemo Action] | |
Active=true | |
Name=Compare with Meld | |
Name[cz]=Srovnání s meld | |
Name[de]=Mit meld vergleichen | |
Name[fr]=Comparer avec meld | |
Name[nl]=Vergelijk met meld | |
Comment=Show differences between files or directories | |
Comment[cz]=Ukázat rozdíly mezi souborama a složky |
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
import BaseHTTPServer | |
from SimpleHTTPServer import SimpleHTTPRequestHandler | |
import sys | |
import base64 | |
key = "" | |
class AuthHandler(SimpleHTTPRequestHandler): | |
''' Main class to present webpages and authentication. ''' | |
def do_HEAD(self): |
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 heidiDecode(hex) { | |
var str = ''; | |
var shift = parseInt(hex.substr(-1)); | |
hex = hex.substr(0, hex.length - 1); | |
for (var i = 0; i < hex.length; i += 2) | |
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift); | |
return str; | |
} | |
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393')); |
As configured in my dotfiles.
start new:
tmux
start new with session name:
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
#!/usr/bin/env ruby | |
require 'ipaddr' | |
def usage | |
puts "#{$0} supernets file" | |
puts "Checks if a file full of ip-addresses is part of a supernet \n\n" | |
puts "Supernets: A comma-separated list of CIDR-noted networks. NO SPACES!\n\n" | |
puts "Example:" | |
puts "#{$0} 10.0.0.0/8,172.16.0.0/12 badguys.txt" | |
Process.exit |
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
-- =================================================================== | |
-- Various MySQL stored procedures for handling dates, | |
-- as well as populating date and time dimensions. | |
-- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
-- | |
-- Date Dimension | |
-- |
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/bash | |
CAT="/bin/cat" | |
HOSTNAME=$(/bin/hostname) | |
RABBITMQ_HOME="/var/lib/rabbitmq" | |
RABBITMQ_COOKIE_PATH="$RABBITMQ_HOME/.erlang.cookie" | |
RABBITMQ_COOKIE=$($CAT $RABBITMQ_COOKIE_PATH) || exit 1 | |
ERLANG_ROOT="/usr/local/erlang" | |
ERL_CALL="$ERLANG_ROOT/lib/erlang/lib/erl_interface-3.6.5/bin/erl_call" | |
PROCS=$($ERL_CALL -c $RABBITMQ_COOKIE -sname rabbit@$HOSTNAME -a 'erlang system_info [process_count]') | |
echo "procs.$HOSTNAME $PROCS" |
NewerOlder