-
Run This to get Collation Path
SHOW VARIABLES LIKE 'character_sets_dir'; -
in
/collation/path/Index.xmladd this to<charset name="utf8">section
Note: This gist may be outdated, thanks to all contributors in comments.
adb is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
^data:((?:\w+\/(?:(?!;).)+)?)((?:;[\w\W]*?[^;])*),(.+)$test this pattern on regexr: https://regexr.com/4inht
regex pattern to match RFC 2397 data URL
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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "os" | |
| "sync" | |
| ) |
References:
These are my preferences for a good commit message, feel free to fork this gist and add your own standards, or add comment here to share yours with the community.
- Don't add any file that is not related to the main issue, you can make it in a separate commit.
- Separating files that not related is important in the revert cases.
- Revise the whole changes always before committing and make sure to mention each change you made in the message.
- Imagine the commit as an Email to the owner or your team mates.
- Subject in the first and main sentence of the commit, it should be concise and to the point.
- It shouldn't exceed 50 char.
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
| # download release from github: https://github.com/monostream/tifig/releases and install at ~/tools/tifig | |
| # then run these commands in the folder (just to keep things simple we normalize the file extension case before proceeding). | |
| for f in *.HEIC; do mv "$f" "`echo $f | sed s/.HEIC/.heic/`"; done | |
| for file in *.heic; do echo "~/tools/tifig -v -p $file ${file/%.heic/.jpg}"; done |
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
| git diff-tree --no-commit-id --name-only -r HEAD | xargs subl |
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
| #Import a directory of text files as google keep notes. | |
| #Text Filename is used for the title of the note. | |
| import gkeepapi, os | |
| username = 'username@gmail.com' | |
| password = 'your app password' | |
| keep = gkeepapi.Keep() | |
| success = keep.login(username,password) |