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
| class ProductDetailView(DetailView): | |
| model = Product | |
| class ProductCreateView(CreateView): | |
| model = Product | |
| form_class = ProductForm |
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
| B_RES="1080x1080x24" | |
| S_RES="860x460" | |
| xvfb-run -s "-ac -screen 0 $B_RES" firefox $URL | |
| ffmpeg -draw_mouse 0 -f x11grab -s $S_RES -i :99+30,100 -f concat -i music.loop -pix_fmt yuv420p -profile:v baseline -bufsize 96k -vb 400k -maxrate 600k -deinterlace -vcodec libx264 -preset medium -g 30 -r 30 -acodec libmp3lame -ar 44100 -b:a 128k -f flv "rtmp://a.rtmp.youtube.com/live2/$KEY" |
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
| site '*://*.inoreader.com/*' { | |
| unmap j | |
| unmap q | |
| unmap u | |
| map u createHoverHint | |
| } |
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
| # Generowanie klucza | |
| dd bs=512 count=4 if=/dev/urandom of=/ścieżka/do/pliku-klucza iflag=fullblock | |
| # [1] Szyfrowanie z pomocą wygenerowanego klucza | |
| cryptsetup -c aes-xts-plain64 -s 512 luksFormat /dev/<wolumin> /ścieżka/do/pliku-klucza | |
| # [2] Dodanie klucza do kontenera zaszyfrowanego wcześniej, np. z hasłem | |
| cryptsetup luksAddKey /dev/<wolumin> /ścieżka/do/pliku-klucza |