This file contains hidden or 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 | |
echo strtotime("0000-00-00 00:00:00"),PHP_EOL; | |
/** | |
* Output in console | |
$ php console.php | |
-62169962400 | |
*/ |
This file contains hidden or 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 | |
umask(octdec('0002')); | |
mkdir('testing123', octdec('2770')); |
This file contains hidden or 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
3 RFT | |
4 depth jumps (Ascending: 18 -> 20 -> 24 -> 30 -> 36) | |
[Step or jump onto 18", bound down then back up to 20", then 24", etc.] | |
4 Front Squat (225/135) [leave bar in rack] | |
4 strict chin-ups | |
8 GHD sit-ups | |
8 ring dips | |
8 burpees | |
4 Front Squat (225/135) |
This file contains hidden or 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 Common\Model; | |
use Doctrine\Common\Collections\ArrayCollection; | |
/** | |
* @Entity(repositoryClass="Common\Model\Repository\DepartmentRepository") | |
* @Table(name="department") | |
*/ |
This file contains hidden or 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
SELECT | |
q.question_id, q.text | |
FROM survey_question q | |
JOIN survey_question_folder f1 USING(question_folder_id) | |
JOIN survey_question_folder ancestors ON f1.path LIKE CONCAT(ancestors.path, '%') | |
WHERE | |
q.text LIKE '%new%' | |
OR f1.name LIKE '%new%' | |
OR ancestors.name LIKE '%new%' | |
GROUP BY q.question_id ORDER BY NULL; |
This file contains hidden or 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
var tail_start = function(active, search) { | |
var tail_opts = ["-f", "-n", 250, logs[active]]; | |
if (search) { | |
processes[sessionId].active_log = active; | |
processes[sessionId].grep = spawn("grep", [search]); | |
processes[sessionId].grep.stdout.setEncoding('utf8'); | |
processes[sessionId].grep.stdout.on("data", function(data) { | |
console.log("grep STDOUT received data"); |
This file contains hidden or 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 | |
$conn = new PDO('mysql:dbname=test;host=localhost', 'hobodave', 'hobodave'); | |
$sql = <<<SQL | |
INSERT INTO rocketships (nose_id, num_fueltanks, name, manager_id, fuselage_id, fuel_type, created_at) | |
VALUES | |
SQL; | |
$vals = ''; |
This file contains hidden or 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
{ | |
"chef_server": { | |
"server_url": "http://localhost:4000", | |
"init_style": "init", | |
"webui_enabled": true | |
}, | |
"run_list": [ "recipe[chef-server::rubygems-install]" ] | |
} |
This file contains hidden or 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
[root@revproxy1 ~]# cat /etc/redhat-release | |
CentOS Linux release 6.0 (Final) | |
[root@revproxy1 ~]# yum info ruby | |
Loaded plugins: fastestmirror, presto | |
Loading mirror speeds from cached hostfile | |
* base: mirror.team-cymru.org | |
* epel: mirrors.servercentral.net | |
* extras: mirror.team-cymru.org | |
* updates: mirror.ubiquityservers.com |