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
This shows my adjustment/extension of the Zabbix Widget for Dashing. Original code comes from: https://gist.github.com/chojayr/7401426 |
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
# Dump environment for debugging purpose | |
file '/environment.sh' do | |
content ENV.reduce("#!/bin/bash\n") { |s, e| s+="export #{e[0]}=$\{#{e[0]}:?#{e[1]}\}\n" } | |
end |
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/ruby | |
############################## | |
# Parameters via environment variables | |
# | |
# COOKBOOK - List of recipes which we should have related jobs for | |
# SERVER - Jenkins server which is used for the job creation | |
# USER - related Jenkins user | |
# PASSWORD - related Jenkins password | |
############################## |
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
FROM ubuntu:12.04 | |
RUN apt-get update | |
RUN [ -e /usr/lib/apt/methods/https ] || apt-get install -y apt-transport-https | |
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 36A1D7869245C8950F966E92D8576A8BA88D21E9 | |
RUN sh -c "echo deb https://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list" | |
RUN apt-get update | |
RUN apt-get install -y lxc-docker | |
RUN service docker stop | |
RUN update-rc.d -f docker remove |
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
cmd://"C:\Windows\System32\cmd.exe" /c cmdkey.exe /generic:{TITLE} /user:{USERNAME} /pass:{PASSWORD} & mstsc.exe /v:{TITLE} & cmdkey.exe /delete:{TITLE} |
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 | |
umask 000 | |
script -a /tmp/telnet.log.$$ | |
/usr/bin/telnet $* | |
exit 0 |
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 | |
### ALL SPOTS marked with XXX have to be changed before this runs | |
token="XXX"; # get that from your user settings | |
name="AOEpeople" # the github login name | |
type="orgs" # or "users" | |
list=`curl -s -H "Authorization: token ${token}" "https://api.github.com/${type}/${name}/repos" | grep '"url"' | grep 'repos' | sed -E 's~.*https(.*)",~https\1~'` |
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
Copyright 2013 - Tolleiv Nietsch <[email protected]> | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, |
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
set number | |
syntax enable | |
set tabstop=4 | |
set ignorecase | |
highlight Comment ctermfg=green | |
set ffs=unix,dos | |
set fileencoding=utf-8 | |
set encoding=utf-8 | |
set termencoding=utf-8 |
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
[user] | |
name = Tolleiv Nietsch | |
email = [email protected] | |
[alias] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
lg = log -p |