See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| // 'beforescriptexecute' event [es5] | |
| // original version: https://gist.github.com/jspenguin2017/cd568a50128c71e515738413cd09a890 | |
| ;(function() { | |
| ;('use strict') | |
| function Event(script, target) { | |
| this.script = script | |
| this.target = target | |
| this._cancel = false |
| # delete local tag '12345' | |
| git tag -d 12345 | |
| # delete remote tag '12345' (eg, GitHub version too) | |
| git push origin :refs/tags/12345 | |
| # alternative approach | |
| git push --delete origin tagName | |
| git tag -d tagName |
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
| ### COMMANDS | |
| # connect | |
| adb connect WATCH_IP:5555 | |
| # list enabled packages | |
| adb shell cmd package list packages -e > enabled_packages.txt | |
| # list disabled packages | |
| adb shell cmd package list packages -d > disabled_packages.txt |
| var jq = document.createElement('script'); | |
| jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"; | |
| document.getElementsByTagName('head')[0].appendChild(jq); | |
| // ... give time for script to load, then type | |
| jQuery.noConflict(); |
| javascript:(function(e,s){e.src=s;e.onload=function(){jQuery.noConflict();console.log('jQuery injected')};document.head.appendChild(e);})(document.createElement('script'),'//ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js') |
| version: '2' | |
| services: | |
| plex: | |
| image: linuxserver/plex | |
| container_name: plex | |
| volumes: | |
| - /path/to/plex/config:/config | |
| - /path/to/plex/Movies:/data/movies | |
| - /path/to/plex/Shows:/data/tvshows | |
| - /path/to/plex/transcode:/data/transcode |
| ;===== Change filament G-code without AMS === | |
| ;===== version: 1.2 ========================= | |
| ;===== original version date: 20230719 ====== | |
| ;===== description ========================== | |
| ; Everything between M620 and M621 is executed only if AMS is connected. | |
| ; All M620, M620.x and M621 commands are removed to enable manual filament change. | |
| ; first filament change is skipped | |
| {if toolchange_count > 1} |
| <?php | |
| /* | |
| Backup script for trakt.tv (API v2). | |
| Live demo: https://darekkay.com/blog/trakt-tv-backup/ | |
| */ | |
| // create a Trakt app to get a client API key: http://docs.trakt.apiary.io/#introduction/create-an-app | |
| $apikey = "CLIENT_API_KEY"; |