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/sh | |
if command -v gem; then | |
if gem --version | grep -q '^3'; then | |
gem update | |
fi | |
fi | |
if command -v brew; then | |
brew update |
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/sh | |
MAX_RAM_IN_MB=768 | |
DEBUG=0 | |
if [ -f '/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java' ]; then | |
JAVA='/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java' | |
else | |
JAVA=java |
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
def oplogstats(connection): | |
c = connection | |
localdb = c["local"] | |
if "oplog.rs" in localdb.collection_names(): | |
collstats = dict() | |
collstats.clear() | |
collstats = localdb.command("collstats", "oplog.rs") | |
return collstats |
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
Vagrant.configure(2) do |config| | |
config.vm.define "zfsU01" do |zfsU01| | |
zfsU01.vm.box = "ubuntu/bionic64" | |
zfsU01.ssh.insert_key = true | |
zfsU01.vm.network "private_network", ip:"10.2.3.4" | |
zfsU01.vm.hostname = "zfsU01" | |
zfsU01.vm.provision "shell", | |
inline: "apt-get update && apt-get -y upgrade && apt-get -y install zfsutils-linux --no-install-recommends" | |
zfsU01dataDisk1 = './zfsU01dataDisk1.vdi' |
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
$ cat /etc/systemd/system/jenkins.service | |
[Unit] | |
Description=Jenkins - open source automation server | |
Before=multi-user.target | |
After=network-online.target | |
[Service] | |
ExecStart=/etc/init.d/jenkins start | |
ExecStop=/etc/init.d/jenkins stop | |
CapabilityBoundingSet=~CAP_SYS_PTRACE |
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
### Keybase proof | |
I hereby claim: | |
* I am konstruktoid on github. | |
* I am konstruktoid (https://keybase.io/konstruktoid) on keybase. | |
* I have a public key ASBAeDNxQphVebofQdKNcdWQdQbrkCoOLPeghZN3vP1m6Ao | |
To claim this, I am signing this object: |
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 | |
set -eu -o pipefail | |
USER="" | |
PAGE=1 | |
REPOTMP="$(mktemp)" | |
PUSH=0 | |
curl -s "https://api.github.com/users/${USER}/repos?page=${PAGE}&per_page=100" |\ | |
grep 'ssh_url' | cut -d \" -f 4 > "${REPOTMP}" |
NewerOlder