Skip to content

Instantly share code, notes, and snippets.

Avatar

Gregory Gaskill chronon

View GitHub Profile
View Keys.Pub proof
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 Jan 7, 2021
CakePHP 3 Entities in CakePHP 2 Projects
View cakephp2-entities.md

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 Sep 3, 2018
Dell XPS 13 9370 Dual Boot Win 10 and Debian Linux
View xps-13.md

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 Oct 3, 2017
Keybase Proof
View keybase.txt
### 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 Mar 1, 2017
Repeating vagrant hang-up
View vagrant.log
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
View Vagrantfile
# -*- 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 Apr 20, 2017
Vagrant VMware port collisions
View fixvagrant.sh
#!/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 Feb 18, 2017
List of docker-php-ext-install extension names
View ext.txt
Possible values for ext-name:
bcmath
bz2
calendar
ctype
curl
dba
dom
enchant
@chronon
chronon / dropdown-menu.scss
Created May 22, 2013
Simple, not very styled, CSS only cross browser dropdown menu sass/scss mixin.
View dropdown-menu.scss
// 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 Jan 24, 2013
A CakePHP 2.x console command that prints random Security.salt and Security.cipherSeed.
View SecurityGenShell.php
<?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.