Skip to content

Instantly share code, notes, and snippets.

View zkanda's full-sized avatar
🌴
palm trees

Zakatell zkanda

🌴
palm trees
View GitHub Profile
@zkanda
zkanda / sublime_settings
Last active February 15, 2016 07:16
Sublime Settings
{
"auto_complete_triggers":
[
{
"characters": ".",
"selector": "source.python - string - comment - constant.numeric"
}
],
"caret_style": "phase",
"close_windows_when_empty": false,
@zkanda
zkanda / runtest.py
Created August 23, 2014 09:55
Basic runtest for django third party apps
#!/usr/bin/env python
import sys
from django import VERSION
from django.conf import settings
from django.conf.urls import include, patterns
from django.core.management import execute_from_command_line
if not settings.configured:
test_runners_args = {}
if VERSION < (1, 6):
XferCommand = /usr/bin/aria2c --allow-overwrite=true -c --file-allocation=none --log-level=error -m2 -x2 --max-file-not-found=5 -k5M --no-conf -Rtrue --summary-interval=60 -t5 -d / -o %o %u
wget https://aur.archlinux.org/packages/br/broadcom-wl/broadcom-wl.tar.gz
tar xf broadcom-wl.tar.gz
cd broadcom-wl/
makepkg -s
wget --keep-session-cookies --save-cookies cookies.txt http://www.tokutek.com/download/?file=mysql-5.5.41-tokudb-7.5.5-linux-x86_64.tar.gz && wget --load-cookies cookies.txt --content-disposition http://www.tokutek.com/download.php?df=1 && rm -f download.php* cookies.txt
### Keybase proof
I hereby claim:
* I am zkanda on github.
* I am zkanda (https://keybase.io/zkanda) on keybase.
* I have a public key whose fingerprint is FA93 3F51 3816 312B 9A82 9BB3 5997 3FE5 973B BB17
To claim this, I am signing this object:
!-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
version: '2'
services:
ci:
image: jenkins
volumes:
- ./data:/var/jenkins_home
- /var/run/docker.sock:/var/run/docker.sock
- $(which docker):/usr/bin/docker
groupadd:
- $(stat -c %g /var/run/docker.sock)
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Author: fwompner gmail com
#InstallKeybdHook
SetCapsLockState, alwaysoff
Capslock::
Send {LControl Down}
KeyWait, CapsLock
@zkanda
zkanda / ctrlTap.lua
Created February 13, 2021 17:46 — forked from kbussell/ctrlTap.lua
Send escape key if the ctrl key is tapped. (Used along side remapping my Caps Lock key to ctrl) Thanks to @asmagill 's examples for a starting point.
local alert = require("hs.alert")
local timer = require("hs.timer")
local eventtap = require("hs.eventtap")
local events = eventtap.event.types
local module = {}
-- timeout for ctrol key
module.timeFrame = .25