Skip to content

Instantly share code, notes, and snippets.

@agsdot
agsdot / AddRepositoryToPacmanForYaourt
Created July 26, 2016 21:24 — forked from DenverDias/AddRepositoryToPacmanForYaourt
This snippet adds the repository to pacman that contains yaourt...
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
[Unit]
Description=smile_backend
After=syslog.target
[Service]
User=root
Group=root
ExecStart=/usr/bin/node /vagrant/backend/main.js

Keybase proof

I hereby claim:

  • I am agsdot on github.
  • I am jonathanlai (https://keybase.io/jonathanlai) on keybase.
  • I have a public key whose fingerprint is AF5A 4B03 FEB6 C0BC 8748 BBF3 0E99 76F4 9E87 68AA

To claim this, I am signing this object:

@agsdot
agsdot / osx-10.9-setup.md
Created June 28, 2016 21:01 — forked from kevinelliott/osx-10.9-setup.md
Clean Install – Mac OS X 10.9 Mavericks

Mac OS X 10.9 Mavericks

Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.

Install Software

The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.

Install from App Store

@agsdot
agsdot / Installing Drupal with drush
Created June 21, 2016 00:20 — forked from klan/Installing Drupal with drush
Step-by-step Drupal install with drush. Includes installation of: Omega theme (and sub-theme), Adminimal theme, Adminimal admin menu, Module Filter, Views, Context, ctools, Devel, Diff, Features, Entity API, Entity Reference, jQuery Update, Pathauto and Token.
› drush dl drupal --drupal-project-rename="projectname"
• Install site
› cd projectname/sites/all/modules/
› mkdir contrib custom
› drush dl adminimal_theme adminimal_admin_menu module_filter
› drush en -y adminimal_admin_menu module_filter
› drush variable-set admin_theme adminimal

Keybase proof

I hereby claim:

  • I am agsdot on github.
  • I am jonathanlai (https://keybase.io/jonathanlai) on keybase.
  • I have a public key whose fingerprint is F152 D9C7 37D5 0801 3E94 052B A959 5228 5259 E570

To claim this, I am signing this object:

var request = require('request');
var options = {
method: 'GET',
json: {},
uri: 'https://api.clever.com/v1.1/districts/4fd43cc56d11340000000005/sections',
headers: {
Authorization: 'Bearer DEMO_TOKEN'
}
};
@agsdot
agsdot / deployment-tool-ansible-puppet-chef-salt.md
Created April 16, 2016 19:46 — forked from jaceklaskowski/deployment-tool-ansible-puppet-chef-salt.md
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

browserify for webpack users

There's been a strange explosion in misinformation about browserify recently, particularly in comparisons to webpack.

Generally speaking, most of this confusion stems from how webpack is more willing to pull features into its core to ease discoverability while browserify is more likely to push features out to userland instead.

I think that longer-term, separability has more benefits from a maintenance and

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname