This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# This will scp the web-build artifact + unzip it to a releasefolder. | |
# And symlink the releasefolder into the document root specified as target folder. | |
# It uses the codemagics build number to ensure a fresh folder is used for every deploy. | |
# Old releases will not be purged by this script. | |
# Example usage in the post-publish script | |
# $CM_BUILD_DIR/codemagic-publish-web.sh -b $BUILD_NUMBER -r releasefolder/releases -t public_html/current/public -h example@host -p web-web.zip | |
# Remember to add your ssh private key as an environment variable which ends with SSH_KEY. All variables with SSH_KEY suffix will be added to ssh agent automatically by codemagic. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "cff4967.a06be68", | |
"type": "http in", | |
"z": "fc02b674.bb5cb8", | |
"name": "Långbrodalsskolan Skolmat", | |
"url": "/langbrodalsskolan-skolmat", | |
"method": "get", | |
"upload": false, | |
"swaggerDoc": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///$tab Redmine | |
SET ThousandSep=' '; | |
SET DecimalSep=','; | |
SET MoneyThousandSep='.'; | |
SET MoneyDecimalSep=','; | |
SET MoneyFormat='#.##0,00 kr;-#.##0,00 kr'; | |
SET TimeFormat='hh:mm:ss'; | |
SET DateFormat='YYYY-MM-DD'; | |
SET TimestampFormat='YYYY-MM-DD hh:mm:ss[.fff]'; | |
SET MonthNames='jan;feb;mar;apr;maj;jun;jul;aug;sep;okt;nov;dec'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$i++; | |
/* Authentication type */ | |
$cfg['Servers'][$i]['auth_type'] = 'cookie'; | |
$cfg['Servers'][$i]['user'] = ''; | |
$cfg['Servers'][$i]['password'] = ''; | |
/* Server parameters */ | |
$cfg['Servers'][$i]['host'] = '127.0.0.1'; | |
$cfg['Servers'][$i]['port'] = '3307'; | |
$cfg['Servers'][$i]['connect_type'] = 'tcp'; | |
$cfg['Servers'][$i]['compress'] = false; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "todo.label TODO" | |
echo "todowork.label TODO WORK" | |
echo -n "todo.value " | |
grep -s -l -H "private-domain.se" /webmail/8/4/84deda69dc38c4a39443e9b7a8230018/Maildir/cur/* | grep '[,+]S[a-f]*[h-z]*g[a-f]*[h-z]*$' | wc -l | |
echo -n "todowork.value " | |
grep -s -l -H "work-domain.se" /webmail/8/4/84deda69dc38c4a39443e9b7a8230018/Maildir/cur/* | grep '[,+]S[a-f]*[h-z]*g[a-f]*[h-z]*$' | wc -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/php -q | |
<?php | |
$url = 'url-for-the-atom-list-of-tickets-in-redmine'; | |
$fc = file_get_contents($url); | |
$s = simplexml_load_string($fc); | |
$by_status = array(); | |
foreach( $s->entry as $entry ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dgram = require("dgram"); | |
var fs = require('fs'); | |
var server = dgram.createSocket("udp4"); | |
var messageToSend = new Buffer("A message to send"); | |
server.on("message", function (msg, rinfo) { | |
var stream = fs.createWriteStream("udp-stream.log", {'flags': 'a'}); | |
stream.once('open', function(fd) { | |
stream.write("From "+rinfo.address+":"+rinfo.port+"\n"+msg+"\n"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# StatsD | |
# | |
# chkconfig: 3 50 50 | |
# description: StatsD init.d | |
. /lib/lsb/init-functions | |
prog=statsd | |
STATSDDIR=/opt/statsd |