Here is a list of my favorite podcasts, the list is ordered according to importance.
This file contains 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
#!/usr/bin/env python | |
# | |
# Copyright 2011 Abdulrahman Alotaiba | |
# http://www.mawqey.com/ | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
This file contains 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
const int baudRate = 9600; | |
const int ledCount = 10; | |
int ledPins[] = { 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 }; | |
char msg = ' '; | |
void setup() { | |
// loop over the pin array and set them all to output: | |
for (int thisLed = 0; thisLed < ledCount; thisLed++) { | |
pinMode(ledPins[thisLed], OUTPUT); |
This file contains 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
# Credit goes to Marcel http://narings.net/blog/archives/4 | |
echo "<img src=\"data:image/png;base64,`openssl base64 -in img.png | tr -d '\n\'`\">" > page.html |
This file contains 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
rsync -avz /path/to/local/sync/folder -e "ssh -i /path/to/ssh/key" ubuntu@ec2instance:/path/to/remote/sync/folder |
This file contains 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
openssl pkcs12 -in secret_file.p12 -out secret_file.pem -nodes -clcerts |
This file contains 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
open Chromium.app --args -user-agent="Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_0 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8A293 Safari/6531.22.7" |
This file contains 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 | |
# This script to turn on/off NATting through to a VPN server. | |
# Example would be turning the mac into a wireless router, and routing all the incoming | |
# traffic to the VPN server. | |
# Thanks to http://rodrigo.sharpcube.com/2010/06/20/using-and-sharing-a-vpn-connection-on-your-mac/ | |
case "$1" in | |
on) | |
echo "Turning NAT VPN on." | |
natd -interface tun0 |
OlderNewer