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 -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}" |
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
--- | |
operatingsystem: windows | |
applications: | |
- antivirus (Microsoft Defender, ...) | |
- bleachbit | |
- firefox | |
plugins: | |
- https anywhere | |
- ublock | |
- privacy badger |
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
### 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 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 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 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 | |
PROJNAME="$(basename "$(git rev-parse --show-toplevel)")" | |
CONTRIBUTORS="$(git shortlog -sne | awk '{$1=""; print $0}' | sed 's/^ /* /g' | sort -i -f -k2)" | |
DATE="$(LANG=C date --utc)" | |
{ | |
echo "The following people, listed in alphabetical order, have contributed to ${PROJNAME}:" | |
echo | |
echo "${CONTRIBUTORS}" |
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
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 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 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 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 | |
RELEASE_DATE= | |
for p in $(curl -sSL 'https://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/HEADER.html' | grep -E '.*all\.deb|.*generic.*amd64\.deb' | sed -e 's/.*ref="//g' -e 's/">.*//g'| sort | uniq); do | |
wget -nc "https://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/$p" | |
RELEASE_DATE="$(echo "$p" | awk -F '.' '{print $6}' | sed 's/_.*//g')" | |
done | |
if ! dpkg -l | grep -qE "linux.*$RELEASE_DATE.*"; then | |
find . -name "*modules*$RELEASE_DATE*.deb" -type f | while read -r m; do |
OlderNewer