Skip to content

Instantly share code, notes, and snippets.

View tsyber1an's full-sized avatar
🎯
Focusing

Tsyren O. tsyber1an

🎯
Focusing
View GitHub Profile
@tsyber1an
tsyber1an / remove_brew-mongo_osx.sh
Created December 22, 2015 13:10 — forked from katychuang/remove_brew-mongo_osx.sh
remove mongodb that was installed via brew
#!/usr/bin/env sh
# checks to see if running
launchctl list | grep mongo
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
launchctl remove homebrew.mxcl.mongodb
pkill -f mongod
@tsyber1an
tsyber1an / web-servers.md
Created November 18, 2015 23:26 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@tsyber1an
tsyber1an / Dockerfile
Created October 21, 2015 15:06 — forked from Stanback/Dockerfile
PhantomJS 2.0 Dockerfile
#
# Example Dockerfile that builds PhantomJS 2.0
#
# Build with:
# docker build --rm --tag=phantom2.0:latest .
#
# Run with:
# docker run --name=phantom2.0 phantom2.0
#
# Copy the executable to your host machine for distribution:
@tsyber1an
tsyber1an / bash_tricks.md
Created September 28, 2015 09:25 — forked from tedslittlerobot/bash tricks
Bash Tips and Tricks for Ninja...

Copy (OSX only)

Pipe anything to pbcopy to copy it to the clipboard: cat ~/.ssh/id_rsa.pub | pbcopy

The last argument

To insert the last argument of the previous command wherever the cursor currently is, press alt+. (or, on a mac, esc+.)

File expansions

@tsyber1an
tsyber1an / Capybara-Rspec-Rails-assets-pipeline.md
Last active August 29, 2015 14:28 — forked from linjunpop/Capybara-Rspec-Rails-assets-pipeline.md
Capybara, Rspec, Rails assets pipeline
@tsyber1an
tsyber1an / Capybara.md
Last active August 29, 2015 14:27 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

<!doctype html>
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link rel="stylesheet" href="http://rawgit.com/carlosrocha/react-data-components/master/css/table-twbs.css">
<script src="http://fb.me/react-0.13.0-rc2.js"></script>
<script src="http://rawgit.com/carlosrocha/react-data-components/master/dist/react-data-components.min.js"></script>
<body><script id="jsbin-javascript">
var DataTable = ReactDataComponents.DataTable;
#!/bin/bash
# Create the directory structure
mkdir -p features/step_definitions
mkdir -p features/support
# Create a placeholder for the step_definitions folder
touch features/step_definitions/"$(basename `pwd`)_steps.rb"
# Create the environment file