Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ijy
ijy / gitcom.md
Created May 7, 2018 16:38 — forked from jednano/gitcom.md
Common git commands in a day-to-day workflow

Git Cheat Sheet

Initial Setup

Create an empty git repo or reinitialize an existing one

$ git init
@ijy
ijy / osx_lion_rail_setup.md
Created July 11, 2012 11:59 — forked from jpantuso/osx_lion_rail_setup.md
Setup OS X 10.7 w/ homebrew, oh-my-zsh, rvm, rails, and MySQL
@ijy
ijy / banner.css
Created March 20, 2018 12:33
Tailwind, postcss-import, & cssnext media queries
.c-banner {
...
height: 400px;
outline: 5px solid red;
/* Breakpoints ========================================================= */
@media (--tablet) {
height: 500px;
}
@ijy
ijy / crontab_helper
Created August 17, 2016 14:53 — forked from khalwat/crontab_helper
Never struggle with editing your crontab again; put this in the beginning of each of your crontabs
# * * * * * command to execute
# ┬ ┬ ┬ ┬ ┬
# │ │ │ │ │
# │ │ │ │ │
# │ │ │ │ └───── day of week (0 - 6) (0 to 6 are Sunday to Saturday, or use names)
# │ │ │ └────────── month (1 - 12)
# │ │ └─────────────── day of month (1 - 31)
# │ └──────────────────── hour (0 - 23)
# └───────────────────────── min (0 - 59)
@ijy
ijy / gist:2017411
Created March 11, 2012 17:55
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (PC)

Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.

Editing

Ctrl+C copy current line (if no selection)
Ctrl+X cut current line (if no selection)
Ctrl+⇧+K delete line
Ctrl+↩ insert line after
@ijy
ijy / ensure-cert-macos.sh
Created December 1, 2017 09:26 — forked from koop/ensure-cert-macos.sh
Ensures a certificate is in the macOS system keychain.
#!/bin/bash
# Usage
# $ ./install-cert-macos.sh "/path/to/cert"
CERT_PATH="$1"
# First, grab the SHA-1 from the provided SSL cert.
CERT_SHA1=$(openssl x509 -in "$CERT_PATH" -sha1 -noout -fingerprint | cut -d "=" -f2 | sed "s/://g")
# Next, grab the SHA-1s of any standard.dev certs in the keychain.
# Don't return an error code if nothing is found.
@ijy
ijy / portal.md
Created November 26, 2017 10:58 — forked from glinton/portal.md
Portal as an SSL terminator for `nanobox run`

Download portal for your OS.

Create a config file for portal

config.json

{
 "db-connection": "scribble:///tmp/portal",
 "log-level": "info",
 "server": true,

>> "just-proxy": true

@ijy
ijy / ngrok-installation.md
Created November 26, 2017 10:57 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

#Installing ngrok on OSX

  1. Download ngrok
  2. Unzip it to your Applications directory
  3. Create a symlink (instructions below)

Creating a symlink to ngrok

Run the following two commands in Terminal to create the symlink.

# cd into your local bin directory
@ijy
ijy / xslt-hyperlink-creator.xml
Created January 12, 2014 22:11
Converts any plain text URL strings into HTML formatted hyperlinks.
@ijy
ijy / sym-next-characteristics.md
Last active December 27, 2015 07:59
A list of core characteristics for Symphony Next from varying user roles and perspectives.

Symphony Next - Core Characteristics

A list of requirements for Symphony Next from differing user roles and perspectives.

Roles & Perspectives:

  • Content publisher: User of the system. Front-line of the operation responsible for publishing/editing content on a regular basis. Isn't concerned with anything else other than what is required to do their job well.
  • Content Manager: User of the system. Manages content publishers with more control of the overall system and more permissive user permissions.
  • Website Builder (evaluating): Site developer/designer. Looking for a CMS/platform to use as the basis for their web work but needs to make a choice which will be a good fit for a number of projects of varying sizes for the foreseable future.
  • Website Builder (building a system): Site developer/designer. Will most likely work primarily via the GUI in building the website but may or may not have other developent skills.