Skip to content

Instantly share code, notes, and snippets.

View chronon's full-sized avatar

Gregory Gaskill chronon

  • @loadsys & chronon
  • Pisgah Forest, NC USA
View GitHub Profile
BEGIN MESSAGE.
Kw9InASbQAgfvJW RYZmHZE5IWx8Bpc WMN55AkW7lusXLw O06OdH0ITyA1jod
XTAlsTWP8lXS8qU eIakqRrdQ7kTCKq 6Xr2MZHgg4eesya z5HZnriFvl8C5x8
HkgljhZprD5NsMt ADRempzChNRRo5n yITSnwL0kwSUcGF JR9DQnLCqhCwCv7
At1J8qo77NSzw1k wcedJneIMGyyjTc sgYz42IP.
END MESSAGE.
@chronon
chronon / cakephp2-entities.md
Last active January 7, 2021 09:38
CakePHP 3 Entities in CakePHP 2 Projects

Run composer require cakephp/orm:^4.0

Create Model/Entity/ArticleEntity.php:

<?php
use Cake\ORM\Entity;

/**
 * Class: Article
@chronon
chronon / xps-13.md
Created September 3, 2018 22:19
Dell XPS 13 9370 Dual Boot Win 10 and Debian Linux

Dell XPS 13 9370 Dual Boot Win 10 and Debian Linux

Windows Preparation and Setup

  1. Download Win 10 installation ISO and create a bootable USB drive.
  2. Boot, F12 for system menu, select BIOS Setup.
    • System Configuration -> SATA Operation and change from "RAID On" to "AHCI".
    • Secure Boot -> Secure Boot Enable and change to "Disabled"
  3. Reboot, F12 for system menu, select the external USB drive and install Win 10.
@chronon
chronon / keybase.txt
Last active October 3, 2017 00:31
Keybase Proof
### Keybase proof
I hereby claim:
* I am chronon on github.
* I am mistagrrr (https://keybase.io/mistagrrr) on keybase.
* I have a public key ASAKyjQwTM8QDlkoCwLtk51qGSIGqYafm4Q_xgBDzUn3hgo
To claim this, I am signing this object:
@chronon
chronon / vagrant.log
Created March 1, 2017 22:16
Repeating vagrant hang-up
INFO vmware_driver: vmrun getGuestIPAddress failed: VMRunError
INFO vmware_driver: Reading VMX data...
DEBUG vmware_driver: - .encoding = UTF-8
DEBUG vmware_driver: - bios.bootorder = hdd,CDROM
DEBUG vmware_driver: - checkpoint.vmstate =
DEBUG vmware_driver: - cleanshutdown = FALSE
DEBUG vmware_driver: - config.version = 8
DEBUG vmware_driver: - cpuid.corespersocket = 1
DEBUG vmware_driver: - displayname = seven: default
DEBUG vmware_driver: - ehci.pcislotnumber = -1
# -*- mode: ruby -*-
# vi: set ft=ruby :
box = 'bento/ubuntu-16.04'
ip = '192.168.33.10'
hostname = 'seven-vm'
domain = 'dev'
Vagrant.configure(2) do |config|
config.vm.box = box
@chronon
chronon / fixvagrant.sh
Last active April 20, 2017 20:12
Vagrant VMware port collisions
#!/bin/sh
# remove entries under `[incomingtcp]` in `nat.conf`
sudo vim /Library/Preferences/VMware\ Fusion/vmnet8/nat.conf
# remove all entries in the file
sudo vim /etc/exports
# restart vmware networking
sudo /Applications/VMware\ Fusion.app/Contents/Library/vmnet-cli --stop
@chronon
chronon / ext.txt
Created February 18, 2017 15:38
List of docker-php-ext-install extension names
Possible values for ext-name:
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
@chronon
chronon / dropdown-menu.scss
Created May 22, 2013 18:25
Simple, not very styled, CSS only cross browser dropdown menu sass/scss mixin.
// Sort of based on http://matthewjamestaylor.com/blog/centered-dropdown-menus
// but with centering elements removed.
@mixin navmenu($z-index, $width) {
clear: both;
float: left;
margin: 0;
padding: 0;
width: 100%;
@chronon
chronon / SecurityGenShell.php
Created January 24, 2013 19:09
A CakePHP 2.x console command that prints random Security.salt and Security.cipherSeed.
<?php
/* SecurityGenShell - prints randmom Security.salt and Security.cipherSeed for
* Config/core.php
*
* See lib/Cake/Console/Command/Task/ProjectTask.php securitySalt() and
* securityCipherSeed().
*
* Installation: put this file, named `SecurityGenShell.php`, in `APP/Console/Command`.
* Usage: run `Console/cake security_gen` - copy and pasted the values to
* APP/Config/core.php.