- have PuTTY installed
- make sure you have installed PLink as a part of the installation process.
- open an elevated command prompt
- run the following command
plink.exe -L 3307:localhost:3306 [USERNAME]@[YOURSERVER.COM]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Thomas Aylott</string> | |
<key>comment</key> | |
<string>Thomas Aylott ㊷ subtleGradient.com</string> | |
<key>name</key> | |
<string>Brilliance Black (Inverted)</string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys" : [ "alt+1" ], "command" : "focus_group", "args" : { "group" : 0 } }, | |
{ "keys" : [ "alt+2" ], "command" : "focus_group", "args" : { "group" : 1 } }, | |
{ // workspace left | |
"keys" : [ "ctrl+alt+super+left" ], | |
"command" : "run_multiple_commands", | |
"args" : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// with arrays | |
const dupArr = [1, 1, 2, 3, 1]; | |
const uniArr = [...(new Set(dupArr))]; | |
// [1, 2, 3] | |
// with objects on a key. | |
const dupObj = [{ id: 1, value: 'a' }, { id: 2, value: 'b' }, { id: 1, value: 'c' }]; | |
const uniKeys = [...(new Set(dupObj.map(({ id }) => id)))]; | |
// [ '1', '2' ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Convert .itermcolors files to hex colors for html | |
import sys | |
import xml.etree.ElementTree as ET | |
def rgb_to_hex(rgb): | |
return '#%02x%02x%02x' % rgb |
npm list -g --depth=0
A Pen by Paul Langton on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Commands\Database; | |
use Illuminate\Support\ServiceProvider; | |
class BindDatabaseServiceProvider extends ServiceProvider | |
{ | |
public function boot() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// When I create a validation rule, I can set my one replacer which helps replace different special placeholders | |
// For example if validator message is "Problem with :some", then my replacer will handle it | |
Validator::extend('testrule', function($attribute, $value, $parameters, $validator) { | |
$validator->addReplacer('testrule', function($message, $attribute, $rule, $parameters){ | |
return str_replace(":some", "whatever", $message); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
daemon=beanstalkd | |
executable=/usr/local/bin/$daemon | |
port=11300 | |
waldir=/usr/local/var/beanstalkd | |
logfile=/usr/local/var/log/beanstalkd.log | |
interface="127.0.0.1" | |
params="-l $interface -p $port -b $waldir" |
OlderNewer