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 -i 'concat:output.1.avi|output.2.avi|output.3.avi|output.4.avi|output.5.avi' -i audio.wav -c:v copy -c:a aac output.mp4 |
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
| for i in $(find . * -type f -executable); do line=$(strings $i | grep cc1.exe); [[ ! -z $line ]] && printf "$i: " && echo $line && echo "/////"; done |
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 | |
| src="" | |
| dest="" | |
| TRASH="$HOME/Trashbin/" | |
| ARGC=$# | |
| [[ -d $TRASH ]] || mkdir -v $TRASH | |
| ret=$? |
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
| find . -name mb_msggen* | sed -En "s/\.c/\.h/p" | sed -En "s/src/inc/p" | xargs touch |
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
| ~~~ | |
| #Backup | |
| $ sudo dd if=/dev/sdX | gzip -c > /path/to/backup.img.gz & | |
| $ while((1)); do sudo kill -SIGUSR1 $(pidof dd); sleep 1; if [[ $(pidof dd) == "" ]]; then break; fi; done | |
| ~~~ | |
| #Restore | |
| $ gunzip -c /path/to/backup.img.gz | dd of=/dev/sdY | |
| $ while((1)); do sudo kill -SIGUSR1 $(pidof dd); sleep 1; if [[ $(pidof dd) == "" ]]; then break; fi; done | |
| ~~~ | |
| #See https://wiki.archlinux.org/index.php/Dd |
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
| rpm2cpio ./somepackage.rpm | cpio -idmv |
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
| # Simon Game - based on 101Computing - www.101computing.net/microbit-simon-game | |
| from microbit import * | |
| import music | |
| import random | |
| plus = Image("00000:" | |
| "00900:" | |
| "09990:" | |
| "00900:" | |
| "00000") |
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
| murat@mbuntu:~/img$ | |
| murat@mbuntu:~/img$ dd if=zero.img of=test.mimg bs=4M | |
| 305+0 records in | |
| 305+0 records out | |
| 1279262720 bytes (1,3 GB, 1,2 GiB) copied, 66,4101 s, 19,3 MB/s | |
| murat@mbuntu:~/img$ file zero.img | |
| zero.img: symbolic link to /media/murat/3d0e442e-8cfc-4fe7-83e8-5ef197755b8a/Images/Armbian_5.25_Orangepizero_Debian_jessie_default_3.4.113.img | |
| murat@mbuntu:~/img$ | |
| murat@mbuntu:~/img$ dd if=/media/murat/3d0e442e-8cfc-4fe7-83e8-5ef197755b8a/Images/Armbian_5.25_Orangepizero_Debian_jessie_default_3.4.113.img of=test2.mimg bs=4M | |
| 305+0 records in |
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
| aortopi@orangepiplus2e:~$ bin2fex /boot/bin/orangepiplus2e.bin | grep spi | |
| fexc-bin: /boot/bin/orangepiplus2e.bin: version: 0.1.2 | |
| fexc-bin: /boot/bin/orangepiplus2e.bin: size: 38012 (83 sections) | |
| [spi0] | |
| spi_used = 1 | |
| spi_cs_bitmap = 1 | |
| spi_mosi = port:PC00<3><default><default><default> | |
| spi_miso = port:PC01<3><default><default><default> | |
| spi_sclk = port:PC02<3><default><default><default> | |
| spi_cs0 = port:PC03<3><1><default><default> |
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
| aortopi@orangepiplus2e:~$ dmesg | grep fb | |
| [ 3.946673] fbtft_device: SPI devices registered: | |
| [ 3.946692] fbtft_device: spidev spi0.0 33000kHz 8 bits mode=0x00 | |
| [ 3.946703] fbtft_device: 'fb' Platform devices registered: | |
| [ 3.946767] fbtft_device: Deleting spi0.0 | |
| [ 3.947537] flexfb spi0.0: fbtft_request_gpios: 'reset' = GPIO2 | |
| [ 3.947566] flexfb spi0.0: fbtft_request_gpios: 'dc' = GPIO71 | |
| [ 3.947578] flexfb spi0.0: flexfb_verify_gpios_dc() | |
| [ 3.947589] flexfb spi0.0: fbtft_init_display() | |
| [ 3.947599] flexfb spi0.0: fbtft_reset() |
NewerOlder