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
1) Create a smart playlist | |
2) Set the settings on the smart playlist to be "date added greater than or equal to" and choose a ridiculously early date, like 1/1/1995 | |
3) Click the cloud download button on the playlist | |
4) Wait |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Harbormaster</title> | |
<link href="/css/bootstrap.css" rel="stylesheet"> | |
<link href="/css/bootstrap-responsive.css" rel="stylesheet"> | |
</head> | |
<body> |
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
rds-modify-db-parameter-group orca --parameters="name=query_cache_size, value=1073741824, method=immediate" |
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
import sublime, sublime_plugin | |
from subprocess import Popen, PIPE, STDOUT | |
class RunPhpCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
content = self.view.substr(sublime.Region(0, self.view.size())) | |
php = Popen(['/usr/local/bin/php'], stdout=PIPE, stdin=PIPE) | |
php.stdin.write(content) | |
output = php.communicate()[0] | |
newtab = self.view.window().new_file() |
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 | |
chdir("/home/offers/www/offers-qa/coral"); | |
`git checkout next`; | |
`git reset --hard HEAD`; | |
`git pull`; | |
chdir("/home/offers/www/offers-qa/orca"); | |
`git checkout next`; | |
`git reset --hard HEAD`; | |
`git pull`; | |
$date = `git log --max-count=1 | grep Date`; |
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
master: | |
image: private.registry:master | |
ports: | |
- 8080 | |
feature123: | |
image: private.registry:feature123 | |
ports: | |
- 8081 |
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
'./configure' '--prefix=/usr/local' '--with-config-file-path=/usr/local/etc' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-pdo-mysql=/usr/local/mysql/bin/mysql_config' '--enable-mbstring' '--with-zlib' '--with-openssl' '--with-curl' '--with-xsl' '--enable-fpm' '--enable-soap' |
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 | |
passthru('clear'); | |
$args = array(1,2,3,4,5); | |
class Foo | |
{ | |
public function bar($args) | |
{ | |
$args[] = 6; | |
echo '$args inside Foo->bar(): ' . "\n" . print_r($args, 1); | |
} |
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 | |
class Deduplicator | |
{ | |
protected $items = []; | |
public function add($item) | |
{ | |
// name field will be in $item->name | |
$this->items[] = $item; | |
} |
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
From this: | |
class FtpTransport | |
{ | |
public function __construct($host, $username, $password) | |
{ | |
} | |
} | |
Allow me to generate this: |