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
@moul
moul / Makefile
Created October 8, 2019 21:18
Caching-friendly Makefile Rule to use Protoc within Docker
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 October 7, 2019 13:19
poor man's ipfs pin
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
12 21
23 32
34 43
45 54
56 65
67 76
78 87
89 98
13 31
24 42
@moul
moul / main.go
Created September 4, 2019 15:11
same age
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 August 22, 2019 19:35
Test github .csv .tsv etc
a b c d e
1 2 3 4 5
6 7 8 9 10
@moul
moul / phrack-68-1.asciidoc
Created August 19, 2019 08:26
testing ascii-art with linguist: markdown, asciidoc, etc
==Phrack Inc.==
Volume 0x0e, Issue 0x44, Phile #0x01 of 0x13

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

@moul
moul / result.svg
Created August 18, 2019 19:47
cat SECURITY.md | moulsay | ascii2svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
++ ++ ___ ++
++++ ++++ \ \ ++++
+++ +++ _\__\__ +++
++++++++++ ++++++++++ / ______\ ++++++++++
+++ \ : +++ | / / \ +++ )
++ \ : ++ | |/ \ ++ )
+ .=== ==: + -== ==| | --- ---\ + -== ==(
( <+> <+ . ( <+> <+> ( (o) (o)| ( <+> <+>)
. : | | | | ( (
@moul
moul / index.html
Created June 18, 2019 21:31
pipotron ui
<div class="container">
<h1>Pipotron</h1>
<form class="form-inline">
<div class="form-group mb-2">
<select id="dict" class="form-control mr-sm-2">
<option value="bingo-winner">bingo-winner</option>
<option value="example">example</option>
<option value="laboralphy">laboralphy</option>
<option value="pipotron.free.fr">pipotron.free.fr</option>
</select>
@moul
moul / _README.md
Last active May 28, 2019 09:55
Crypto Memory Game

Crypto Memory Game

Multiple keypairs (private and public keys) were generated, transformed, and shuffled.

Your mission is to match the different files together.

i.e., file_X is the public key for file_Y or file_X is the same key as file_Y in another format

You can download the zip file to work on your computer.