Skip to content

Instantly share code, notes, and snippets.

@y8r
y8r / gist:fe3479e53762f0073958bd3072cbdc0a
Created March 6, 2017 17:23
Bypass corporate ssl issues
npm config set strict-ssl false
yarn config set strict-ssl false
sudo find / -nouser -exec chown -R $USER {} +
@y8r
y8r / Calculator.php
Created May 13, 2015 18:02
Calculator Class
<?php
/**
* Calculator Class
* @author Jeff Yates <hello+gist@jeffyates.com>
*/
class Calculator
{
public function __call($method, $args)
{
$methods = array(
@y8r
y8r / Update preferences on Mac OS X Mavericks
Last active August 29, 2015 14:06
Update preferences on Mac OS X Mavericks
1. Edit ~/Library/Preferences/<preference.plist>
2. Open Terminal
3. Execute the following commands to clear preference cache from defaults
defaults read ~/Library/Preferences/<preference.plist>
defaults read <preference.plist>
4. Launch application
@y8r
y8r / svn delete _notes folders
Last active August 29, 2015 14:04
svn delete _notes folders
svn del `find . -type d -name _notes`
@y8r
y8r / PHP - Pretty Print Arrays
Last active December 20, 2015 19:38
Print arrays wrapped in pre tags to format the output to the browser
<?php
printf("<pre>%s</pre>", print_r($array, 1));