Skip to content

Instantly share code, notes, and snippets.

Alexander alexs77

Block or report user

Report or block alexs77

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@alexs77
alexs77 / google-translate-codes.txt
Created Apr 25, 2019
Google Translate Language Codes
View google-translate-codes.txt
af
sq
ar
hy
az
eu
be
bn
bs
bg
View Error "terraform output -json aws_key_pair_name"
[terragrunt] 2019/03/13 15:55:09 Setting working directory to /Users/alex/SysOps/AWS/QA/cloudcraft/ap-south-1/ap-south-1/keypair/.terragrunt-cache/7FJACLBEMlnpJeba-LhQbRwG95E/TrprSvuoV_MVKNhRWamm3LGfqCA
[terragrunt] 2019/03/13 15:55:10 Detected 1 Hooks
[terragrunt] 2019/03/13 15:55:10 Running command: terraform output -json key_pair_name
The output variable requested could not be found in the state
file. If you recently added this to your configuration, be
sure to run `terraform apply`, since the state won't be updated
with new output variables until that command is run.
[terragrunt] 2019/03/13 15:55:13 Detected 1 Hooks
[terragrunt] 2019/03/13 15:55:13 Hit multiple errors:
exit status 1
@alexs77
alexs77 / compress-benchmark.sh
Last active Nov 1, 2018
Comparing gzip, bzip2 and xz
View compress-benchmark.sh
#!/bin/bash
time (
# pp-complete.csv from http://prod.publicdata.landregistry.gov.uk.s3-website-eu-west-1.amazonaws.com/pp-complete.csv
f=pp-complete.csv; for p in gzip bzip2 xz; do
[[ $p = gzip ]] && continue
for m in 1 2 3 4 5 6 7 8 9; do
log=$f.log.$m.$p
out=$f.$m.$p
echo $(date "+%Y-%m-%d--%H:%M:%S.%N"): $p $m start | tee -a $log
time $p -$m -c -k $f > $out
@alexs77
alexs77 / qr.sh
Last active Oct 9, 2018
Create QR codes for UUIDs and index.htm
View qr.sh
#!/usr/local/bin/fish
mkdir -p qr
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
QR Codes
</title>
@alexs77
alexs77 / chef-run-error.txt
Created Jul 6, 2018
chef-run error on Ubuntu 18.04
View chef-run-error.txt
alex@alex-MacBookPro:~$ LC_ALL=C chef-run -i ~/.ssh/id_ecdsa localhost log HelloWorld
[✔] Generated local policyfile
[✔] [localhost] Connected.
[✔] [localhost] Chef client version 14.2.0 already installed on target.
[✖] [localhost] The command 'bash -c 'd=$(mktemp -d -p${TMPDIR:-/tmp} chef_XXXXXX); chmod 777 $d; echo $d'' exited with return code '2' on 'localhost'.
CHEFRMT001
The command 'bash -c 'd=$(mktemp -d -p${TMPDIR:-/tmp} chef_XXXXXX); chmod 777 $d; echo $d'' exited with return code '2' on 'localhost'.
View vimrc
" You can use <Space>, which is interpreted as a
" literal " " character, to enter buffer completion mode
map gb :buffer<Space>
@alexs77
alexs77 / Multi-Value_Options.yaml
Created Mar 1, 2018
Rundeck Multiple Multi-Value Options
View Multi-Value_Options.yaml
- description: Testing Multi-Value Options
executionEnabled: true
id: 0ff8c9cc-2115-4864-8296-2649df0f1da2
loglevel: INFO
name: Multi-Value Options
nodeFilterEditable: false
nodefilters:
dispatch:
excludePrecedence: true
keepgoing: false
@alexs77
alexs77 / Debug_Multi-Value_Options.xml
Created Feb 28, 2018
Debugging "Multi-Value Options" in Rundeck
View Debug_Multi-Value_Options.xml
<joblist>
<job>
<context>
<options preserveOrder='true'>
<option delimiter=' ' multivalueAllSelected='true' multivalued='true' name='wert' required='true'>
<description>Werte</description>
</option>
</options>
</context>
<description>Debug für Multi-Value Options</description>
@alexs77
alexs77 / E-Mails_entfernen.xml
Last active Feb 28, 2018
Rundeck Job for removing E-Mails
View E-Mails_entfernen.xml
<joblist>
<job>
<context>
<options preserveOrder='true'>
<option delimiter=' ' multivalueAllSelected='true' multivalued='true' name='patterns' required='true'>
<description>Pattern aus der `mailq` Zeile.</description>
</option>
</options>
</context>
<description>Lösche E-Mails, deren Mail Queue Zeile auf das angegebene Muster passt.</description>
View AppsHonor6X
* [11t](https://play.google.com/store/apps/details?id=com.jeroensmeets.mastodon)
* [20 Minuten](https://play.google.com/store/apps/details?id=ch.iAgentur.i20Min)
* [4 Spieler Reaktor](https://play.google.com/store/apps/details?id=coolcherrytrees.games.reactor4)
* [ALDI TALK](https://play.google.com/store/apps/details?id=de.eplus.mappecc.client.android.alditalk)
* [Amazon](https://play.google.com/store/apps/details?id=de.amazon.mShop.android)
* [Amazon Drive](https://play.google.com/store/apps/details?id=com.amazon.drive)
* [Amazon Kindle](https://play.google.com/store/apps/details?id=com.amazon.kindle)
You can’t perform that action at this time.