301 Moved Permanently
Location: https://github.com/rkusa/swac/releases
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
SELECT VERSION(); | |
--- | |
SHOW ALL; | |
--- | |
SELECT word, catcode FROM pg_get_keywords(); |
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
function gitmoji | |
set -l selection (cat ~/Development/gitmojis.json | jq '.gitmojis | .[] | [.emoji, .name, .description] | join(" - ")' | sed 's/^"//' | sed 's/"$//' | fzf --query "$argv[1]" +m) | |
set -l gitmoji (echo $selection | awk '{print $1}') | |
echo "$gitmoji" | pbcopy | |
echo "Copied $gitmoji to clipboard ..." | |
end |
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
# curl -LO http://wiki.alpinelinux.org/cgi-bin/dl.cgi/v3.3/releases/x86_64/alpine-3.3.1-x86_64.iso | |
curl -LO http://wiki.alpinelinux.org/cgi-bin/dl.cgi/v3.3/releases/x86/alpine-3.3.1-x86.iso | |
# create hdd image (8GB) | |
dd if=/dev/zero of=hdd.img bs=1g count=8 | |
# extract kernel and initramfs | |
brew install cdrtools | |
isoinfo -i alpine-3.3.1-x86.iso -J -x /boot/initramfs-grsec > initramfs-grsec | |
isoinfo -i alpine-3.3.1-x86.iso -J -x /boot/vmlinuz-grsec > vmlinuz-grsec |
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
#!bash | |
for id in `docker ps -q`; do \ | |
name=`docker inspect -f {{.Name}} $id | tail -c +2`; \ | |
echo "$name ($id)"; \ | |
mounts=(`docker inspect -f '{{range .Mounts}}{{.Source}} {{end}}' $id`); \ | |
for mount in ${mounts[@]}; do \ | |
du -hLs $mount | tail -n 1; \ | |
done | |
done |
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
upstream gunicorn { | |
server unix:/tmp/gunicorn.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
proxy_pass http://gunicorn; |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
... | |
</head> | |
<body> | |
<div id="your-id"> | |
</div> | |
<template id="your-template-id"> |
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
function waitForXHR(selenium, callback) { | |
selenium.execute(function() { | |
return window.$.active === 0 | |
}, function(err, res) { | |
if (res.value) callback() | |
else setTimeout(waitForXHR.bind(undefined, browser, callback), 500) | |
}) | |
} |
Add /usr/bin/chrome
(+ chmod +x /usr/bin/chrome
)
Run testling -x chrome
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
wsr_snapshot(\''.$wpdir->link_detail_info->url.'\', \'O020SbL697uY\', \'s\'); |
NewerOlder