This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| convert \ | |
| -font "Cascadia-Mono-Regular" \ | |
| -background "#fff" \ | |
| -fill "#000" \ | |
| -pointsize 40 \ | |
| -size 1024x768 \ | |
| -gravity center label:'<title>' \ | |
| logo.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| convert \ | |
| -font "Cascadia-Mono-Regular" \ | |
| -background "#fff" \ | |
| -fill "#000" \ | |
| -pointsize 42 \ | |
| -size 800x200 \ | |
| -gravity center label:'<title>' \ | |
| logo.png |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| { | |
| for i in $(ls | shuf); do | |
| [ -d "$i" ] && { | |
| [ -d "$i/.git" ] && ( | |
| cd "$i" | |
| branch="$(git rev-parse --abbrev-ref HEAD)" | |
| if [[ "${branch}" == 'main' || "${branch}" == 'master' ]]; then | |
| : |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat /var/log/dnscrypt-proxy/query.log | awk '{print $4}' | sort | uniq -c | sort | egrep '\.[^.]*\.[a-z]*$' --color=auto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ffmpeg \ | |
| -map_metadata -1 \ | |
| -metadata title=<STR> \ | |
| -acodec copy \ | |
| -vcodec copy \ | |
| -map 0:0 \ | |
| -map 0:1 \ | |
| -i <FILE> \ | |
| <STR> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import turtle | |
| def fib(): | |
| i, j = 0, 1 | |
| yield i | |
| while True: | |
| i, j = j, i + j | |
| yield i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:18.04 | |
| USER root | |
| WORKDIR /root | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN apt-get update -y \ | |
| && apt-get install -y --no-install-recommends \ | |
| gcc \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from google.colab import drive | |
| drive.mount('/content/drive') | |
| from google.colab import auth | |
| auth.authenticate_user() | |
| project_id = 'initbar' | |
| !gcloud config set project {project_id} | |
| !gsutil ls | |
| bucket_name = 'work.init.bar' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://en.wikipedia.org/wiki/Fowler–Noll–Vo_hash_function | |
| import base64 | |
| import struct | |
| def fnv64(data): | |
| hash_ = 0xcbf29ce484222325 | |
| for b in data: | |
| hash_ *= 0x100000001b3 | |
| hash_ &= 0xffffffffffffffff |
NewerOlder