Skip to content

Instantly share code, notes, and snippets.

View norcalli's full-sized avatar

Ashkan Kiani norcalli

View GitHub Profile
2019-04-02 03:16:59 - [sway/main.c:152] Linux zephyr 5.0.5-arch1-1-ARCH #1 SMP PREEMPT Wed Mar 27 17:53:10 UTC 2019 x86_64 GNU/Linux
2019-04-02 03:16:59 - [sway/main.c:168] Contents of /etc/os-release:
2019-04-02 03:16:59 - [sway/main.c:152] NAME="Arch Linux"
2019-04-02 03:16:59 - [sway/main.c:152] PRETTY_NAME="Arch Linux"
2019-04-02 03:16:59 - [sway/main.c:152] ID=arch
2019-04-02 03:16:59 - [sway/main.c:152] BUILD_ID=rolling
2019-04-02 03:16:59 - [sway/main.c:152] ANSI_COLOR="0;36"
2019-04-02 03:16:59 - [sway/main.c:152] HOME_URL="https://www.archlinux.org/"
2019-04-02 03:16:59 - [sway/main.c:152] DOCUMENTATION_URL="https://wiki.archlinux.org/"
2019-04-02 03:16:59 - [sway/main.c:152] SUPPORT_URL="https://bbs.archlinux.org/"
@norcalli
norcalli / get_objects.sh
Created May 21, 2016 00:20
Get query object for leapfin
#!/bin/bash
test -z "$1" -o -z "$2" && {
echo "Usage: $0 <client_no> <auth_key>" >&2
exit 1
}
CLIENT_NO="$1"
AUTH_KEY="$2"
@norcalli
norcalli / gist:bc7fb4f7b451e6d6819e
Last active August 29, 2015 14:18
Button presser
var tens_el = document.getElementById("thebutton-s-10s");
var secs_el = document.getElementById("thebutton-s-1s");
var secs = function() { return 10*+tens_el.innerText + +secs_el.innerText; }
var b = document.getElementById("thebutton");
function pressIt() { b.click(); }
function tooLate() {
var t = new Date();
t.setSeconds(t.getSeconds() + 2)
return t.getDate() == 2;