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
# Heavily depends on: | |
# libqrencode (fukuchi.org/works/qrencode/) | |
# paperkey (jabberwocky.com/software/paperkey/) | |
# zbar (zbar.sourceforge.net) | |
# Producing the QR codes: | |
# Split over 4 codes to ensure the data per image is not too large. | |
gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp | |
split temp -n 4 IMG | |
for f in IMG*; do cat $f | qrencode -o $f.png; done |
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
{"re-conf.resources.download.run-checkum" [{:function "re-conf.resources.download.run-checkum" | |
:profile [0 129890054] | |
:timestamp "2018-12-14T12:16:48.447Z"} | |
{:function "re-conf.resources.download.run-checkum" | |
:profile [0 60930117] | |
:timestamp "2018-12-14T12:16:51.752Z"}] | |
"re-conf.resources.download.run-download" [{:function "re-conf.resources.download.run-download" | |
:profile [0 534854230] | |
:timestamp "2018-12-14T12:16:44.218Z"} | |
{:function "re-conf.resources.download.run-download" |
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
#!/usr/bin/env bash | |
set -eux | |
if ! [ $(getent group puppet) ] | |
then | |
groupadd puppet | |
fi | |
if [ -f /etc/debian_version ]; |
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
d-i debian-installer/locale string en_US.UTF-8 | |
d-i debian-installer/splash boolean false | |
d-i console-setup/ask_detect boolean false | |
d-i console-setup/layoutcode string us | |
d-i console-setup/variantcode string | |
# network | |
d-i netcfg/get_nameservers string | |
d-i netcfg/get_ipaddress string | |
d-i netcfg/get_netmask string 255.255.255.0 |
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
(ns blog.server | |
(:import org.joda.time.DateTime) | |
(:gen-class) | |
(:require [ring.util.response :as ring-res] [ring.middleware.reload :as reload] [ring.middleware.stacktrace :as strace] | |
[ring.adapter.jetty :as ring-jet] [ring.middleware.file :as rfile] [ring.middleware.file-info :as rfile-info] | |
[compojure.route :as route] [blog.view.layout :as layout] | |
) | |
(:use | |
(compojure core) | |
(blog.persistency couchdb) |
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
VERSION="0.12.6" | |
wget -O - https://gist.githubusercontent.com/narkisr/6097786/raw/puppet-preqs.sh | bash | |
cd /tmp && wget "https://dl.bintray.com/narkisr/boxes/celestial-sandbox-$VERSION.tar.gz" | |
tar -xvzf "celestial-sandbox-$VERSION.tar.gz" && cd "celestial-sandbox-$VERSION" | |
chmod +x run.sh && ./run.sh | |
cd /tmp && rm -rf "celestial-sandbox-$VERSION" | |
echo 'Celestial setup is done, head on to http://celestial-ops.com/docs.html#configuration in order to start configuration' |
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
angular.module( 'celestial.system', [ | |
'ui.state', 'ui.bootstrap', 'ngResource' | |
]) | |
.directive('proxmox', function() { | |
return { | |
restrict: 'ECMA', | |
templateUrl: 'systems/proxmox.tpl.html' | |
}; | |
}) | |
.directive('vcenter', function() { |
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
wget -O - https://gist.github.com/narkisr/6097786/raw/d744cc3a930b604d151c3d2d53fad4acef434d90/puppet-preqs.sh | bash | |
cd /tmp && wget http://dl.bintray.com/narkisr/boxes/celestial-sandbox-0.1.2.tar.gz | |
tar -xvzf celestial-sandbox-0.1.2.tar.gz && cd celestial-sandbox-0.1.2 | |
chmod +x install.sh && ./install.sh | |
cd /tmp && rm -rf celestial-sandbox-0.1.2 | |
echo 'Celestial setup is done, head on to http://bit.ly/celestial-config in order to finish setup' | |
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
# printer setup | |
sudo aptitude install hplip simple-scan | |
# Batch scan | |
sudo scanimage -b --batch-count=5 --batch-start=1 --source ADF --mode Gray | |
# converting to PDF | |
/usr/bin/gm convert *.pnm result.pdf |
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
# Setting up sun-jdk | |
class backend::jdk { | |
if($operatingsystem =~ /Ubuntu|Debian/){ | |
include apt | |
apt::ppa { 'ppa:webupd8team/java': } | |
package{'oracle-java6-installer': | |
ensure => present, | |
require => [Apt::Ppa['ppa:webupd8team/java'],Exec['skipping license approval']] |
NewerOlder