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
void loop() { | |
ritval = analogRead(ritPin); | |
cwoffset = digitalRead(4); | |
unsigned long vfo = freq; // Start with the dial frequency | |
if (cwoffset) { | |
vfo += 800; // +800Hz CW shift | |
} | |
vfo += (ritval - 512) * 10; // About a +/- 5kHz range |
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
package main | |
import ( | |
"bytes" | |
"encoding/json" | |
"errors" | |
"fmt" | |
flags "github.com/jessevdk/go-flags" | |
"io" | |
"io/ioutil" |
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
#if PERL_VERSION_GE(5,25,9) | |
#define foldit(p,e,s,l) toFOLD_utf8_safe(p,e,s,l) | |
#else | |
// toFOLD_utf8 only became a valid synonym during 5.19, but to_utf8_fold | |
// works from 5.8 through 5.24. | |
#define foldit(p,e,s,l) to_utf8_fold(p,s,l) | |
#endif | |
// called as | |
foldit(ptr, in + in_len, folded, &folded_len); |
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
// Go | |
func DBGetProxyFull(id interface{}, name interface{}, onlyEnabled bool) (ProxyFull, error) { | |
var realProxy ProxyFull | |
query := `SELECT proxies.id, proxies.name, proxies.stats, proxies.stats_host, proxies.stats_prefix, proxies.stats_sample, proxies.proxy_config_id, proxy_configs.id, proxy_configs.name, proxy_configs.config, proxy_mounts.id, proxy_mounts.mountpoint, pools.id, pools.name, servers.id, servers.ip, servers.name, servers.enabled, servers.expires | |
FROM proxies | |
LEFT JOIN proxy_configs ON proxy_configs.id = proxies.proxy_config_id | |
LEFT JOIN proxy_mounts ON proxy_mounts.proxy_id = proxies.id | |
LEFT JOIN pools ON pools.id = proxy_mounts.pool_id | |
LEFT JOIN pool_servers ON pool_servers.pool_id = proxy_mounts.pool_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
{antialias => (Bool), aspect => 0, autohint => (Bool), capability => (Str), charset => (32..126 160..165 167..172 174..174 176..177 180..182 184..184 186..187 191..207 209..214 216..220 223..239 241..252 255..255 305..305 338..339 376..376 402..402 698..698 711..711 713..713 728..731 770..771 931..931 937..937 960..960 8211..8212 8216..8218 8220..8222 8224..8226 8230..8230 8240..8240 8249..8250 8482..8482 8706..8706 8710..8710 8719..8719 8725..8725 8729..8730 8734..8734 8747..8747 8776..8776 8800..8800 8804..8805 9674..9674 61440..61442), dpi => 0, embolden => (Bool), family => TheMixSemiLight-Expert, familylang => en, file => /home/andrew/.fonts/ThemixSLtEx.ttf, fontfeatures => (Str), fontversion => 65536, foundry => unknown, ftface => (Str), fullname => TheMixSemiLight-Expert, fullnamelang => en, globaladvance => (Bool), hinting => (Bool), hintstyle => 0, index => 0, lang => aa|ay|bi|br|ch|co|de|en|es|eu|fj|fr|fur|fy|gd|gl|gv|ho|ia|id|ie|io|it|lb|mg|nb|nds|nl|nn|no|nr|oc|om|pt|rm|sma|smj|so|sq|ss|st|sv|sw|t |
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
Program received signal SIGSEGV, Segmentation fault. | |
[Switching to Thread 0x7f70fcef2700 (LWP 23173)] | |
0x00007f7100f84cdd in __memset_sse2 () from /lib64/libc.so.6 | |
(gdb) bt | |
#0 0x00007f7100f84cdd in __memset_sse2 () from /lib64/libc.so.6 | |
#1 0x000000000040fff2 in slab_rebalance_finish () at slabs.c:994 | |
#2 slab_rebalance_thread (arg=<optimized out>) at slabs.c:1055 | |
#3 0x00007f71012c3df5 in start_thread () from /lib64/libpthread.so.0 | |
#4 0x00007f7100ff11ad in clone () from /lib64/libc.so.6 |
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
Startup: memcached -C -m 10240 -I 20m -c 4096 -o modern,slab_automove=0 | |
stats slabs (different server): | |
STAT 1:chunk_size 96 | |
STAT 1:chunks_per_page 10922 | |
STAT 1:total_pages 1 | |
STAT 1:total_chunks 10922 | |
STAT 1:used_chunks 2 | |
STAT 1:free_chunks 10920 | |
STAT 1:free_chunks_end 0 |
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
# starting length: 96 | |
@a=("Hare ","Krishna ","Rama ","\n");foreach(split//,'ababdbbaadacacdccaad'){print $a[ord($_)-97]} | |
# unneeded whitespace (-1) | |
@a=("Hare ","Krishna ","Rama ","\n");foreach(split//,'ababdbbaadacacdccaad'){print$a[ord($_)-97]} | |
# magic variable substitution (-2) | |
@a=("Hare ","Krishna ","Rama ",$/);foreach(split//,'ababdbbaadacacdccaad'){print$a[ord($_)-97]} | |
# for is the same as foreach (-4) |
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
cmdline: memcached -C -m 10240 -I 20m -c 4096 -o modern -o slab_chunk_max=262144 -f 1.132 | |
stats settings | |
STAT maxbytes 10737418240 | |
STAT maxconns 4096 | |
STAT tcpport 11211 | |
STAT udpport 11211 | |
STAT inter NULL | |
STAT verbosity 0 | |
STAT oldest 0 |
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
stats | |
STAT pid 21578 | |
STAT uptime 417821 | |
STAT time 1486396934 | |
STAT version 1.4.25 | |
STAT libevent 2.0.21-stable | |
STAT pointer_size 64 | |
STAT rusage_user 6731.990322 | |
STAT rusage_system 8279.682157 | |
STAT curr_connections 127 |