Skip to content

Instantly share code, notes, and snippets.

@newpain01
newpain01 / JS cookie
Created December 22, 2020 16:39
JS Cookie Pantheon
@newpain01
newpain01 / eloquent.md
Created April 3, 2017 10:44 — forked from msurguy/eloquent.md
Laravel 4 Eloquent Cheat Sheet.

Conventions:

Defining Eloquent model (will assume that DB table named is set as plural of class name and primary key named "id"):

class Shop extends Eloquent {}

Using custom table name

protected $table = 'my_shops';

@newpain01
newpain01 / sftp-config.json
Last active March 14, 2017 09:16
Sublime SFTP
{
// The tab key will cycle through the settings when first created
// Visit http://wbond.net/sublime_packages/sftp/settings for help
// sftp, ftp or ftps
"type": "sftp",
"save_before_upload": true,
"upload_on_save": true,
"sync_down_on_open": true,
@newpain01
newpain01 / gist:a7c55244dff13c2b4f2e998ec62ccf31
Created January 16, 2017 02:58 — forked from learncodeacademy/gist:5f84705f2229f14d758d
Getting Started with Vagrant, SSH & Linux Server Administration
@newpain01
newpain01 / OpenWithSublimeText.reg
Last active November 15, 2016 02:32
Open folders and files with Sublime Text 3 from windows explorer context menu (tested in Windows 7)
Windows Registry Editor Version 5.00
; For folders.
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="&Open folder with Sublime Text"
"Icon"="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]
@="\"C:\\Program Files\\Sublime Text 3\\sublime_text.exe\" \"%1\""