Skip to content

Instantly share code, notes, and snippets.

View regiellis's full-sized avatar

Regi Ellis regiellis

View GitHub Profile
Framer.Device.Devices["my-device"] =
name: "My Device"
deviceType: "mobile"
deviceImage: "my-device.png"
deviceImageWidth: 472
deviceImageHeight: 806
screenWidth: 320
screenHeight: 400

###Terminal Motions

  • Meta-d to delete a word starting from the current cursor position
  • Ctrl-a to jump to start of the line
  • Ctrl-e to jump to end of the line
  • Ctrl-k to kill the line starting from the cursor position
  • Ctrl-y to paste text from the kill buffer
  • Ctrl-r to reverse search for commands you typed in the past from your history
  • Ctrl-s to forward search (works in zsh for me but not bash)
  • Ctrl-f to move forward by a char
{
"colors": {
"black": 16,
"white": 231,
"green": 2,
"darkestgreen": 22,
"darkgreen": 28,
"mediumgreen": 70,
"brightgreen": 148,
{
"error": {
"code": 500,
"message": "Internal Server Error",
"exception": [
{
"message": "An exception occurred while executing 'INSERT INTO preference (preference_id, physician_id, location_id, name, all_ages, calendar_id) VALUES (?, ?, ?, ?, ?, ?)' with params [\"bdb25048-e508-11e4-988a-a9828e43a571\", \"002e7d00-663f-11e4-bd49-3c15c2d9eaf0\", \"032b8e3a-65f9-11e4-bd49-3c15c2d9eaf0\", \"Preference for : Mahesh Bhambore @ Cardiovascular & Thoracic Surgical Specialists [Orlando] \", null, \"bdb23568-e508-11e4-988a-a9828e43a571\"]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '032b8e3a-65f9-11e4-bd49-3c15c2d9eaf0-002e7d00-663f-11e4-bd49-3c1' for key 'ux_physician_location_id'",
"class": "Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException",
"trace": [
{
@regiellis
regiellis / .jshintrc
Created October 12, 2015 13:46
React JSHint
{
// Environments - these prevent warnings about the use of some global
// variables. e.g. 'browser' assumes a 'window' global is available, etc.
"browser": true,
"browserify": true,
"devel": true,
// Var names must be camelCase or UPPER_CASE
"camelcase": true,
// Loops and conditionals must have curly brackets
@regiellis
regiellis / Rosetta Stone Totale [Temp]
Created June 30, 2013 18:02
Fixing Rosetta Stone Totale on Mac
- Open a teminal window
- Navigate to "cd /Library/Application Support/RosettaStoneDaemon/Bin"
- "./RosettaStoneDaemon" to to RosettaStoneDaemon
- Leave Terminal Window open
- Start RosettaStone as normal
@regiellis
regiellis / .jshintrc
Created December 30, 2015 06:19
E6 jshintrc
{
asi: false,
bitwise: false,
boss: true,
browser: false,
camelcase: false,
couch: false,
curly: false,
debug: true,
devel: false,
@regiellis
regiellis / ansible.cfg
Last active August 2, 2016 14:09
Ansible Config 2.2
# config file for ansible -- http://ansible.com/
# ==============================================
# nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory or /etc/ansible/ansible.cfg, whichever it
# finds first
[defaults]
<!-- Press Windows Button + R, type “regedit”, and then click OK.
Navigate to the following registry subkey:
HKEY_LOCAL_MACHINE > SOFTWARE > Microsoft > Windows > CurrentVersion > SideBySide
Right-click, select NEW > DWORD (32 bit) Value
Type PreferExternalManifest, and then press ENTER.
Right-click PreferExternalManifest, and then click Modify.
Enter Value Data 1 and select Decimal.
Click OK. Exit Registry Editor.
For reference, here is a link to a Microsoft support file on the topic: http://support.microsoft.com/kb/912949/en-usi -->
@regiellis
regiellis / gist:f57f3766f25fcea0e03e46fbd009d2ab
Created October 23, 2018 19:49
PM2 fix for command not found
export PATH=~/.npm-global/bin:$PATH
# System-wide .bashrc file for interactive bash(1) shells.
# To enable the settings / commands in this file for login shells as well,
# this file has to be sourced in /etc/profile.
# If not running interactively, don't do anything
#[ -z "$PS1" ] && return