Skip to content

Instantly share code, notes, and snippets.

Zach Schneider schneidmaster

Block or report user

Report or block schneidmaster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1614716449de784f8224
module.exports.cors = {
// Allow CORS on all routes by default? If not, you must enable CORS on a
// per-route basis by either adding a "cors" configuration object
// to the route config, or setting "cors:true" in the route config to
// use the default settings below.
allRoutes: true,
// Which domains which are allowed CORS access?
// This can be a comma-delimited list of hosts (beginning with http:// or https://)
View capybara cheat sheet
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@schneidmaster
schneidmaster / keybase.md
Last active Aug 29, 2015
Keybase Verification
View keybase.md

Keybase proof

I hereby claim:

  • I am schneidmaster on github.
  • I am schneidmaster (https://keybase.io/schneidmaster) on keybase.
  • I have a public key whose fingerprint is 52CB 6EAB 53C8 0D70 3C94 4A20 51C2 084C 8886 D61E

To claim this, I am signing this object:

@schneidmaster
schneidmaster / setup.sh
Last active Aug 30, 2018
Environment Setup
View setup.sh
# Sets up basic development environment for ruby and nodejs
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Install Homebrew basics
brew install adns apr apr-util archey aspell atk augeas autoconf automake aws-cfn-tools aws-elasticbeanstalk awscli boost cairo certbot clamav cmake convox coreutils dialog dos2unix doxygen ec2-api-tools elasticsearch erlang faac ffmpeg flow fontconfig freetds freetype gcc gd gdbm gettext gifsicle git glew glib gmp gnupg gnupg2 gnutls go gobject-introspection gource graphviz heroku htop htop-osx hub icu4c imagemagick isl jhead jpeg jpegoptim lame libassuan libevent libffi libgcrypt libgpg-error libidn2 libksba libmpc libpng libpq libtasn1 libtiff libtool libunistring libusb libusb-compat libvo-aacenc libxml2 libyaml libzip mcrypt memcached mhash mpfr mysql nettle node npth nvm openssl optipng overmind p11-kit pcre pgcli phantomjs php pinentry pinentry-mac pixman pkg-config prettyping pth python python3 python@2 qt r
@schneidmaster
schneidmaster / config.js
Created May 1, 2015
Sample Ghost Production Configuration
View config.js
// # Ghost Configuration
// Setup your Ghost install for the production environment
// Documentation can be found at http://support.ghost.org/config/
var path = require('path'),
config;
config = {
// ### Production
// When running Ghost in the wild, use the production environment
@schneidmaster
schneidmaster / site.conf
Created May 1, 2015
Sample Ghost nginx Config
View site.conf
server {
server_name .yourdomain.com;
access_log /srv/www/yourdomain.com/logs/access.log;
error_log /srv/www/yourdomain.com/logs/error.log;
passenger_app_root /srv/www/yourdomain.com/public;
passenger_enabled on;
passenger_app_type node;
passenger_startup_file index.js;
View gist:9e94ed793e12e9073397
Verifying I am +schneidmaster on my passcard. https://onename.com/schneidmaster
@schneidmaster
schneidmaster / SimpleHTTPServer.cs
Created Sep 23, 2015
Simple C# Webserver for Aha! access token
View SimpleHTTPServer.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;
using System.IO;
using System.Threading;
using System.Diagnostics;
@schneidmaster
schneidmaster / policy.json
Created Dec 17, 2015
S3 policy to allow full access to a bucket
View policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetBucketLocation"
],
"Resource": "arn:aws:s3:::BUCKET_NAME"
@schneidmaster
schneidmaster / MaskedInput.js
Created Jan 28, 2016
react-bootstrap + react-maskedinput
View MaskedInput.js
import React from 'react';
import classNames from 'classnames';
import { Input } from 'react-bootstrap';
import MaskedInputField from 'react-maskedinput';
export default class MaskedInput extends Input {
renderInput() {
const className = this.isCheckboxOrRadio() || this.isFile() ? '' : 'form-control';
return <MaskedInputField {...this.props} className={classNames(this.props.className, className)} ref="input" key="input" />;
}
You can’t perform that action at this time.