- Documentation @ http://git.kernel.org/cgit/network/connman/connman.git/tree/doc
-
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi
Scan for access points (run multiple times for more complete scan):
# connmanctl scan wifi
Scan completed for wifi
Store the tasks in our "GFR Tasks" Google calendar.
IFTTT applet turns these events into cards in Trello
I'm a Python programmer and frequently work with the excellent [virtualenv][] tool by Ian Bicking.
Virtualenv is a great tool on the whole but there is one glaring problem: the activate
script that virtualenv provides as a convenience to enable its functionality requires you to source it with your shell to invoke it. The activate
script sets some environment variables in your current environment and defines for you a deactivate
shell function which will (attempt to) help you to undo those changes later.
This pattern is abhorrently wrong and un-unix-y. activate
should instead do what ssh-agent
does, and launch a sub-shell or sub-command with a modified environment.
#!/usr/bin/env bash | |
# Generate a pseudo UUID | |
uuid() | |
{ | |
local N B C='89ab' | |
for (( N=0; N < 16; ++N )) | |
do | |
B=$(( $RANDOM%256 )) |
AZHU.storage = { | |
save : function(key, jsonData, expirationMin){ | |
if (!Modernizr.localstorage){return false;} | |
var expirationMS = expirationMin * 60 * 1000; | |
var record = {value: JSON.stringify(jsonData), timestamp: new Date().getTime() + expirationMS} | |
localStorage.setItem(key, JSON.stringify(record)); | |
return jsonData; | |
}, | |
load : function(key){ | |
if (!Modernizr.localstorage){return false;} |
#!/usr/bin/bash | |
word="$(xsel -o)" | |
result=$(youdao "$word") | |
notify-send --icon=info "$word" "$result" |
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys | |
from argparse import ArgumentParser | |
from xml.dom import minidom | |
try: | |
from urllib.request import urlopen | |
from urllib.parse import urlencode | |
except ImportError: |
I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6
apt-get update && apt-get install gdb
self.addEventListener('push', function(event) { | |
event.waitUntil( | |
self.registration.showNotification( | |
'Hello', { | |
body: 'Thanks for sending this push msg.', | |
icon: './images/icon-192x192.png', | |
badge: './images/icon-72x72.png' | |
}) | |
); | |
}); |
Mini projects by Maxime Euzière (xem), subzey, Martin Kleppe (aemkei), Mathieu Henri (p01), Litterallylara, Tommy Hodgins (innovati), Veu(beke), Anders Kaare, Keith Clark, Addy Osmani, bburky, rlauck, cmoreau, maettig, thiemowmde, ilesinge, adlq, solinca, ...
(For more info and other projects, visit http://xem.github.io and https://github.com/xem / https://github.com/codegolf)
https://github.com/xem/miniConwaySerpinski (188b Game of Life tweak to produce a Serpinski triangle)