Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Lynch BobertForever

View GitHub Profile
View npm_install.config
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/09_npm_install.sh" :
mode: "000775"
owner: root
group: users
content: |
. /opt/elasticbeanstalk/hooks/common.sh
set -xe
View heroku.sh
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs.git
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
View component.js
//= require_self
//= require react_ujs
// React globals
React = require('react');
ReactDOM = require('react-dom');
// Our components
Toaster = require('./components/toaster.jsx').default;
Comments = require('./components/comments.jsx').default;
View toaster.jsx
import NotificationSystem from 'react-notification-system';
import postal from 'postal';
export default class Toaster extends React.Component {
constructor(props) {
super(props);
this._notificationSystem = null;
}
componentDidMount() {
View application.rb
config.browserify_rails.commandline_options = "-t [ babelify --presets es2015,react ] --extension=\".jsx\""
View package.json
{
"dependencies": {
"babel-preset-es2015": "^6.0.15",
"babel-preset-react": "^6.0.15",
"babelify": "^7.1.0",
"browserify": "^10.2.4",
"browserify-incremental": "^3.0.1",
"postal": "^1.0.7",
"react": "^0.14.1",
"react-dom": "^0.14.1",
View comments.es6.jsx
class Comments extends React.Component {
constructor(props) {
super(props);
this.state = {comments: []};
}
componentDidMount() {
$.get('/comments.json', {
activity_id: this.props.activity_id
}, (data) => {
@BobertForever
BobertForever / delete_facebook_group_memebers.py
Last active Aug 29, 2015
Delete all members of a facebook group using Selenium
View delete_facebook_group_memebers.py
import os
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from facepy import GraphAPI
import contextlib
import time
import threading
usr = 'FB_USER'
pwd = 'FB_PASS'
View keybase.md

Keybase proof

I hereby claim:

  • I am BobertForever on github.
  • I am rmlynch (https://keybase.io/rmlynch) on keybase.
  • I have a public key whose fingerprint is 5D95 02FC 3977 2EE0 42AF 78C8 EBE2 DFEB 6762 DBF4

To claim this, I am signing this object:

@BobertForever
BobertForever / horation_login.sh
Created Feb 17, 2014
Automated script to login to UTCS's ethernet network Horatio
View horation_login.sh
#!/bin/bash
login_successful="false"
while [ "$login_successful" == "false" ]; do
echo "TESTING CONNECTION"
echo
google_status=$(ping -c2 -W1 www.google.com)
google_return_value=$?
google_status=$(echo "$google_status" | grep transmitted | cut -d \ -f 6 | sed 's/%$//')
horatio_status=$(ping -c2 -W1 horatio.cs.utexas.edu)
You can’t perform that action at this time.