Skip to content

Instantly share code, notes, and snippets.

root@43cb6924a714:/go/src/github.com/add/adder# uname -a
Linux 43cb6924a714 4.9.49-moby #1 SMP Thu Sep 14 07:55:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
root@43cb6924a714:/go/src/github.com/add/adder# go version
go version go1.9 linux/amd64
root@43cb6924a714:/go/src/github.com/add/adder# cat adder.go
package adder
func Add(a, b int) int {
return a + b
}
@steeve
steeve / main.go
Last active October 6, 2015 14:25
func main() {
l := legifrance.NewLegiFrance(codeRoot)
for _, codeId := range legifrance.Codes[1:] {
code, err := l.Code(codeId)
if err != nil {
fmt.Fprintf(os.Stderr, "Unable to open %s: %s", codeId, err)
}
for article := range code.Articles() {
fmt.Printf("\rProcessing %s: %d articles", article.Text.Title.Title, i)
}
<?xml version="1.0" encoding="UTF-8"?>
<ARTICLE>
<META>
<META_COMMUN>
<ID>LEGIARTI000006422544</ID>
<ANCIEN_ID>ACAXXXXXXXX5X00190BAXXAA</ANCIEN_ID>
<ORIGINE>LEGI</ORIGINE>
<URL>article/LEGI/ARTI/00/00/06/42/25/LEGIARTI000006422544.xml</URL>
<NATURE>Article</NATURE>
</META_COMMUN>
diff -uN Python-2.6.6Orig/configure Python-2.6.6/configure
--- Python-2.6.6Orig/configure 2010-05-25 12:27:03.000000000 +1000
+++ Python-2.6.6/configure 2010-09-10 18:25:15.924146785 +1000
@@ -12760,12 +12760,12 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5
$as_echo_n "checking for %zd printf() format support... " >&6; }
-if test "$cross_compiling" = yes; then :
- { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
-$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
#!/usr/bin/perl -w
use strict;
if ($#ARGV < 0) {
print "Usage: aml_fw_unpack.pl file.img\n";
exit(1);
}
my $filecontent;
### Keybase proof
I hereby claim:
* I am steeve on github.
* I am steeve (https://keybase.io/steeve) on keybase.
* I have a public key whose fingerprint is C1EF 0741 DD5D 1269 8107 A701 6323 FE59 7526 9E7A
To claim this, I am signing this object:
rm -rf build/darwin_x64
true
/Library/Developer/CommandLineTools/usr/bin/make -C /Users/steeve/projects/go/src/github.com/steeve/libtorrent-go clean all
rm -rf libtorrent_wrap.o libtorrent_wrap.cxx libtorrent_gc.c libtorrent.go *.o build/darwin_x64
swig -go -c++ -D__GNUC__ -soname dummy -intgosize 64 -DTORRENT_USE_OPENSSL -DWITH_SHIPPED_GEOIP_H -DBOOST_ASIO_HASH_MAP_BUCKETS=1021 -DBOOST_EXCEPTION_DISABLE -DBOOST_ASIO_ENABLE_CANCELIO -DBOOST_ASIO_DYN_LINK -DTORRENT_LINKING_SHARED -I/usr/local/Cellar/libtorrent-rasterbar/0.16.13/include -I/usr/local/Cellar/libtorrent-rasterbar/0.16.13/include/libtorrent -I/usr/local/include -D__APPLE__ -D__MACH__ -o libtorrent_wrap.cxx -outdir . libtorrent.i
/usr/local/Cellar/libtorrent-rasterbar/0.16.13/include/libtorrent/config.hpp:301: Warning 204: CPP #warning, "unknown platform, assuming the longest path is 255".
/usr/local/Cellar/libtorrent-rasterbar/0.16.13/include/libtorrent/size_type.hpp:48: Warning 302: Identifier 'size_type' redefined (ignored),
libtorrent.i:14: Wa
docker@boot2docker:~$ sudo docker -s devicemapper -d -D
[/mnt/sda1/var/lib/docker|0337a5a3] +job initserver()
[/mnt/sda1/var/lib/docker|0337a5a3.initserver()] Creating server
[debug] deviceset.go:478 Generated prefix: docker-8:1-799901
[debug] deviceset.go:481 Checking for existence of the pool 'docker-8:1-799901-pool'
[debug] deviceset.go:495 Pool doesn't exist. Creating it.
[debug] deviceset.go:358 libdevmapper(3): ioctl/libdm-iface.c:1768 (-1) device-mapper: reload ioctl on docker-8:1-799901-pool failed: Invalid argument
[debug] deviceset.go:512
--->Err: Error running DeviceCreate (createPool)
11001101 10011110 01111001 01111101 11111111 11111100 10100100 01111110 Metro Sens 1
10011111 10001001 01001111 11111111 11101111 10100111 10011110 01101100 Metro Sens 2
10111111 10011110 01111111 10011111 11111111 11111100 11111111 11111110 RER Sens 1
10011111 11111111 11001111 11111111 11111110 01111111 10011110 01111111 01011111 RER Sens 2
10111111 10011110 01111111 10011111 11111111 11111100 11111111 11111110 RER Sens 1
10011111 11111111 11001111 11111111 11111110 01111111 10011110 01111111 01011111 RER Sens 2
~/p/g/s/g/s/t/build git:master ❯❯❯ ls -la
total 0
drwxr-xr-x 8 steeve staff 272 2 déc 20:27 .
drwxr-xr-x 16 steeve staff 544 2 déc 20:01 ..
drwxr-xr-x 3 steeve staff 102 2 déc 18:07 android_arm
drwxr-xr-x 5 steeve staff 170 2 déc 18:06 darwin_x64
drwxr-xr-x 3 steeve staff 102 2 déc 20:24 linux_arm
drwxr-xr-x 3 steeve staff 102 2 déc 14:14 linux_x64
drwxr-xr-x 3 steeve staff 102 2 déc 20:28 linux_x86
drwxr-xr-x 4 steeve staff 136 2 déc 14:04 windows_x86