Skip to content

Instantly share code, notes, and snippets.

View ambethia's full-sized avatar
🐼
PANDAS!

Jason L Perry ambethia

🐼
PANDAS!
View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.redis.server</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/redis-server</string>
@ambethia
ambethia / ssh-copy-id
Created April 20, 2010 16:15
`ssh-copy-id` on OS X
sudo curl "http://gist.github.com/raw/372696/bffde4ea5cf23eebd8b0f4ee15708a0a9d0af7f5/ssh-copy-id" -o /usr/local/sbin/ssh-copy-id
sudo chmod +x /usr/local/sbin/ssh-copy-id
@ambethia
ambethia / dreamhost.md
Created June 13, 2010 06:15
Some notes on hosting private git repositories on Dreamhost via http

Hosting private git repositories on Dreamhost via http

By default, without authentication of some sort, git-http-backend will deny pushes with something like:

error: Cannot access URL http://git.example.com/project.git/, return code 22
fatal: git-http-push failed

So have an htpasswd file in place:

htpasswd -c ~/passwords username

Index: MovementController.m
===================================================================
--- MovementController.m (revision 553)
+++ MovementController.m (working copy)
@@ -969,11 +969,11 @@
if ( tooClose < 3.0f ) tooClose = 3.0f;
// no object, no actions, just trying to move to the next WP!
- if ( _destinationWaypoint && !self.isFollowing && ( ![_destinationWaypoint actions] || [[_destinationWaypoint actions] count] == 0 ) && distance < tooClose ) {
Index: BotController.m
===================================================================
--- BotController.m (revision 652)
+++ BotController.m (working copy)
@@ -5805,6 +5805,14 @@
[movementController dismount];
}
+ if ([playerPosition distanceToPosition:[nodeToFish position]] <= 12.0) {
+ log(LOG_FISHING, @"Too close to the fishing node, attempting to take a few steps back...");
Wed Mar 2 17:04:59 connection accepted from 127.0.0.1:39640 #82824
Wed Mar 2 17:05:00 end connection 127.0.0.1:39640
Wed Mar 2 17:05:01 connection accepted from 127.0.0.1:39642 #82825
Wed Mar 2 17:05:02 end connection 127.0.0.1:39642
Wed Mar 2 17:05:03 connection accepted from 127.0.0.1:39644 #82826
Wed Mar 2 17:05:03 end connection 127.0.0.1:39644
Wed Mar 2 17:05:05 connection accepted from 127.0.0.1:39646 #82827
Wed Mar 2 17:05:05 end connection 127.0.0.1:39646
Thu Mar 3 00:53:25 connection accepted from 127.0.0.1:48615 #82828
Thu Mar 3 00:53:25 end connection 127.0.0.1:48615
@ambethia
ambethia / php-cgi.rb
Created June 18, 2011 13:10 — forked from eston/php-cgi.rb
Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.)
# Homebrew Formula for PHP 5.2.14 as php-cgi (for nginx, etc.)
require 'formula'
class PhpCgi <Formula
@url='http://www.php.net/get/php-5.2.14.tar.bz2/from/www.php.net/mirror'
@version='5.2.14'
@homepage='http://php.net/'
@md5='bfdfc0e62fe437020cc04078269d1414'
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAtq4sV9zglIqqkqCvhwdiOTZ2a6D3xhmBAJulHVLMrsD1QL0662R84iCi4VdMlvviKo1W0zk98pjvnQC4Q1KZJ1xmPPyq97pbZAipZR15MNqOS5R82Oo8+cpdQsJwdQBhA47OxpOKrju6AqxWg8Tz3m7Lda0iDa4woXNG8eMwIGCZ31iBFOMuz/aSWc92KZ3p6lqJw2C3H2H1h6291AfYRSnShF5wfYCQDjLupkhX6jq90u4cGcFrWJBgRPLs0Xkl4azNTlo4/dFMaI1jYI363K9ERk33tUsh4hqHTt8saDNo4+c+46Lv/5dmznsxkcei46yD9fTuB85pQMEFWILB0w== jasper@ambethia.com
@ambethia
ambethia / known_hosts
Created July 9, 2011 03:49
For Github
|1|gopSEjSKydn0UOBAAI71LwHfWdg=|Fxahlij6K582JOOQEulTwAcQqCA= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
|1|5OLgsplenFhWSTmJWQS66Umew0g=|CRLvMOULJHsb9ctZJJY+WaI1Fds= ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==
@ambethia
ambethia / gist:1145689
Created August 15, 2011 03:55
Shitty port of ActiveModel::Errors#full_messages
fullErrorMessages = (errorData) ->
full_messages = []
$.each errorData, (attribute, messages) ->
if attribute == 'base'
$.each messages, (index, message) ->
full_messages.push(message)
else
attribute = attribute.replace('_', ' ')
attribute = attribute.charAt(0).toUpperCase() + attribute.slice(1)
$.each messages, (index, message) ->