Skip to content

Instantly share code, notes, and snippets.

View germs12's full-sized avatar
:shipit:

James Thullbery germs12

:shipit:
View GitHub Profile
@germs12
germs12 / gist:5774315
Created June 13, 2013 14:52
linphone output
Init Linphone Web
linphone-core-0.0.1.2.js:6Browser language: en_us
linphone-core-0.0.1.2.js:6Loading ...
linphone-core-0.0.1.2.js:6Detection: ...
linphone-core-0.0.1.2.js:6Detection: Ok
linphone-core-0.0.1.2.js:6Load Core
linphone-core-0.0.1.2.js:6Sip port: 5061
linphone-core-0.0.1.2.js:6Create VideoView 1
linphone-core-0.0.1.2.js:6Create VideoView 2
linphone-core-0.0.1.2.js:6P7CoreAPI| State: 1, Starting up
@germs12
germs12 / gist:5846432
Last active December 18, 2015 21:19
Android Development
https://developers.google.com/chrome-developer-tools/docs/remote-debugging#enable-usb-debugging
# List all attached devices
$ adb devices
# Desktop Debugging mobile devices
# Visit http://localhost:9222
adb forward tcp:9222 localabstract:chrome_devtools_remote
@germs12
germs12 / AlloyUI
Last active December 19, 2015 06:09
AlloyUI Selecting an element
# http://yuilibrary.com/yui/docs/node/
YUI().use('node', function(Y) { console.log(Y.one("#test_data").get('innerHTML'));});
# Working with elements
https://www.liferay.com/web/nathan.cavanaugh/blog/-/blogs/alloyui-working-with-elements-and-events
@germs12
germs12 / gist:5965713
Created July 10, 2013 12:00
YUI DataTable
# http://yuilibrary.com/yui/docs/datasource/datasource-io.html
# UI w/ triggers
# THIS FAILED. had to use IO instead of dsget
# http://yuilibrary.com/yui/docs/datatable/datatable-dsget.html
# http://www.sinatrarb.com/
# Server to return json
@germs12
germs12 / gist:6045463
Created July 20, 2013 15:30
Download a whole website
http://stackoverflow.com/a/9265223/579018
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains website.org \
@germs12
germs12 / postgres brew install log
Last active December 20, 2015 01:28
brew install postgres Mac OS X
BREW INSTALL
============
$ brew install postgresql
==> Installing postgresql dependency: ossp-uuid
==> Downloading ftp://ftp.ossp.org/pkg/lib/uuid/uuid-1.6.2.tar.gz
######################################################################## 100.0%
######################################################################## 100.0%==> ./configure --prefix=/usr/local/Cellar/ossp-uuid/1.6.2 --without-perl --with
==> make
==> make install
==> Caveats
@germs12
germs12 / gist:6190425
Created August 9, 2013 01:26
nginx ubuntu server 12.10
# https://www.digitalocean.com/community/articles/how-to-install-the-latest-version-of-nginx-on-ubuntu-12-10
$ sudo add-apt-repository ppa:nginx/stable
You are about to add the following PPA to your system:
Stable version of nginx.
The following are no longer updated past 1.2.7, due to PPA build restrictions:
* Maverick
The following will not be updated past 1.4.1, except for bugfixes which may have been missed:
@germs12
germs12 / gist:6192967
Last active December 20, 2015 20:49
Capistrano Recipes
# http://capitate.rubyforge.org/recipes/deploy.html
# http://hwcdn.libsyn.com/p/3/b/5/3b525a1ca7d1a2ea/BasicDeploymentWithCapistrano.m4v?c_id=2555630&expiration=1376010403&hwt=4d314b49a14f35f34d305a0be7e063e1
@germs12
germs12 / gist:6200759
Created August 10, 2013 15:09
Postgres Install Ubuntu
# http://hendrelouw73.wordpress.com/2012/11/14/how-to-install-postgresql-9-1-on-ubuntu-12-10-linux/
@germs12
germs12 / gist:6201006
Last active December 20, 2015 21:58
phusion passenger install ubuntu server 12.10
# http://www.modrails.com/documentation/Users%20guide%20Nginx.html#_installation
sudo apt-add-repository ppa:brightbox/passenger
Nginx with Passenger support was successfully installed.
The Nginx configuration file (/opt/nginx/conf/nginx.conf)
must contain the correct configuration options in order for Phusion Passenger
to function correctly.
This installer has already modified the configuration file for you! The