Skip to content

Instantly share code, notes, and snippets.

View lemieszek's full-sized avatar
🐢
a turtle made it to the water

Dawid Lemieszek lemieszek

🐢
a turtle made it to the water
View GitHub Profile
@lemieszek
lemieszek / get_repos.sh
Created October 12, 2021 07:43
Get all repos from GitHub user or org
# Auth token is optional
# Get user repos
NAME="username"; PAGE=1; TOKEN="your_personal_token";
curl -H "Authorization: token $TOKEN" "https://api.github.com/users/$NAME/repos?page=$PAGE&per_page=100" |
grep -e 'git_url*' |
cut -d \" -f 4 |
xargs -L1 git clone
# Get org repos
@lemieszek
lemieszek / baby_lisp.js
Last active October 13, 2020 06:09
Cassidoo 2020.10.12
/*
Given a basic Lisp-like string expression, parse it,
where the available functions are
add, subtract, multiply, and divide,
and they all take in 2 values.
Examples:
babyLisp('(add 1 2)')
3
; nasm -felf64 a.asm && ld -o a.out a.o
; then
; gdb a.out
section .data
; initialize some data
someValue dq 8
initialTable dq 40, 871, 181, 157, 268, 790, 310, 211
fileName db "zaliczenie.txt"
@lemieszek
lemieszek / remove-node_modules-recursively.sh
Created June 17, 2019 06:26
Remove all node_modules directories recursively
find . -name "node_modules" -type d -prune -exec rm -rf '{}' +