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
# If the server has ffmpeg: | |
## For the server: | |
ffmpeg -f fbdev -i /dev/fb0 -f avi pipe:1 | nc -l -p 1234 | |
## For the viewer: | |
nc 127.0.0.1 1234 | ffplay -i pipe:0 | |
# If the server doesn't have ffmpeg: | |
## For the server: | |
sudo cat /dev/fb0 | nc -l -p 1234 | |
## For the viewer (replace 1920x1080 with the server's resolution): |
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/sh | |
# install pacaur | |
cd | |
sudo pacman -S --noconfirm wget expac git | |
wget https://aur.archlinux.org/cgit/aur.git/snapshot/cower.tar.gz | |
tar -xvf cower.tar.gz | |
cd cower | |
makepkg --skipinteg | |
sudo pacman -U cower-14-2-x86_64.pkg.tar.xz |
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 | |
exec 3<> /dev/tcp/${1:-www.cyberciti.biz}/80 | |
printf "GET / HTTP/1.0\r\n" >&3 | |
printf "Accept: text/html, text/plain\r\n" >&3 | |
printf "Accept-Language: en\r\n" >&3 | |
printf "User-Agent: nixCraft_BashScript v.%s\r\n" "${BASH_VERSION}" >&3 | |
printf "\r\n" >&3 | |
while read LINE <&3 |
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://raw.githubusercontent.com/vosh/scripts/master/pacman | |
https://raw.githubusercontent.com/vosh/scripts/master/rallyx | |
https://raw.githubusercontent.com/vosh/scripts/master/slendy | |
https://raw.githubusercontent.com/vosh/scripts/master/invaders |
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
adb shell "run-as package.name chmod 666 /data/data/package.name/databases/file" | |
adb pull /data/data/package.name/databases/file . | |
adb shell "run-as package.name chmod 600 /data/data/package.name/databases/file" |
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
var code_blocks = $("pre > code"); | |
code_blocks.prepend("1\t"); | |
for (var b = 0; b < code_blocks.length;b++) { | |
var newlines = $(code_blocks[b]).find("span.pln"); | |
var c = 1; | |
for (var i=0;i < newlines.length;i++) { | |
newlines[i].innerHTML = newlines[i].innerHTML.replace(/(?:\r\n|\r|\n)/g, function(x) { | |
return "\n" + ++c + "\t"; | |
}); | |
} |
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
#include <execinfo.h> | |
#include <stdio.h> | |
#include <signal.h> | |
/** | |
* Outputs the backtrace if the application crashes | |
* @param signal The signal that was sent when the application crashed | |
*/ | |
void exception_signal_handler(int signal) { | |
const int num_backtraces = 20; |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash] | |
@="Open bash shell here" | |
"Icon"="%USERPROFILE%\\AppData\\Local\\lxss\\bash.ico" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\bash\command] | |
@="C:\\Windows\\System32\\bash.exe" | |
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
<Target Name="NSwag Debug" AfterTargets="Build" Condition="'$(Configuration)'=='DEBUG'"> | |
<Exec Command="$(NSwagExe) run Debug.nswag" /> | |
</Target> | |
<Target Name="NSwag Release" AfterTargets="Build" Condition="'$(Configuration)'=='RELEASE'"> | |
<Exec Command="$(NSwagExe) run Release.nswag" /> | |
</Target> |
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
git clone https://github.com/Kitware/CMake.git | |
cd CMake | |
./bootstrap --parallel=4 | |
make -j 4 | |
sudo make install |