Skip to content

Instantly share code, notes, and snippets.

root@unow-backups:~# /usr/sbin/smartctl -x /dev/sdc
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.19.0-12-amd64] (local build)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Family: Crucial/Micron MX1/2/300, M5/600, 1100 Client SSDs
Device Model: Micron_1100_MTFDDAK256TBN
Serial Number: 17041581E3ED
LU WWN Device Id: 5 00a075 11581e3ed
Firmware Version: M0MU020
unow@unow-prod1:/home/logs/apps/api$ zgrep "Download recording" **/**/**/cron.sync-virtual-classroom-replay* | cut -d '[' -f 3 | cut -d ']' -f 1 | cut -d ' ' -f 1 | sort | uniq -c
1 2021-05-19
1 2021-05-20
1 2021-05-21
5 2021-05-25
20 2021-05-27
3 2021-05-28
8 2021-06-01
3 2021-06-04
1 2021-06-07
@agallou
agallou / Dockerfile
Last active July 17, 2017 09:25
Test PHPOffice
FROM php:7.1.2
RUN apt-get update && apt-get install -y git
RUN apt-get update && apt-get install -y zlib1g-dev
RUN docker-php-ext-install zip
RUN apt-get update && apt-get install -y wget
<?php
$start = <<<EOF
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Decitre//decitre.Calendar.Export 1.0//EN
EOF;
$format = <<<EOF
@agallou
agallou / keybase.md
Created June 23, 2016 13:04
keybase.md

Keybase proof

I hereby claim:

  • I am agallou on github.
  • I am agallou (https://keybase.io/agallou) on keybase.
  • I have a public key whose fingerprint is C490 0213 8217 C2D1 1354 37DB 75B8 2B86 781F E88A

To claim this, I am signing this object:

5.5 :
php -r "var_dump(json_decode('[\"test\"]' . 'invaliddata'));"
array(1) {
[0]=>
string(4) "test"
}
php -r "var_dump(json_decode('invaliddata' . '[\"test\"]'));"
@agallou
agallou / .atoum.php-exemple
Created August 15, 2012 12:09
atoum config
<?php
$runner
->addTestsFromDirectory(__DIR__ . '/tests/unit')
;
@agallou
agallou / sfWebDebugdbCategory.js
Created July 6, 2012 09:55 — forked from ratibus/sfWebDebugdbCategory.js
Javascript to group queries in categories within sfDebugBar
var sfWebDebugdbCategory = function () {
return {
init: function (categoriesPatterns) {
if (!$("#sfWebDebugdbDetails")) {
return ;
}
var categoryInfos = {};
var sqlInfosRegexp = /time: (.*) sec/;
git reflog | grep checkout | sed "s/.*from \(.*\)to.*/\1/" | sort -u
@agallou
agallou / composer.json
Created June 27, 2012 19:57
Exemple utilisation sfAtoumPlugin et composer
{
"require" : {
"symfony/symfony1" : "1.4.*",
"atoum/sfAtoumPlugin" : "*"
},
"repositories": [
{
"type" : "package",
"package": {
"name" : "symfony/symfony1",