Skip to content

Instantly share code, notes, and snippets.

Avatar
📺
Hello World!

Frank Jheng M157q

📺
Hello World!
View GitHub Profile
@M157q
M157q / korean_fish.py
Last active May 10, 2019
Yet another chatbot
View korean_fish.py
#!/usr/bin/env python3
import itertools
whats = [
'自經區', '自貿區',
'摩天輪', '愛情摩天輪', '愛情產業鏈',
'發大財', '愛河的水甘甘', '選總統',
'迪士尼',
@M157q
M157q / satoshistreasure.md
Created Apr 17, 2019 — forked from johncantrell97/satoshistreasure.md
How I Obtained Satoshi's Treasure Keys 1, 2, and 3 in Minutes
View satoshistreasure.md

Today (April 16th 2019 at noon) the first major clues to discover key #1 was set to be released in a few cities. A QR code with the words 'orbital' were found at these locations and looked like this: (https://imgur.com/a/6rNmz7T). If you read the QR code with your phone you will be directed to this url: https://satoshistreasure.xyz/k1

At this URL you are prompted to input a passphrase to decrypt the first shard. An obvious first guess was to try the word 'orbital' from the QR code. Not suprisingly this worked! This reveals a congratulations page and presents the first key shard:

ST-0001-a36e904f9431ff6b18079881a20af2b3403b86b4a6bace5f3a6a47e945b95cce937c415bedaad6c86bb86b59f0b1d137442537a8.

Now, we were supposed to wait until April 17th to get clues from the other cities for keys #2 and #3 but that wouldn't stop me from digging around with all the new information we had. All that time "playing" notpron (http://notpron.org/notpron/) years ago was going to help me here.

The first thing I noticed was

View leadership.md
  • Turn The Ship Around
  • Five Dysfunctions of a Team
  • Leading Snowflakes
  • High-Output Management
  • Slack: Getting Past Burnout
  • The Year Without Pants
  • Creativity, Inc.
  • Start With Why
  • Crucial Conversations
  • Drive: The Surprising Truth About What Motivates Us
@M157q
M157q / fail2ban-allstatus.sh
Created Dec 12, 2018 — forked from kamermans/fail2ban-allstatus.sh
Show status of all fail2ban jails at once
View fail2ban-allstatus.sh
#!/bin/bash
JAILS=`fail2ban-client status | grep "Jail list" | sed -E 's/^[^:]+:[ \t]+//' | sed 's/,//g'`
for JAIL in $JAILS
do
fail2ban-client status $JAIL
done
@M157q
M157q / ptt_autologin.sh
Created Jan 9, 2018
A shell script to login PTT via ssh automatically.
View ptt_autologin.sh
#!/usr/bin/env expect
# Login into PTT via SSH.
# Combine crontab with this script so you don't forget to login PTT everyday.
# Usage: /bin/bash -c ${FILE_PATH_OF_THIS_SCRIPT}
# Example in crontab:
# ptt auto login, every day at 12:00 PM
# 0 12 * * * /bin/bash -c ${ABSOLUTE_FILE_PATH_OF_THIS_SCRIPT}
View ruby_revealer.sh
#!/usr/bin/sudo sh
## ruby_revealer.sh -- decrypt obfuscated GHE .rb files. 2.0.0 to 2.3.1+.
## From `strings ruby_concealer.so`:
##
## > This obfuscation is intended to discourage GitHub Enterprise customers
## > from making modifications to the VM.
##
## Well, good, as long as its not intended to discourage *me* from doing this!
View PKGBUILD
pkgname=libva1-ubuntu
pkgver=1.7
pkgrel=1
pkgdesc="Old libva from Ubuntu 16.04 for apps not supporting libva2 (esp. Parsec.tv)"
arch=('x86_64')
url="https://linux.palemoon.org"
license=('GPL' 'BSD')
depends=()
mirror="http://archive.ubuntu.com/ubuntu"
source=(
View github_commits_in_a_organization.py
#!/usr/bin/env python3
from pprint import pprint
# Make sure you've installed github3.py via `pip install --pre github3.py`
from github3 import login
MY_GITHUB_USERNAME = ""
# Visit https://github.com/settings/tokens to create a token if you don't have.
@M157q
M157q / True Trello Printer
Created Dec 26, 2017 — forked from mathiasrw/True Trello Printer
Ever wanted to print your Trello board? Export as JSON and paste it into the code.
View True Trello Printer
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>True Trello Printer</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
<style>
body{margin:15%;}
.panel-body{
@M157q
M157q / collect_twitter_direct_messages.py
Last active Dec 24, 2017
Get tweets I saved (by sending DM to my bot account)
View collect_twitter_direct_messages.py
#!/usr/bin/env python3
import urllib
import twitter
# Fill these contants by yourself.
CONSUMER_KEY = ""
CONSUMER_SECRET = ""
You can’t perform that action at this time.