Skip to content

Instantly share code, notes, and snippets.

View MrSam's full-sized avatar

Sam Hermans MrSam

View GitHub Profile
<?php
for ($i =1; $i < 12; $i++ ) {
echo "/remind #channel to BLABLABLA on " . getFriday($i, 2019) . " 16:30 \n";
}
function getFriday($m,$y) {
$dateString = "$y-$m-01";
$newdate = date("Y-m-t", strtotime($dateString));
#!/usr/bin/env bash
# Use single quotes instead of double quotes to make it work with special-character passwords
PASSWORD='GithubGist'
PROJECTFOLDER='platform'
# create project folder
sudo mkdir "/var/www/html/${PROJECTFOLDER}"
# update / upgrade
Snickers:~$ curl --insecure -v https://www.google.com 2>&1 | awk 'BEGIN { cert=0 } /^\* Server certificate:/ { cert=1 } /^\*/ { if (cert) print }'
* Server certificate:
* subject: C=US; ST=California; L=Mountain View; O=Google Inc; CN=www.google.com
* start date: Sep 14 08:20:40 2016 GMT
* expire date: Dec 7 08:19:00 2016 GMT
* issuer: C=US; O=Google Inc; CN=Google Internet Authority G2
* SSL certificate verify ok.
* Connection #0 to host www.google.com left intact
Snickers:~$

Keybase proof

I hereby claim:

  • I am MrSam on github.
  • I am sam_hermans (https://keybase.io/sam_hermans) on keybase.
  • I have a public key whose fingerprint is C2EA 9E5E 85E2 D28B F381 3B92 08B5 01F5 6584 9083

To claim this, I am signing this object: