Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am zoltrain on github.
  • I am zoltrain (https://keybase.io/zoltrain) on keybase.
  • I have a public key ASDW540hbDQVEVLRXgnnB0A-AsL4M6c4TexjFmZseXhB2wo

To claim this, I am signing this object:

aws-env () {
if [[ $# -gt 0 ]]
then
local profile="$1"
shift
elif [[ $# -eq 0 && -f ".aws-profile" ]]
then
local profile="$(cat ".aws-profile")"
fi
if [[ -n "$profile" ]]
#!/bin/bash
set -e
case "$1" in
configure)
# logic common to all installs/upgrades
# if $2 is set, this is an upgrade
if ( [ -n "$2" ] && [ "$RESTART_ON_UPGRADE" = "true" ] ) ; then
# restart a service
fi
Package: redis-server
Source: redis
Version: 2:2.8.4-2
Architecture: amd64
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Chris Lamb <lamby@debian.org>
Installed-Size: 744
Depends: libc6 (>= 2.14), libjemalloc1 (>= 2.1.1), redis-tools (= 2:2.8.4-2), adduser
Section: database
Priority: optional
; Redefine only when the active window is a console window
#IfWinActive ahk_class ConsoleWindowClass
; Close Command Window with Ctrl+w
#IfWinActive ahk_class ConsoleWindowClass
#!c::
Send,{LAlt Down}{Space Down}{Space Up}{LAlt Up}{c Down}
return
BEGIN
DECLARE n INT;
DECLARE loop_end INT DEFAULT 0;
DECLARE nodeids CURSOR FOR (select distinct(nodeid) from versions order by nodeid);
declare continue handler for sqlstate '02000' set loop_end = 1;
CREATE TEMPORARY TABLE versions (rank int, versionid varchar(40), nodeid int, updatedate timestamp, newest tinyint, published tinyint);
CREATE TEMPORARY TABLE versionids (rank int, versionid varchar(40), nodeid int);