Skip to content

Instantly share code, notes, and snippets.

dschense dschense

Block or report user

Report or block dschense

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
@dschense
dschense / AuthyToOtherAuthenticator.md
Created Jan 18, 2020
Export TOTP tokens from Authy
View AuthyToOtherAuthenticator.md

Generating Authy passwords on other authenticators

  1. Install Authy from Chrome Web Store: Download
  2. Open Authy and log in, so you can see the codes being generated for you
  3. Go to Extensions page in your browser: chrome://extensions/ or Menu -> More tools -> Extensions)
  4. Tick developer mode in top right corner
  5. Find Authy from the list and then click on main.html
  6. Chrome developer tools with Console selected should open. If it didn't, go to Console tab.
  7. Paste following and press enter:
View qmi_strength
function qmi_strength {
dbm=`$COMMAND_PREFIX $QMICLI -d $CDC_WDM --nas-get-signal-strength | tr "'" " " | grep Network | head -1 | awk '{print $4}'`
echo -n "Signal strength is "
if [ $dbm -ge -73 ]; then
echo -n 'Excellent'
elif [ $dbm -ge -83 ]; then
echo -n 'Good'
elif [ $dbm -ge -93 ]; then
echo -n 'OK'
elif [ $dbm -ge -109 ]; then
@dschense
dschense / hugo-on-android.md
Created May 1, 2019 — forked from bep/hugo-on-android.md
Run Hugo on an Android phone
View hugo-on-android.md

First install Termux

Then there are two options:

Build from source

Open the Termux terminal on your Android device and copy-and-paste the commands listed below and hit ENTER:

@dschense
dschense / .bashrc
Created Aug 13, 2018
ParrotOs graphical .bashrc
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@dschense
dschense / installation
Created Oct 21, 2017
Archlinux-btrfs-myway
View installation
Installationsanleitung für Archlinux mit BTRFS - Snapshots - Rollback etc. alles was das Herz begehrt!
------------------------------------------------------------------------
UEFI - Installation:
------------------------------------------------------------------------
GRUNDSYSTEM INSTALLIEREN
------------------------------------------------------------------------
- Boot iso:
@dschense
dschense / update.sh
Created May 11, 2017
Servercow dyndns update-script for cron
View update.sh
#This is a little script to update dyndns for servercow.de
#the script uses the official servercow.de - updatelink
#fill in the example lines to use your personal settings.
#!/bin/bash
#change to your main domain part
DOMAIN1=example.com
#tmp file to store the ip
IPDATEI="/tmp/ipold.txt"
View Proxmox ODD Grub USB Boot
If Your Grub Partition Contains A Full OS Install
sudo mount /dev/sda1 /mnt
sudo chroot /mnt
sudo update-grub2
If Your Grub Partition Only Contains Boot Files
In my case the grub partition was a stand-alone boot partition with no system installed, so I had to bring in most of the system to the chroot environment first:
mkdir /mnt/chrootdir
@dschense
dschense / 1. MYSQL
Last active Oct 4, 2016
Mysql Sammlung
View keybase.md

Keybase proof

I hereby claim:

  • I am dschense on github.
  • I am jens_walser (https://keybase.io/jens_walser) on keybase.
  • I have a public key ASAUqIlHc4rjwXnd_ioyAIYSka6pljOp1pXty-_-qNSXhgo

To claim this, I am signing this object:

@dschense
dschense / backup
Last active Aug 4, 2016
backup mit borg
View backup
#
# This is a simple backup script using borg. It's supposed to serve as a
# starting point and to be adjusted to your system.
#
# Important steps:
# - define a host "backup" in root's .ssh/config
# - read the script and adjust to your needs
# - As root run `borg init -v --encryption=keyfile backup:borg-$HOSTNAME`
# (note that zsh uses $HOST instead of $HOSTNAME)
# - If you want, increase the max_segment_size in
You can’t perform that action at this time.