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
| * { background-color: rgba(255,0,0,.2); } | |
| * * { background-color: rgba(0,255,0,.2); } | |
| * * * { background-color: rgba(0,0,255,.2); } | |
| * * * * { background-color: rgba(255,0,255,.2); } | |
| * * * * * { background-color: rgba(0,255,255,.2); } | |
| * * * * * * { background-color: rgba(255,255,0,.2); } |
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 | |
| {{ dd(get_defined_vars()['__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 | |
| function pushbullet(string $accessToken, string $title, string $body, string $type = 'note'): \stdClass | |
| { | |
| if (!in_array($type, ['note', 'url'])) { | |
| throw new \Exception('Invalid pushbullet push type'); | |
| } | |
| $curl = curl_init(); | |
| curl_setopt_array($curl, [ |
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
| DELETE a,b,c FROM wp_posts a WHERE a.post_type = 'revision' LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id) LEFT JOIN wp_postmeta c ON (a.ID = c.post_id); |
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_shortcode( "[tag]", "your_shortcode" ); | |
| function your_shortcode( $atts, $content = null ){ | |
| extract( shortcode_atts([ | |
| 'foo' => 'something', | |
| 'bar' => 'something else', | |
| ], $atts ) ); | |
| return 'something'; | |
| } |
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
| DELETE FROM wp_usermeta | |
| WHERE NOT EXISTS ( | |
| SELECT * FROM wp_users | |
| WHERE wp_usermeta.user_id = wp_users.ID | |
| ) |
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
| tap "eugenmayer/dockersync" | |
| tap "go-delve/delve" | |
| tap "homebrew/bundle" | |
| tap "homebrew/cask" | |
| tap "homebrew/core" | |
| tap "homebrew/dupes" | |
| tap "homebrew/php" | |
| tap "homebrew/versions" | |
| cask "java" | |
| brew "awscli" |
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
| set theResponse to display dialog "Enter youtube url" default answer "" with icon note buttons {"Cancel", "Continue"} default button "Continue" | |
| set theUrl to (text returned of theResponse) | |
| set shellPath to "PATH=$PATH:/bin:/sbin:/usr/bin:/usr/local/bin:/usr/sbin:~/opt/bin:~/opt/sbin:/opt/local/bin:/opt/local/sbin:" & quoted form of (POSIX path of ((path to me as text) & "::")) & "; " | |
| do shell script shellPath & "youtube-dl --ignore-errors -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 -o \"~/Desktop/%(title)s-%(id)s.%(ext)s\" " & theUrl | |
| display dialog "Done" giving up after 2 |
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
| find . -name ".DS_Store" -depth -exec rm {} \; |
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
| tar cvf nameoffile.tar ./ |
NewerOlder