This file contains hidden or 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
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains hidden or 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
| # ---------- Status Cats Error Pages!!! via: https://http.cat/ --------- | |
| # | |
| # requires that a dns resolver be set for nginx as in: resolver 127.0.0.1; | |
| # typically uses dnsmasq for 127.0.0.1 resolver | |
| # | |
| # Usage: | |
| # place this file somewhere accessible to nginx. /etc/nginx/snippets is a decent choice. | |
| # then inside the server block(s) you want cat themed error status responses do: | |
| # include snippets/http-cat-error-pages.conf | |
| # |
- right-click on the playing video, select Copy link
- find Wistia video ID in the copied link e.g.
wvideo=tra6gsm6rl- alternative: look for e.g.
hashedId=tra6gsm6rlin the page source
- alternative: look for e.g.
- load
http://fast.wistia.net/embed/iframe/+ video ID in your browser - look for
"type":"original"in the page source and copy the URL from the next line e.g."url":"http://embed.wistia.com/deliveries/129720d1762175bcd8e06dcab926ec76ad38ff00.bin"
- alternative: look for
"type":"hd_mp4_video"
This file contains hidden or 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 | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
$ sudo pacman -S qemu # For Arch LinuxDownload Win10 "manually" - https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewadvanced
This file contains hidden or 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
| ### Last tested February 7 2014 on a Galaxy S3 (d2att) running Cyanogenmod 11 nightly, with Google Authenticator 2.49. | |
| ### Device with Google Authenticator must have root. | |
| ### Computer requires Android Developer Tools and SQLite 3. | |
| ### Connect your device in USB debugging mode. | |
| $ cd /tmp | |
| $ adb root | |
| $ adb pull /data/data/com.google.android.apps.authenticator2/databases/databases |
This file contains hidden or 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 | |
| # | |
| # Very basic example of using Python and IMAP to iterate over emails in a | |
| # gmail folder/label. This code is released into the public domain. | |
| # | |
| # RKI July 2013 | |
| # http://www.voidynullness.net/blog/2013/07/25/gmail-email-with-python-via-imap/ | |
| # | |
| import sys | |
| import imaplib |
This file contains hidden or 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
| # /etc/udev/rules.d/99-usb-serial.rules | |
| # udevadm info --attribute-walk -n /dev/ttyUSB0 |grep serial (can be used to get serial number) | |
| # udevadm control --reload-rules (reload rules) | |
| # udevadm trigger (re-add all devices) | |
| # see https://wiki.archlinux.org/index.php/Bus_pirate | |
| # for some reason, ATTRS{bInterfaceNumber}=="00" is not working, hence the use of ENV{} | |
| # single USB/serial adapters | |
| SUBSYSTEM=="tty", ATTRS{serial}=="A900TUKZ", SYMLINK+="ttyUSB_bub_1" | |
| SUBSYSTEM=="tty", ATTRS{serial}=="A700fdWb", SYMLINK+="ttyUSB_bub_2" |
This file contains hidden or 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
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy import Column, ForeignKey, Integer, String, ForeignKeyConstraint | |
| from sqlalchemy import create_engine | |
| from sqlalchemy.orm import sessionmaker, relationship | |
| Model = declarative_base() | |
| class Parent(Model): | |
| __tablename__ = 'parent' | |
| id = Column(Integer, primary_key=True) |
NewerOlder