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
/** | |
* Asyncronous iterable iterator for IndexedDB object stores or indexes | |
* | |
* @author Florian Lentsch <[email protected]> | |
* @license MIT | |
* | |
* ____________________________________________________________________________ | |
* REQUIREMENTS: You may have to add "lib": ["esnext.asynciterable"] to | |
* your tsconfig.json - see https://stackoverflow.com/questions/43694281/ts2318-cannot-find-global-type-asynciterableiterator-async-generator?answertab=votes#tab-top | |
* |
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 -e | |
# Run a program requiring xserver as another user by passing on the xauth cookie | |
# s. http://askubuntu.com/questions/871092/failed-to-connect-to-mir-failed-to-connect-to-server-socket-no-such-file-or-di?newreg=811c7a1d637341c5b294d8b515e8b6e7 | |
# s. http://serverfault.com/questions/51005/how-to-use-xauth-to-run-graphical-application-via-other-user-on-linux | |
# AUTHOR: Florian Lentsch <[email protected]> | |
# TESTED: on Ubuntu 16.04 only | |
# | |
# USAGE: xsudo <username> <command> |
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
#!/usr/bin/env python | |
# Script to alias a docker container's primary IPv4 address | |
# with the desired host_name in /ect/hosts | |
# | |
# Usage: add_container_to_hosts <container_name> <host_name> | |
# | |
# CAVEAT: Currently won't work for IPv6 addresses and will only work | |
# on platforms, where the hosts file can be found under /etc/hosts | |
# |
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 | |
# Dumps schema and data of mdbfile (which can be .accdb too) to mysql | |
if [ $# -ne 2 ]; then | |
echo usage: $0 mdbfile mysqlfile | |
exit 1 | |
fi | |
mdb-schema $1 mysql > $2 |