I hereby claim:
- I am dimhof on github.
- I am dominicimhof (https://keybase.io/dominicimhof) on keybase.
- I have a public key whose fingerprint is 7E8D F58A D768 D860 D21E CD04 9EE8 C438 919E 411A
To claim this, I am signing this object:
<?php defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Automigrate { | |
private $_ci = null; | |
public function __construct() | |
{ | |
$this->_ci =& get_instance(); | |
$this->_ci->config->load('migration'); |
<?php | |
return array( | |
'redis' => array( | |
'cluster' => true, | |
'default' => array( | |
'scheme' => 'unix', | |
'path' => '/tmp/redis.sock' | |
) | |
); |
; Google Apps MX Records | |
@ 3600 IN MX 10 aspmx.l.google.com. | |
@ 3600 IN MX 20 alt1.aspmx.l.google.com. | |
@ 3600 IN MX 30 alt2.aspmx.l.google.com. | |
@ 3600 IN MX 40 aspmx2.googlemail.com. | |
@ 3600 IN MX 50 aspmx3.googlemail.com. |
#!/usr/bin/python | |
import random | |
chars=list('ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz23456789') | |
code='' | |
for i in range(8): | |
code+=random.choice(chars) | |
print code |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: gitit | |
# Required-Start: $local_fs $remote_fs $network $syslog $time | |
# Required-Stop: $local_fs $remote_fs $network $syslog $time | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start or stop Gitit daemon | |
# Description: Start or stop Gitit daemon |
REMOTE_HOST=backup4.skilia.ch | |
REMOTE_USER=backup | |
REMOTE_PATH=/home/backup/gitlab-backups/ |
I hereby claim:
To claim this, I am signing this object:
PLATFORM=$(uname) | |
KEY=$1 | |
VAL=$2 | |
# Use awk instead of grep, since grep is not able to handle multiline regex | |
if [ "$(awk "/^$KEY=.*$/" .env)" != "" ]; then | |
if [ "$PLATFORM" = "Darwin" ]; then | |
sed -i '' -E "s~$KEY=.*~$KEY=$VAL~g" .env | |
else |
// Bestellungen => https://www.digitec.ch/de/Order | |
var sum=0;$('.order-box').map(function(){sum+=parseFloat(this.children[4].innerText.replace('\'',''))});console.log(sum); | |
// Bestellungsarchiv => https://www.digitec.ch/de/OldDigitecOrder/Search/???????? | |
var sum=0;$('.order-box').map(function(){sum+=parseFloat(this.children[5].innerText.replace('\'',''))});console.log(sum); |
<?php | |
$roomPrefix = 'doems'; | |
header('Content-type: application/json'); | |
$response = array( | |
'response_type' => 'in_channel', | |
'text' => 'https://talky.io/' . uniqid($roomPrefix . '-') | |
); |