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
| 36 Bass | |
| 37 Bass alt. | |
| 38 Snare | |
| 39 Snare (Rim Hit) | |
| 40 Rim Click | |
| 41 Rim Click Alt. | |
| 42 High-Hat Closed | |
| 43 Floor Tom | |
| 44 High-Hat Half Open | |
| 45 Mid Tom |
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
| echo -n "$(cat private.key)" | base64 | tr -d '\n' | pbcopy |
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
| <?php | |
| $data = <<< EOF | |
| The broken serialized data goes here. | |
| And can expand on multiple lines. | |
| EOF; | |
| $data = preg_replace_callback ('!s:(\d+):"(.*?)";!', function($match) { | |
| return ($match[1] == strlen($match[2])) ? $match[0] : 's:' . strlen($match[2]) . ':"' . $match[2] . '";'; | |
| }, $data); |
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
| <?php | |
| add_filter( 'algolia_autocomplete_config', function ( $config ) { | |
| if (true) { // Replace this condition to match your needs. | |
| // Autocomplete enabled. | |
| return $config | |
| } | |
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
| kubectl get pod -a --all-namespaces -o json \ | |
| | jq '.items[] | select(.status.reason!=null) | select(.status.reason | contains("Evicted")) | "kubectl delete pod \(.metadata.name) -n \(.metadata.namespace)"' \ | |
| | xargs -n 1 bash -c |
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
| sudo find / -type f -size +100000k -exec ls -lh {} \; | awk '{ print $9 ": " $5 }' |
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
| <?php | |
| add_filter( 'algolia_should_override_search_with_instantsearch', function() { | |
| return false; | |
| } ); |
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
| <?php | |
| /** | |
| * @version 0.1.0 | |
| * Plugin Name: Replace domain in Algolia Search plugin for WordPress | |
| */ | |
| function custom_post_shared_attributes( array $shared_attributes ) { | |
| $shared_attributes['permalink'] = str_replace( 'admin.rushlimbaugh.com', 'www.rushlimbaugh.com', $shared_attributes['permalink'] ); | |
| return $shared_attributes; | |
| } |
NewerOlder