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 /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/Install\ macOS\ Mojave -- /Applications/Install\ macOS\ Catalina.app |
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
# Dependencies | |
/node_modules | |
# IDEs and editors | |
.idea/* | |
!.idea/runConfigurations/ | |
!.idea/codeStyleSettings.xml | |
.project | |
.classpath | |
.c9/ |
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
rm -rf .{,_.}{fseventsd,Spotlight-V*,Trashes} | |
mkdir .fseventsd | |
touch .fseventsd/no_log .metadata_never_index .Trashes |
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
#!/bin/bash | |
TOKEN="" | |
ZONE="" | |
RECORD="" | |
ENDPOINT="https://api.cloudflare.com/client/v4/zones/$ZONE/dns_records/$RECORD" | |
AUTHHEADER="Authorization: Bearer $TOKEN" | |
KEYHEADER="X-Auth-Key: $TOKEN" | |
CONTENTHEADER="Content-Type: application/json" |
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
function setUserAgent( window, userAgent ) { | |
if ( userAgent !== window.navigator.userAgent ) { | |
let userAgentProp = { get: function() { return userAgent } } | |
try { | |
Object.defineProperty( window.navigator, 'userAgent', userAgentProp ) | |
} catch( e ) { | |
window.navigator = Object.create( navigator, { userAgent: userAgentProp } ) | |
} | |
} | |
return window.navigator.userAgent |
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
root = true | |
[*] | |
charset = utf-8 | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
max_line_length = 80 |