Skip to content

Instantly share code, notes, and snippets.

View hobodave's full-sized avatar
🎯
Focusing

David Abdemoulaie hobodave

🎯
Focusing
View GitHub Profile
<?php
echo strtotime("0000-00-00 00:00:00"),PHP_EOL;
/**
* Output in console
$ php console.php
-62169962400
*/
<?php
umask(octdec('0002'));
mkdir('testing123', octdec('2770'));
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)
<?php
namespace Common\Model;
use Doctrine\Common\Collections\ArrayCollection;
/**
* @Entity(repositoryClass="Common\Model\Repository\DepartmentRepository")
* @Table(name="department")
*/
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;
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");
(function($) {
$(function() {
$(document).on('click', 'a.dialog_trigger', function(event) {
$($(this).attr('href')).modal({persist: true, opacity: 80});
return false;
});
$(document).on('click', 'a.dialog_close', function(event) {
$.modal.close();
<?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 = '';
{
"chef_server": {
"server_url": "http://localhost:4000",
"init_style": "init",
"webui_enabled": true
},
"run_list": [ "recipe[chef-server::rubygems-install]" ]
}
[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