$ cat /etc/passwd | grep bash root:x:0:0:root:/root:/bin/bash aluno:x:1000:1000:Aluno,,,:/home/aluno:/bin/bash aluno2:x:1001:1001::/home/aluno2:/bin/bash
Hacking CORS restriction to enable in-browser XHR to any server.
Say you are running an web app at localhost, and you want to send XHR to http://remote-server:80
, but the CORS restriction forbids access because you are sending requests from an origin that remote-server:80 does not allow.
Run:
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
/* | |
* sixpair.c version 2007-04-18 | |
* Modified to run on Mac OSX by | |
* Erlend Cleveland 2011-09-04 | |
* | |
* Compile with: gcc -o sixpair sixpair.c -lusb | |
*/ | |
#include <string.h> | |
#include <unistd.h> |
The controller almost works wirelessly, but it keeps pressing "D-pad down" button and disconnects. Since there is a warning on my PPC compiling tryout... it must be some bug.
Check this Imgur Gallery for some pics.
I also forked some fork of the original sixpair - that seems to have DualShock4 support.
May RetroArch and it's input drivers help?
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 | |
cd $(dirname $0) | |
arch=powerpc | |
ram=256 | |
dist=jessie | |
mirror='http://ftp.de.debian.org/debian' | |
disk=debian-$dist-$arch.qcow2 |
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 | |
service bind9 stop | |
pgrep pihole-FTL | |
if [ $? -gt 0 ] | |
then | |
pihole-FTL | |
else | |
echo "pihole-FTL's process is already running!" |
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 whoami ; locate com.apple.UserEventAgent-System | xargs sudo launchctl unload | |
# https://discussions.apple.com/thread/6614895 |
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
''' | |
Helper script for Koha 19.05.01 - Tarball stable - on armhf Ubuntu Xenial - running on my Odroid C2 | |
It installs the most missing modules using CPAN from root shell ! | |
Instructions: | |
- After running: | |
# perl -MCPAN -e "install Modern::Perl" | |
- You need to pipe the output from the PERL Dependencies Script to "missing_mods.txt": | |
# ./koha_perl_deps.pl -m -u > ./missing_mods.txt |