Skip to content

Instantly share code, notes, and snippets.

Avatar
😃
😀

Manfred Touron moul

😃
😀
View GitHub Profile
@moul
moul / 1. intro.txt
Last active Jun 29, 2020
Yo! 👋👋
View 1. intro.txt
+ -== ==|
( <*> <*> ||//
| | yo _||/__
| __| \| |||
| +++ \ /
View gist:534838b0609074d468a561cfd6a64170
BEGIN MESSAGE.
iT8KwWYir3jBZHL MO5lAw3kEu7qMfk AlMylg0u9T0S8dW sIfXOCVn91WPJrC
usKPqEPepyPGVN9 RKgAI0YLtPcTCKq 6Xr2MZHgg4UzZLN ZyB0Lq5OvU5P6Li
elKzvkDvqO2nC4g qu8e0LjbSBOtbvR v4GYHqG2N5LQXxJ K3Nj60k5wL4KVQj
h2e2zvnREEkCbNL z5KmWPFYCZPvsVI ipJt.
END MESSAGE.
View fanout.go
package main
import (
"fmt"
"sync"
"time"
)
func main() {
// write should never block
View paris p2p.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@moul
moul / Makefile
Created Oct 8, 2019
Caching-friendly Makefile Rule to use Protoc within Docker
View Makefile
PROTOS_SRC := $(wildcard ./api/*.proto)
GEN_SRC := $(PROTOS_SRC) Makefile
GEN_SUM := gen.sum
GO_PKG := moul.io/test
GO_DIR := ./go
.PHONY: clean
clean:
rm -f gen.sum $(wildcard *.swagger.json)
@moul
moul / poormans-ipfs-pin.sh
Last active Oct 7, 2019
poor man's ipfs pin
View poormans-ipfs-pin.sh
export IPFS_HASH=QmZXiDQny5yzxCB3kVFEh8ftBgT9nd4nNb5JVZnwkwgT9Z
for url in $(curl -s https://ipfs.github.io/public-gateway-checker/gateways.json | jq -r '.[]' | sed "s/:hash/$IPFS_HASH/"); do
(curl --max-time 10 $url > /dev/null &)
done
View main.go
package main
import "fmt"
func isrev(a, b int) bool {
astr := fmt.Sprintf("%d", a)
bstr := fmt.Sprintf("%d", b)
arev := astr[1:2] + astr[0:1]
brev := bstr[1:2] + bstr[0:1]
return a != b && (astr == brev || bstr == arev)
@moul
moul / Test.csv
Last active Aug 22, 2019
Test github .csv .tsv etc
View Test.csv
a b c d e
1 2 3 4 5
6 7 8 9 10
@moul
moul / phrack-68-1.asciidoc
Created Aug 19, 2019
testing ascii-art with linguist: markdown, asciidoc, etc
View phrack-68-1.asciidoc
==Phrack Inc.==
Volume 0x0e, Issue 0x44, Phile #0x01 of 0x13

|=-----------------------------------------------------------------------=| |=-------------------------=[ Introduction ]=----------------------------=| |=-----------------------------------------------------------------------=| |=----------------------=[ by the Phrack staff ]=------------------------=| |=-----------------------------------------------------------------------=| |=------------------------=[ April 14, 2012 ]=-------------------------=|

You can’t perform that action at this time.