This file contains 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 the Apple Music Volume to the same level as the system volume | |
// OSX MAC ONLY | |
const { exec } = require('child_process'); | |
const getVolume = () => { | |
return new Promise((resolve, reject) => { | |
exec('osascript -e "output volume of (get volume settings)"', (err, stdout, stderr) => { | |
if (err) { | |
reject(err); | |
} else { |
This file contains 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
Finally, multi ssh key config for same host git repo's :exploding_head: | |
https://superuser.com/questions/366649/ssh-config-same-host-but-different-keys-and-usernames | |
Alternative Git configuration to automatically switch accounts depending on repo path: | |
Create a file ~/.config/git/config.user1 containing: | |
[url "github_username1:"] | |
insteadOf = git@github.com: | |
Create a config.user2 file that's the same except with "github_username2". |
This file contains 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
("unsubscribe" | "Unsubscribe" | "unsub" | "Unsub" | "Manage your subscription" | "Manage subscription" | "do not want to receive marketing emails" | "Click here if you wish to stop the distribution" | "opt out" | "Opt out" | "Click here and we'll never email you") |
This file contains 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
git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch <file/dir>' HEAD |
This file contains 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
/opt/homebrew/etc/nginx/nginx.conf |
This file contains 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
Summary | |
This article provides instructions on setting the hostname of a Mac OS X workstation from the terminal. | |
This can be useful when configuring your workstation remotely through ssh, or when you need to change the fully qualified hostname of the workstation (which can't be done from the UI). | |
Note: The following procedure is for informational purposes only and is not an Autodesk certified or supported workflow. Should issues arise with this procedure, they will not be addressed by Autodesk Customer Support. | |
Procedure | |
Perform the following tasks to change the workstation hostname using the scutil command. | |
Open a terminal. |
This file contains 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
const postcode = 9999 | |
let state | |
if ( | |
(postcode >= 1000 && postcode <= 2599) || | |
(postcode >= 2619 && postcode <= 2899) || | |
(postcode >= 2921 && postcode <= 2999) | |
) { | |
state = 'NSW' | |
} else if ( | |
(postcode >= 200 && postcode <= 299) || |
This file has been truncated, but you can view the full file.
This file contains 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
["2","1080","&c","10-point","10th","11-point","12-point","16-point","18-point","1st","2,4,5-t","2,4-d","20-point","2D","2nd","30-30","3D","3-D","3M","3rd","48-point","4-D","4GL","4H","4th","5-point","5-T","5th","6-point","6th","7-point","7th","8-point","8th","9-point","9th","a","a'","a-","A&M","A&P","A.","A.A.A.","A.B.","A.B.A.","A.C.","A.D.","A.D.C.","A.F.","A.F.A.M.","A.G.","A.H.","A.I.","A.I.A.","A.I.D.","A.L.","A.L.P.","A.M.","A.M.A.","A.M.D.G.","A.N.","a.p.","a.r.","A.R.C.S.","A.U.","A.U.C.","A.V.","a.w.","A.W.O.L.","A/C","A/F","A/O","A/P","A/V","A1","A-1","A4","A5","AA","AAA","AAAA","AAAAAA","AAAL","AAAS","Aaberg","Aachen","AAE","AAEE","AAF","AAG","aah","aahed","aahing","aahs","AAII","aal","Aalborg","Aalesund","aalii","aaliis","aals","Aalst","Aalto","AAM","AAMSI","Aandahl","A-and-R","Aani","AAO","AAP","AAPSS","Aaqbiye","Aar","Aara","Aarau","AARC","aardvark","aardvarks","aardwolf","aardwolves","Aaren","Aargau","aargh","Aarhus","Aarika","Aaron","Aaronic","Aaronical","Aaronite","Aaronitic","Aaron's-beard", |
This file contains 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
If you only need to remove the script, try from cmd wsl.exe -u root -e rm /etc/profile.d/00-wsl2.systemd.sh. | |
If you have bad startup config in /etc/wsl.conf, perhaps you can run wsl -u root -e mv /etc/wsl.conf /etc/wsl.conf.bak. | |
EDIT: you know what -u root does, don't you ;) As for -e, it means do not invoke the default login shell and run the rm or mv binaries directly. |
This file contains 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
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Current File", | |
"program": "${workspaceFolder}/${relativeFile}", | |
"skipFiles": [ | |
"<node_internals>/**" | |
] | |
} |
NewerOlder