Skip to content

Instantly share code, notes, and snippets.

View alexs77's full-sized avatar

Alexander alexs77

View GitHub Profile
@alexs77
alexs77 / AppsHonor6X
Created July 23, 2017 12:33
Apps Honor 6X
* [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)
Welcome to StackEdit!
===================
Hey! I'm your first Markdown document in **StackEdit**[^stackedit]. Don't delete me, I'm very helpful! I can be recovered anyway in the **Utils** tab of the <i class="icon-cog"></i> **Settings** dialog.
----------
Documents
@alexs77
alexs77 / client.rb
Created June 26, 2017 13:54
chef_nginx: Could not satisfy version constraints for: windows
# Pfade definieren
cookbook_path "/opt/nginx-rp-kitchen/cookbooks"
role_path "/opt/nginx-rp-kitchen/roles"
environment_path "/opt/nginx-rp-kitchen/environments"
data_bag_path "/opt/nginx-rp-kitchen/data_bags"
data_bag_encrypt_version 2
# Wir haben keinen Chef Server
chef_zero.enabled true
@alexs77
alexs77 / 1589005.txt
Created March 20, 2017 15:14
Bug #1589005 “After update DNS work unstable” : Bugs : network-manager package : Ubuntu
I also seem to experience the same (or similar) issue. When I connect to my companies Cisco ASA VPN using OpenConnect (in NetworkManager), it seems that with network-manager after v1.2.2, the previously configured DNS servers aren't overwritten with what VPN sends. Instead, those VPN servers get appended to the list.
So, at first, before I connect to VPN, I only have one DNS server configured: 192.168.42.129
Next, I connect to the VPN.
To see the effective list of DNS servers, I created the file /etc/NetworkManager/dnsmasq.d/dnsmasq.conf, containing:
log-queries=extra
log-async=7
@alexs77
alexs77 / git-sm.sh
Created February 15, 2017 08:08
Issues with Git submoules
$ git clone --branch test-environment --recursive git@srv:customer/snbng.git /opt/kitchen
$ git submodule
3c860113895098bd9bab7a44554d61f41e6da14d cookbooks/apt (SNBNG-Test-2016-11.01-3-g3c86011)
d2787f5f7a43e2dc31a7041007d49d0816acddc2 cookbooks/ew (SNBNG-Test-2016-11.01-127-gd2787f5)
$ git submodule update --remote
Submodule path 'cookbooks/ew': checked out 'aa47bcc148ceec136747f16f6d4e155a87d046b5'
$ git status
@alexs77
alexs77 / renew-lego.sh
Created December 1, 2016 09:04
Renewal of Let's Encrypt certificates with lego.
#!/bin/sh
lego_cert_path="/etc/lego"
certificates_dir="$lego_cert_path/certificates"
lego_bin="/opt/lego/lego"
account_email="unix@everyware.ch"
well_known_base_dir="/var/www/html/well-known"
reload_command="/bin/systemctl reload apache2.service"
renew_days="14"
@alexs77
alexs77 / chef-client output.txt
Last active August 18, 2016 13:28
lvm creation problems with lvm cookbook
* lvm_logical_volume[fo_12abcde] action create[2016-08-18T15:24:45+02:00] INFO: Processing lvm_logical_volume[fo_12abcde] action create (ew::partitioning-linux line 62)
================================================================================
Error executing action `create` on resource 'lvm_logical_volume[fo_12abcde]'
================================================================================
NoMethodError
-------------
undefined method `gsub' for nil:NilClass
@alexs77
alexs77 / zimbra-control.sh
Created June 9, 2016 15:07
Start/Stop/Status Zimbra
#!/bin/bash
start () {
echo "Starte Zimbra $1 Umgebung..."
for h in zcs-ds7-$1; do
if ping -c1 $h > /dev/null 2>&1; then
echo "$h"
ssh -l zimbra "$h" "zmcontrol start"
echo
else
@alexs77
alexs77 / update-ses-truststore.sh
Created March 19, 2015 15:34
SES Truststore updaten
#!/bin/sh
name=quovadis-ica-g2
echo '-----BEGIN CERTIFICATE-----
MIIFTDCCAzSgAwIBAgIUSJgt4qkssznhyPkzNYJ10+T4glUwDQYJKoZIhvcNAQEL
BQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZ
BgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMjAeFw0xMzA2MDExMzM1MDVaFw0yMzA2
MDExMzM1MDVaME0xCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBMaW1p
dGVkMSMwIQYDVQQDExpRdW9WYWRpcyBHbG9iYWwgU1NMIElDQSBHMjCCASIwDQYJ
@alexs77
alexs77 / update-binary
Created February 15, 2015 11:24
xposed-arm-20150213b - update-binary
#!/sbin/sh
#
# Xposed framework installer zip.
#
# This script installs the Xposed framework files to the system partition.
# The Xposed Installer app is needed as well to manage the installed modules.
#
# Thanks to Chainfire for some of the functions and logic!
#