Skip to content

Instantly share code, notes, and snippets.

Forrest Jordan fjordan

Block or report user

Report or block fjordan

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
fjordan / App.js
Created Nov 12, 2017 — forked from shelldandy/App.js
nprogress with react-router in create-react-app
View App.js
import React from 'react'
import { BrowserRouter as Router, Switch } from 'react-router-dom'
import routes from './routes'
import FancyRoute from './components/tools/FancyRoute'
const App = props =>
{, i) =>
<FancyRoute key={i} {...route} />
fjordan / pedantically_commented_playbook.yml
Created Sep 22, 2015 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
View pedantically_commented_playbook.yml
# ^^^ YAML documents must begin with the document separator "---"
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
fjordan / Ansible-Vault
Created Sep 22, 2015 — forked from tristanfisher/Ansible-Vault
A short tutorial on how to use Vault in your Ansible workflow. Ansible-vault allows you to more safely store sensitive information in a source code repository or on disk.
View Ansible-Vault

##Working with ansible-vault

I've been using a lot of Ansible lately and while almost everything has been great, finding a clean way to implement ansible-vault wasn't immediately apparent.

What I decided on was the following: put your secret information into a vars file, reference that vars file from your task, and encrypt the whole vars file using ansible-vault encrypt.

Let's use an example: You're writing an Ansible role and want to encrypt the spoiler for the movie Aliens.

fjordan /
Last active Sep 5, 2015 — forked from rantav/
Find slow queries in mongo DB

A few show tricks to find slow queries in mongodb

Enable profiling

First, you have to enable profiling

> db.setProfilingLevel(1)

Now let it run for a while. It collects the slow queries ( > 100ms) into a capped collections, so queries go in and if it's full, old queries go out, so don't be surprised that it's a moving target...

fjordan /
Last active Aug 29, 2015
import java.util.ArrayList;
public class HelloWorld{
public static void main(String []args) {
ArrayList<String> arrayList = new ArrayList<String>();
arrayList.add(0, "test1") ;
arrayList.add(1, "test2");
arrayList.add(2, "test3");
View pic.go
package main
import ""
func Pic(dx, dy int) [][]uint8 {
slice := make([][]uint8, dy)
for idx := 0; idx < dy; idx++ {
x := make([]uint8, dx)
# First do a fresh install of CentOS 5.7 i386, server configuration (no GUI)
# This should be performed as root since it's going to be installing a bunch of stuff
# --- Update things to make sure we have the latest patches ---
# Add EPEL so we can get reasonably recent packages
rpm -Uvh
# --- Install all the packages --- #
yum -y install python-whisper python-carbon graphite-web python-memcached python-ldap httpd memcached
fjordan /
Created May 22, 2012 — forked from erikh/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
You can’t perform that action at this time.