Skip to content

Instantly share code, notes, and snippets.

View aristidb's full-sized avatar

Aristid Breitkreuz aristidb

  • Amsterdam, Netherlands
View GitHub Profile
@aristidb
aristidb / gist:86932
Created March 27, 2009 22:10
Pushing everything to all remotes
#!/bin/bash
git remote | while read remote
do
echo "Remote $remote"
git push "$remote" "$@"
done
buffer = require('encoding').Converter('US-ASCII', 'US-ASCII')
buffer.put(magicallyMakeByteString('Hello,'))
buffer.put(magicallyMakeByteString(' '))
buffer.put(magicallyMakeByteString('World!'))
value = buffer.get()
assert(value == magicallyMakeByteString('Hello, World!'))
buffer = require('encoding').Converter('US-ASCII', 'US-ASCII')
buffer.put(value)
assert(buffer.get(7) == magicallyMakeByteString("Hello, "))
assert(buffer.get() == magicallyMakeByteString("World!"))
function Get-GitBranchNameWithStatusIndicator {
$statusOutput = Invoke-Expression 'git status 2>$null'
if (!$statusOutput) { return }
$branch = $statusOutput[0]
if ($branch -eq "# Not currently on any branch.") {
$branch = "No branch"
} else {
$branch = $branch.SubString("# On branch ".Length)
}
$statusSummary = $statusOutput[-1]
link.exe -out:"WINNT5.1_DBG.OBJ/js.exe" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib oldnames.lib -nologo -subsystem:console -debug pdb:WINNT5.1_DBG.OBJ/js.pdb -machine:I386 -opt:ref -opt:noicf WINNT5.1_DBG.OBJ/js.obj WINNT5.1_DBG.OBJ/js32.lib
js.obj : error LNK2019: Verweis auf nicht aufgelstes externes Symbol "__imp__PR_Sleep" in Funktion "_Sleep".
js.obj : error LNK2019: Verweis auf nicht aufgelstes externes Symbol "__imp__PR_TicksPerSecond" in Funktion "_Sleep".
js.obj : error LNK2019: Verweis auf nicht aufgelstes externes Symbol "__imp__PR_DestroyLock" in Funktion "_Scatter".
js.obj : error LNK2019: Verweis auf nicht aufgelstes externes Symbol "__imp__PR_DestroyCondVar" in Funktion "_Scatter".
js.obj : error LNK2019: Verweis auf nicht aufgelstes externes Symbol "__imp__PR_JoinThread" in Funktion "_Scatter".
js.obj : error LNK2019: Verweis auf nicht aufgelstes externes Symbol "__imp__PR_Unlock" in Funktion "_Scatter".
js.obj : error L
python.exe : Waf: Entering directory `C:\Dokumente und Einstellungen\aristid\flusspferd\build'
At line:1 char:7
+ python <<<< ./waf >ERROR.TXT 2>&1
python.exe : [ 3/42] cxx: src\spidermonkey\blob.cpp -> build\default\src\spidermonkey\blob_1.o
At line:1 char:7
+ python <<<< ./waf >ERROR.TXT 2>&1
blob.cpp
c:\dokumente und einstellungen\aristid\flusspferd\include\flusspferd\function_adapter.hpp(366) : error C2065: 'arity': nichtdeklarierter Bezeichner
c:\dokumente und einstellungen\aristid\flusspferd\include\flusspferd\native_function.hpp(109): Siehe Verweis auf die Instanziierung der gerade kompilierten Klassen-template "flusspferd::function_adapter_memfn<R,T>".
with
Hier sind die Sachen.
g++ $(pkg-config flusspferd --libs --cflags) -I/usr/include/python2.6/ -Wall -W -std=c++98 -pedantic-errors -Wno-long-long flusspferd.cpp -lpython2.6 -lboost_python -shared -fPIC -o flusspferd.so
template < typename Class > class clazz_base
: public::flusspferd::native_object_base
{
public:
typedef clazz_base base_type;
struct class_info:::flusspferd::class_info
{
typedef
#!/bin/bash
for led in /sys/class/leds/iwl-phy0\:{radio,assoc}
do
echo "Disabling LED trigger for $(basename $led)"
echo none > $led/trigger
done
date > /tmp/wlan-blinking-disabled
aristid@ricardo:~/Code/ledger (master) 17:12:20$ ls
acprep contrib dist doc lib lisp python README-1ST README.textile src test tools
aristid@ricardo:~/Code/ledger (master) 17:12:21$ ./acprep update
acprep: INFO: Invoking primary phase: update
acprep: INFO: Executing phase: update
acprep: INFO: Executing phase: pull
Already up-to-date.
acprep: INFO: Executing phase: submodule
Submodule 'lib/utfcpp' (git://github.com/jwiegley/utfcpp.git) registered for path 'lib/utfcpp'
Initialized empty Git repository in /home/aristid/Code/ledger/lib/utfcpp/.git/