Fix branch that is ahead of master
https://stackoverflow.com/questions/1628088/reset-local-repository-branch-to-be-just-like-remote-repository-head
git fetch origin
git reset --hard origin/master
2018-04-13 03:54:37
2
test2
2018-05-05 03:22:37
Change Source of github repository
git remote set-url origin //where you want to set it to
git push -u origin master
Creating a deploy key
https://help.github.com/articles/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
2018-05-29 05:28:41
UTF-8 Character Encoding
Joel:
https://www.joelonsoftware.com/2003/10/08/the-absolute-minimum-every-software-developer-absolutely-positively-must-know-about-unicode-and-character-sets-no-excuses/
Standard:
https://tools.ietf.org/html/rfc3629
Summary on MySQL:
https://medium.com/@adamhooper/in-mysql-never-use-utf8-use-utf8mb4-11761243e434
2018-06-19 04:19:56
Procrastination
https://waitbutwhy.com/2013/10/why-procrastinators-procrastinate.html
2018-06-19 04:41:47
amCharts Stock Chart
2018-07-27
- When comparing data sets, it takes the date range from the first data set
- When using different data sets, need to compare them to have them show up on the same panel
2018-07-27 15:29:16
Changelog
https://keepachangelog.com/en/1.0.0/
2018-08-23 20:07:03
Copy JS variable from Chrome console
- Right click on the variable you want to save and pick Store as global variable
- It shows up in the console with a temporary name temp1
- copy(temp1) copies it to the clipboard
2018-09-11 01:10:23
Print debug in terminal
fwrite(STDERR, print_r($mailingData, TRUE));
2019-10-08 15:45:49
Wordpress from shell
wget http://wordpress.org/latest.tar.gz
tar xfz latest.tar.gz
2019-12-03 20:07:31
Bash Loop through JSON array of objects
for row in $(jq -r '.[] | @base64' ChristineTest.json); do _jq() { echo ${row} | base64 --decode | redis-cli -x lpush donations; }; echo $(_jq '.name'); done
2019-12-05 18:58:10
debug in unit test output
fwrite(STDERR, print_r($mailingData, TRUE));
2021-02-04 14:55:24