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/sh | |
USER="someuser" | |
SERVER="example.com" | |
LOCAL_DIR="/Users/ytn3rd/somedir/" | |
REMOTE_DIR="/var/www/htdocs" | |
PEM_LOCATION="~/.ssh/some_key.pem" | |
code $LOCAL_DIR |
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/sh | |
# Based on gist.github.com/gboudreau/install-ffmpeg-amazon-linux.sh | |
# and https://trac.ffmpeg.org/wiki/CompilationGuide/Centos | |
if [ "`/usr/bin/whoami`" != "root" ]; then | |
echo "You need to execute this script as root." | |
exit 1 | |
fi | |
cat > /etc/yum.repos.d/centos.repo<<EOF |
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/sh | |
CORES=$1 | |
HT="" | |
if [ -n "$2" ]; then | |
HT="ht" | |
else | |
HT="" | |
fi |
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
// 1. Bookmark whatever page you are currently on. Best to bookmark it into your bookmark toolbar below your address bar. | |
// 2. Right mouse click and click edit on your new bookmark. | |
// 3. For name, enter something like, invite all | |
// 4. For URL input the following code. (will explain lower what it actually does if you want) | |
javascript:var inputs = document.getElementsByClassName('uiButton _1sm');for(var i=0; i<inputs.length;i++) {inputs[i].click();} | |
// 5. Go to your page you want to invite people to. | |
// 6. On the right where you can invite people click the "See All" button. | |
// 7. In the popup that comes up, scroll to the bottom. More contacts will load. Keep scrolling until it wont load any more. | |
// 8. Click your saved bookmark and wait. As you scroll the page you can see loading wheels on the right, and then when invites are sent it'll say "invite sent" below their name. |
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
public bool HasFlash() | |
{ | |
if (_camera == null) | |
{ | |
return false; | |
} | |
bool hasFlash = MyMainActivity.PackageManager.HasSystemFeature(Android.Content.PM.PackageManager.FeatureCameraFlash); | |
if (hasFlash) | |
return true; |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using MonoTouch.Foundation; | |
using MonoTouch.UIKit; | |
using MonoTouch.AssetsLibrary; | |
namespace ImagePickerSample | |
{ | |
[Register("AppDelegate")] |
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 | |
# | |
# description: Murmur Service Start Script | |
# Ronny Chilinski (its-rc.de), Mai 2008 | |
# Start the service Murmur | |
start() { | |
echo -n $"Starting Murmur server " | |
/home/murmur/murmur-static_x86-1.2.4/murmur.x86 -ini /home/murmur/murmur-static_x86-1.2.4/murmur.ini |
NewerOlder