Skip to content

Instantly share code, notes, and snippets.

View moul's full-sized avatar
🌸
societal evolution engineer

Manfred Touron moul

🌸
societal evolution engineer
View GitHub Profile
<ezstream>
<url>http://127.0.0.1:8042/test</url>
<sourcepassword>test</sourcepassword>
<sourceuser>test</sourceuser>
<format>MP3</format>
<filename>b.mp3</filename>
<stream_once>0</stream_once>
<svrinfoname>test</svrinfoname>
<svrinfourl>test</svrinfourl>
<svrinfogenre>test</svrinfogenre>
import networkx as nx
import pprint
from operator import itemgetter
G = nx.read_graphml('metro.graphml')
print "graph has %d nodes with %d edges"\
% (nx.number_of_nodes(G), nx.number_of_edges(G))
@alexisrobert
alexisrobert / santanderbikes.md
Last active January 11, 2016 17:52
Dashing plugin for Santander Bikes (ex Barclays Bikes) realtime availability

Santander Bikes (ex Barclays Bikes) realtime availability

This widget fetchs the availability of Santander Bikes (ex Barclays Bikes) in realtime using TfL's API.

To install, just type dashing install cfdb32371db7a240263c

Don't forget to add httparty in you Gemfile like this :

    gem 'httparty'
@moul
moul / linux distrib builds.md
Last active January 15, 2016 13:32
linux distrib builds
distrib/builder debootstrap qemu-debootstrap multistrap rinse urpmi anaconda chroot + static pm pacstrap kickstart preseed
debian Y Y Y ?
ubuntu Y Y Y ?
fedora Y Y Y ?
centos Y Y Y ?
redhat Y Y Y ?
gentoo
@cerisier
cerisier / random.txt
Created January 24, 2016 23:31
List of words for random entry creative technique
Adult
Aeroplane
Air
Aircraft Carrier
Airforce
Airport
Album
Alphabet
Apple
Arm
[ 464.491849] BUG: unable to handle kernel NULL pointer dereference at 0000000000000009
[ 464.586152] IP: [<ffffffff8101b290>] intel_pmu_lbr_read+0x70/0x480
[ 464.660511] PGD 465196067 PUD 46a823067 PMD 0
[ 464.713979] Oops: 0000 [#1] SMP
[ 464.752720] Modules linked in: kvm_intel kvm fjes irqbypass autofs4
[ 464.828642] CPU: 3 PID: 4012 Comm: dummy Not tainted 4.4.6-std-4 #1
[ 464.903933] Hardware name: Online Labs SR/SR, BIOS 00.00.00.0007 03/04/2016
[ 464.987580] task: ffff88046d27cac0 ti: ffff88046c4c0000 task.ti: ffff88046c4c0000
[ 465.077491] RIP: 0010:[<ffffffff8101b290>] [<ffffffff8101b290>] intel_pmu_lbr_read+0x70/0x480
[ 465.181084] RSP: 0000:ffff88046c4c3c58 EFLAGS: 00010006
@dacamp
dacamp / README.md
Last active May 23, 2016 20:02
GitHub Status Widget for Dashing
@jacob414
jacob414 / repr.coffee
Created December 9, 2010 11:17
Quick and dirty Javascript repr() function using CoffeeScript
repr = (o, depth=0, max=2) ->
if depth > max
'<..>'
else
switch typeof o
when 'string' then "\"#{o.replace /"/g, '\\"'}\""
when 'function' then 'function'
when 'object'
if o is null then 'null'
if _.isArray o
@Zillionx
Zillionx / OSX_TCP_options.command
Last active November 21, 2017 03:48
OSX - Tuning the Network Stack TCP
## Quick fix for slow internet after update to OSX 10.11 "El Capitan"
## Changes are not permanent, just restart your mac if it doesn't work.
## write config
sudo su -
sysctl -w net.inet.tcp.doautorcvbuf=0
sysctl -w net.inet.tcp.doautosndbuf=0
sysctl -w net.inet.tcp.win_scale_factor=0
# net.inet.tcp.recvspace=1048576
# net.inet.tcp.sendspace=131072
@eddiejaoude
eddiejaoude / most-active-users-on-github-2015.md
Last active November 30, 2017 10:30
Most active users on GitHub 2015

This is the top 1000 users on GitHub

Where are you on here?

For the first 6 months of 2015 (Jan - June).

Query used on Google's BigQuery with GitHubArchive Data

SELECT actor.login as user, COUNT(*) as total FROM (