Skip to content

Instantly share code, notes, and snippets.

😃
happy 😀

Manfred Touron moul

😃
happy 😀
Block or report user

Report or block moul

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 ]=-------------------------=|

@moul
moul / result.svg
Created Aug 18, 2019
cat SECURITY.md | moulsay | ascii2svg
View result.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View moul-ascii.txt
++ ++ ___ ++
++++ ++++ \ \ ++++
+++ +++ _\__\__ +++
++++++++++ ++++++++++ / ______\ ++++++++++
+++ \ : +++ | / / \ +++ )
++ \ : ++ | |/ \ ++ )
+ .=== ==: + -== ==| | --- ---\ + -== ==(
( <+> <+ . ( <+> <+> ( (o) (o)| ( <+> <+>)
. : | | | | ( (
View index.html
<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
Crypto Memory Game
View _README.md

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.

You can’t perform that action at this time.