The standard code style linter is a great tool by Feross - check it out!
Remove trailing semicolons:
find . -path ./node_modules -prune -o -type f -name '*.js' -exec sed -i '' -e 's/;$//' {} \;
Ensure space between function and opening bracket:
| #!/bin/bash | |
| EMAIL="[email protected]" | |
| ssh-keygen -t rsa -b 4096 -N '' -C "${EMAIL}" -f ~/.ssh/id_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "${EMAIL}" -f ~/.ssh/github_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "${EMAIL}" -f ~/.ssh/mozilla_rsa |
| #!/bin/sh | |
| keylength=8 | |
| algo=$1 | |
| [[ "$algo" = "aes" ]] && keylength=16 | |
| [[ "$algo" = "3des" ]] && keylength=24 | |
| encfile=$(mktemp -t _encXXXXXX) && \ | |
| keyfile=$(mktemp -t _encXXXXXX) && \ | |
| dd if=/dev/urandom of="$keyfile" bs="$keylength" count=1 >/dev/null 2>&1 && \ |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| // unlike tweets using twitter web (use this on https://twitter.com/USERNAME/likes) | |
| // | |
| // @param {n} the number of likes to delete | |
| // @param {maxWaitRetries} maximum number of times to try loading more likes when | |
| // everything on the page has been unliked | |
| const unlike = async (n, maxWaitRetries = 10) => { | |
| let total = 0; | |
| while(total < n) { | |
| // get every like button on the page and click it | |
| const likeButtons = await document.querySelectorAll('[data-testid="unlike"]'); |
| <?php | |
| class Loadmore_Button { | |
| public $article_wrapper = 'article-card'; | |
| public $post_per_load = 6; | |
| public $button_text = 'ΠΠΎΠΊΠ°Π·Π°ΡΡ Π΅ΡΠ΅'; | |
| public $button_loading_text = 'ΠΠ°Π³ΡΡΠ·ΠΊΠ°...'; | |
| public $button_data_attr = 'data-aos="fade-up"'; | |
| public $orderby = 'date'; | |
| public $article_class = '.all-news__item'; | |
| public $button_class = 'all-news__btn-more'; |
| $(document).ready(() => { | |
| $("#add_bookmark").click(() => { | |
| // Mozilla Firefox Bookmark | |
| window.sidebar && window.sidebar.addPanel(location.href, document.title,""); | |
| // IE Favorite | |
| window.external && window.external.AddFavorite(location.href, document.title); | |
| // Opera Hotlist | |
| if( window.opera && window.print ) { | |
| this.title=document.title; | |
| return true; |
The standard code style linter is a great tool by Feross - check it out!
Remove trailing semicolons:
find . -path ./node_modules -prune -o -type f -name '*.js' -exec sed -i '' -e 's/;$//' {} \;
Ensure space between function and opening bracket:
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| <?php | |
| /** | |
| * Plugin Name: Automatic Dark Mode | |
| * Plugin URI: https://github.com/danieltj27/Dark-Mode/ | |
| * Description: Lets your users make the WordPress admin dashboard darker. | |
| * Author: Daniel James | |
| * Author URI: https://www.danieltj.co.uk/ | |
| * Text Domain: auto-dark-mode | |
| * Version: 1.0 |