This file contains 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
root@bloonix:~$ for i in bloonix-{agent,server,srvchk,webgui}; do printf '%s is %s\n' "$i" "$(systemctl is-enabled $i)"; done | |
bloonix-agent is disabled | |
bloonix-server is disabled | |
bloonix-srvchk is disabled | |
bloonix-webgui is disabled | |
root@bloonix:~$ for i in bloonix-{agent,server,srvchk,webgui}; do systemctl enable "$i"; done | |
ln -s '/usr/lib/systemd/system/bloonix-agent.service' '/etc/systemd/system/multi-user.target.wants/bloonix-agent.service' | |
ln -s '/usr/lib/systemd/system/bloonix-server.service' '/etc/systemd/system/multi-user.target.wants/bloonix-server.service' | |
ln -s '/usr/lib/systemd/system/bloonix-srvchk.service' '/etc/systemd/system/multi-user.target.wants/bloonix-srvchk.service' | |
ln -s '/usr/lib/systemd/system/bloonix-webgui.service' '/etc/systemd/system/multi-user.target.wants/bloonix-webgui.service' |
This file contains 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
/foo@example\.com/ [email protected] | |
/./ [email protected] |
This file contains 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 http = require('http'); | |
var url = require('url'); | |
var spawn = require('child_process').spawn, child; | |
var fs = require('fs'); | |
var util = require('util'); | |
var gm = require('gm'); | |
var ssh2 = require('ssh2'); | |
var debug = 1; // increase to increase verbosity | |
require('systemd'); |
This file contains 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 http = require('http'); | |
var url = require('url'); | |
var spawn = require('child_process').spawn, child; | |
var fs = require('fs'); | |
var util = require('util'); | |
var gm = require('gm'); | |
var ssh2 = require('ssh2'); | |
require('systemd'); | |
// increase to increase verbosity | |
var debug = 1; |
This file contains 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 http = require('http'); | |
var url = require('url'); | |
var spawn = require('child_process').spawn, child; | |
var fs = require('fs'); | |
var util = require('util'); | |
var gm = require('gm'); | |
var ssh2 = require('ssh2'); | |
var debug = 1; // increase to increase verbosity | |
require('systemd'); |
This file contains 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 | |
#PATH=/usr/local/bin:$PATH | |
if (( $EUID != 0 )); then | |
printf 'you need to run this script as root\n' | |
exit 1 | |
fi | |
if ! grep -q 900913 /usr/share/proj/epsg; then | |
printf '<900913> +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs <>\n' >> /usr/share/proj/epsg | |
fi |
This file contains 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 | |
#set -x | |
:<<-'literal' | |
This script updates an imposm imported database. | |
Your database must exist or this script will fail! | |
If called with `cleanup' it will just remove the old_planet_osm tables, this is handy to use with a cron job | |
literal | |
## constants | |
progname="${0##*/}" | |
version="5.0-imposm" |
This file contains 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 | |
:<<'_literal_' | |
This script checks for changes on github and triggers an rpm rebuild | |
_literal_ | |
readonly progname=${0##*/} | |
readonly version=0.1 | |
:<<< '+++++++ config options ++++++++++++' | |
readonly project="omniscale" |
This file contains 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
%global commit 9198d6fa2216125b656091dd998e0162deec2595 | |
%global shortcommit %(c=%{commit}; echo ${c:0:7}) | |
%define upname HyperLevelDB | |
Name: hyperleveldb | |
Version: 1.0.0 | |
Release: 3%{?dist} | |
Summary: A fork of LevelDB intended to meet the needs of HyperDex while remaining compatible with LevelDB. | |
Group: Development/Libraries |
This file contains 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 | |
# colors | |
green=$(echo -e "\e[0;32m") | |
no_col=$(echo -e "\e[0;0m") | |
foobar() { | |
cat <<-end_of_foobar | |
${green}foo ${no_col} bar | |
${green}baz ${no_col} qux | |
end_of_foobar |