Skip to content

Instantly share code, notes, and snippets.

@Kaweechelchen
Kaweechelchen / checkSSLValidity.php
Created January 27, 2016 06:32
script to get the expiry date of the SSL cert of a specific domain
<?php
date_default_timezone_set('Europe/Luxembourg');
$expiryDate = getCertExpiryDate('mona.lu');
if ($expiryDate) {
echo date('r', $expiryDate );
}
@Kaweechelchen
Kaweechelchen / ping.php
Last active January 27, 2016 19:54
script to get the ping time to a domain host
<?php
$domain = 'http://mona.lu';
echo getPingTime($domain);
function getPingTime($domain) {
$domain = parse_url($domain, PHP_URL_HOST);
exec("ping -c 1 " . $domain . " | head -n 2 | tail -n 1 | awk '{print $7}'", $ping_time);
return $ping_time[0];
@Kaweechelchen
Kaweechelchen / delays.md
Last active May 18, 2016 12:03
Train delays
@Kaweechelchen
Kaweechelchen / locale.lb
Last active October 3, 2016 13:12
OpenOV LB translations
var Locale = {}
Locale.dateFormat = 'dd-mm-yy';
Locale.timeFormat = 'hh:mm';
Locale.dateAriaLabel = 'Datum, benotzt "CTRL" an d\'Feil-tasten fir ze navigéieren, "Enter" fir ze validéieren';
Locale.loading = "Lued...";
Locale.edit = "Trajet änneren";
Locale.plan = "Trajet plangen";
Locale.geocoderInput = "Gare, Bushaltestell oder Adress";
Locale.startpointEmpty = "Kee Start ausgewielt";
@Kaweechelchen
Kaweechelchen / README.md
Created December 27, 2016 08:28 — forked from edds/README.md
Socket.IO example to stream tweets on a topic

A simple example to create a websocket server and stream tweets about a pre-defined subject to the page.

Installation

$ npm install socket.io, twitter

Run

$ node ./app.js
@Kaweechelchen
Kaweechelchen / tmux-cheatsheet.markdown
Created December 27, 2016 08:29 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
sudo su
mkdir /mnt/timecapsule
echo "//timeCapsuleIp/Data /mnt/toshiba cifs user= timecapsuleUsername,pass= timecapsuleUserPassword,rw,uid=1000,iocharset=utf8,sec=ntlm 0 0" >> /etc/fstab
<IfModule mod_proxy.c>
ProxyPass /.well-known/acme-challenge !
</IfModule>
Alias /.well-known/acme-challenge /var/www/letsencrypt/.well-known/acme-challenge
<Directory "/var/www/letsencrypt/.well-known/acme-challenge">
Options None
AllowOverride None
Require all granted
AddDefaultCharset off
@Kaweechelchen
Kaweechelchen / info.md
Last active April 9, 2017 15:18
Kinepolis
{
"basePath": "\/en\/",
"pathPrefix": "",
"ajaxPageState": {
"theme": "kinepolis_zen",
"theme_token": "A5qAOgj-36U7RiptsLNZtmyyVmPtqEKE7a_J5nFUey4",
"jquery_version": "1.8",
"css": {
"modules\/system\/system.base.css": 1,
"modules\/system\/system.menus.css": 1,
@Kaweechelchen
Kaweechelchen / keybase.md
Last active April 7, 2018 06:42
keybase.md

Keybase proof

I hereby claim:

  • I am kaweechelchen on github.
  • I am kaweechelchen (https://keybase.io/kaweechelchen) on keybase.
  • I have a public key ASBPPyzA0EEMQ47FPYsZwgiGuQ7GfRe908LbHwImIYsi1Qo

To claim this, I am signing this object: