ssh root@SERVER_IP_ADDRESS
$ sudo apt-get update
$ sudo apt-get install software-properties-common
| function hideTdo() { | |
| var timer = null; | |
| var target = document.querySelector('#tidio-chat iframe'); | |
| if(!target) { | |
| if(timer !== null) { | |
| clearTimeout(timer); | |
| } | |
| timer = setTimeout(hideTdo, 500); | |
| return; | |
| } else { |
| // import_json_appsscript.js | |
| // https://gist.github.com/allenyllee/c764c86ed722417948fc256b7a5077c4 | |
| // | |
| // Changelog: | |
| // (Oct. 16 2019) tag: allenyllee-20191016 | |
| // 1. Fixed google script error: urlfetchapp - service invoked too many times https://stackoverflow.com/questions/10598179/google-apps-script-urlfetchapp-service-invoked-too-many-times | |
| // (Jul. 16 2018) tag: allenyllee-20180716 | |
| // 1. Fixed the issue "If you try to query /arrayA[k]/arrayB[n]/arrayC[m]/.../member, you will always get /arrayA[k]/arrayB[k]/arrayC[k]/.../member." | |
| // (Nov. 30 2017) tag: allenyllee-20171130 | |
| // 1. Add the ability to query array elements by using xpath like "/array[n]/member" where "n" is array index |
| <?php | |
| if( !is_admin() && $pagenow != 'wp-login.php' && pll_current_language() == 'en' ) | |
| { | |
| wp_redirect(site_url().'/de/'); | |
| die(); | |
| } |
| <?php | |
| /** | |
| * Polylang Shortcode - https://wordpress.org/plugins/polylang/ | |
| * Add this code in your functions.php | |
| * Put shortcode [polylang_langswitcher] to post/page for display flags | |
| * | |
| * @return string | |
| */ | |
| function custom_polylang_langswitcher() { | |
| $output = ''; |
| function hideTdo() { | |
| var timer = null; | |
| var target = document.querySelector('#tidio-chat iframe'); | |
| if(!target) { | |
| if(timer !== null) { | |
| clearTimeout(timer); | |
| } | |
| timer = setTimeout(hideTdo, 500); | |
| return; | |
| } else { |
#!/bin/sh
## xref: https://www.reddit.com/r/MacOS/comments/jy5ry8/m1_macbook_air_keysshortcut_for_keyboard/ghryk3j/?utm_source=reddit&utm_medium=web2x&context=3
cat > ~/Library/LaunchAgents/com.local.KeyRemapping.plist << EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>