Skip to content

Instantly share code, notes, and snippets.

View czQery's full-sized avatar
:octocat:

Štěpán Aubrecht czQery

:octocat:
View GitHub Profile
@czQery
czQery / git_calc_lines.md
Created April 17, 2022 17:17
Git calculate lines

Git calculate lines

Calculate the number of lines for specific file formats in the git repository

Linux

git ls-files | grep -P ".*(go|js|html|hbs)" | xargs cat | wc -l
@czQery
czQery / pihole_doh.md
Last active April 11, 2022 17:18
Pi-hole Cloudflare DoH custom build

Pi-hole Cloudflare DoH custom build

Builds for ARMv6

Install

wget https://hobin.ca/cloudflared/releases/2022.2.1/cloudflared_2022.2.1_arm.tar.gz
tar -xvzf cloudflared_2022.2.1_arm.tar.gz
sudo cp ./cloudflared /usr/local/bin
@czQery
czQery / zip_in_file.md
Last active February 23, 2022 23:06
Hide zip in another file

Hide zip in another file

CMD

copy /b file.png + file.zip
@czQery
czQery / docker.md
Last active February 26, 2024 13:48
Docker cheat note

Docker cheat note

Build

docker build -t <author/example:tag> .

Save & load

docker save -o