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
# usage: wrapper command | |
# e.g. wrapper cap production deploy | |
# put this on your .bashrc | |
wrapper(){ | |
start=$(date +%s) | |
"$@" | |
[ $(($(date +%s) - start)) -le 15 ] || notify-send "Notification" "Long\ | |
running command \"$(echo $@)\" took $(($(date +%s) - start)) seconds to finish" | |
} |
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
// npm install node-gpsd | |
var gpsd = require('node-gpsd'); | |
var gpsData = "No GPS data received."; | |
var gpsListener = new gpsd.Listener({ | |
port: 2947, | |
hostname: 'localhost' | |
}); | |
function startGPS () { |
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
#include <math.h> | |
#include <stdio.h> | |
#include <fcntl.h> | |
#include <sys/time.h> | |
#include <sys/ioctl.h> | |
#include <machine/speaker.h> | |
#define SPEAKER "/dev/speaker" | |
static struct tm *ptmOurs; |
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
set_prompt (){ | |
red="\[\033[38;5;1m\]" | |
green="\[\033[38;5;10m\]" | |
yellow="\[\033[38;5;11m\]" | |
grape="\[\033[38;5;92m\]" | |
strawberry="\[\033[38;5;9m\]" | |
mellon="\[\033[38;5;162m\]" | |
name="$red🍒$space$green🍏$space$red🍓$space$color4" | |
host="$color3\h$color4" | |
path="$color5\w$color4" |
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
diff --git a/PKGBUILD b/PKGBUILD | |
index 6dab413..b0e384d 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -17,13 +17,13 @@ conflicts=( | |
backup=('etc/php/conf.d/redis.ini') | |
source=( | |
- http://pecl.php.net/get/redis-${pkgver}.tgz | |
+ https://github.com/phpredis/phpredis/archive/php7.zip |
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
used: | |
+dba +ipv6 +dom +calendar +wddx +static +inifile +inline +cli +fpm +ftp +filter +gcov +zts +json +hash +exif +mbstring +mbregex +libgcc +pdo +posix +sockets +debug +phpdbg +zip +bcmath +fileinfo +ctype +cgi +soap +pcntl +intl +phar +session +tokenizer +opcache +imap +tidy +kerberos +xmlrpc +pcre +mhash +mcrypt +zlib +curl +readline +gd +openssl +mysql +sqlite +pgsql +xml +xml_all +gettext +iconv +bz2 +ipc +gmp +apxs2 | |
not used: | |
+embed +icu |
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
* b69B80Oo | |
* 1Il| | |
* ij | |
* 5S | |
* 9gq | |
* co | |
* rn m | |
* cl d | |
* vv w | |
* ., |
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
[ColorEffects:Disabled] | |
Color=56,56,56 | |
ColorAmount=0 | |
ColorEffect=0 | |
ContrastAmount=0.65000000000000002 | |
ContrastEffect=1 | |
IntensityAmount=0.10000000000000001 | |
IntensityEffect=2 | |
[ColorEffects:Inactive] |
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
{"lastUpload":"2019-03-03T05:11:24.879Z","extensionVersion":"v3.2.5"} |
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
#!/bin/ruby | |
t = gets.strip.to_i | |
k = 2Math.log2(t/3+1).floor | |
puts 3*(2**k) - (k*3) | |
1 = 3 = 2 ** 0 * 3 - (k * 3) | |
2 = 2 = 2 ** 0 * 3 - 1 | |
3 = 1 = 2 ** 0 * 3 - 2 |