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
curl -s http://web.servel.cl/archivos.xml | grep -ohE 'A\d{7}.pdf' | while read x; do curl -o $x http://web.servel.cl/padron/$x; 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/sh | |
iptables -P INPUT DROP | |
iptables -P OUTPUT DROP | |
iptables -P FORWARD DROP | |
iptables -A INPUT -i eth0 -p tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT | |
iptables -A OUTPUT -o eth0 -p tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT | |
iptables -A INPUT -i eth0 -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT |
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
bool AppDelegate::applicationDidFinishLaunching() { | |
CCSize designSize = CCSizeMake( 480,320); | |
CCSize resourceSize = CCSizeMake(480,320); | |
CCSize screenSize = CCEGLView::sharedOpenGLView()->getFrameSize(); | |
std::vector<std::string> searchPaths; | |
std::vector<std::string> resDirOrders; | |
TargetPlatform platform = CCApplication::sharedApplication()->getTargetPlatform(); | |
if (platform == kTargetIphone || platform == kTargetIpad) |
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
**Tree diagram of files and folders:** | |
``` | |
. | |
├── LICENSE | |
├── Makefile | |
├── README.md | |
├── bin | |
│ └── run.js | |
├── config.js |
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 | |
echo -e "nodejs_installer.sh - \033[37mNode\033[32m\033[32mJS \033[0minstaller for \033[35mRaspberry Pi\033[0m" | |
echo -e "========================================================\n" | |
if [ "$(uname -m)" != "armv6l" ]; then | |
echo -e "\033[31mError: \033[0marmv6l architecture not found. (Are you sure that you are running the script on a Raspberry Pi?)\033[0m"; | |
exit 1; | |
else | |
echo -e "\033[35mRaspberry Pi \033[32mfound! Proceeding...\033[0m" |