mkdir secrets
keytool -genkey -v -keystore ./secrets/upload-keystore.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
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
| // ==UserScript== | |
| // @name Evernote Shortcuts | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description shows how to use babel compiler | |
| // @author You | |
| // @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js | |
| // @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js | |
| // @require http://code.jquery.com/jquery-3.1.1.min.js | |
| // @match https://www.evernote.com/Home.action* |
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
| let links = []; | |
| $('.mimeClass-pdf').parents('a').each(function() { | |
| const link = $(this).attr('href'); | |
| console.log(`Link: ${link}`); | |
| links.push(link); | |
| }); | |
| let currentLink = 0; |
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 | |
| echo "What's the name of the repository?" | |
| read repoName | |
| curl --header "PRIVATE-TOKEN: <YOUR PERSONAL PRIVATE TOKEN from Settings/Access Tokens>" -X POST "https://gitlab.com/api/v4/projects?name=$repoName" | |
| echo "\n" | |
| echo "Done. Do you want to add remote for current directory? (Y) / (N)" | |
| read answer |
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
| function open(input) { | |
| const urls = input.match(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g) | |
| console.log(urls) | |
| let form = document.createElement("form") | |
| form.method = "GET" | |
| form.target = "_blank" | |
| document.body.appendChild(form) | |
| urls.forEach(url => { | |
| form.action = url | |
| form.submit() |
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
Show hidden characters
| { | |
| // Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and | |
| // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope | |
| // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is | |
| // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: | |
| // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. | |
| // Placeholders with the same ids are connected. | |
| // Example: | |
| "Json Serializable Template": { | |
| "scope": "flutter,dart", |
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
| district_en | district_zh | sub_district_en | sub_district_zh | |
|---|---|---|---|---|
| Hong Kong | 香港 | ABERDEEN | 香港仔 | |
| Hong Kong | 香港 | ADMIRALTY | 金鐘 | |
| Hong Kong | 香港 | AP LEI CHAU | 鴨脷洲 | |
| Hong Kong | 香港 | CAUSEWAY BAY | 銅鑼灣 | |
| Hong Kong | 香港 | CENTRAL | 中環 | |
| Hong Kong | 香港 | CHAI WAN | 柴灣 | |
| Hong Kong | 香港 | CHUNG HOM KOK | 舂坎角 | |
| Hong Kong | 香港 | DEEP WATER BAY | 深水灣 | |
| Hong Kong | 香港 | HAPPY VALLEY | 跑馬地 |
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
| ReturnType run<ReturnType>(ReturnType Function() operation) { | |
| return operation(); | |
| } | |
| extension ScopeFunctionsForObject<T extends Object> on T { | |
| ReturnType let<ReturnType>(ReturnType Function(T item) operationFor) { | |
| return operationFor(this); | |
| } | |
| T also(void Function(T item) operationFor) { |
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 support the GraphQL validation in VSCode | |
| name: "GraphQL API" | |
| schema: "./schema.graphql" | |
| documents: "./graphql/**/*.graphql" |
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
| # Just run this in your terminal | |
| adb -e shell su root date $(date +%m%d%H%M%Y.%S) |
OlderNewer