Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Saadh Shehzed inoicouldalwaysturn2u

🎯
Focusing
View GitHub Profile
View dupe zoom workflow.md

Duplicate/Copy zoom.us app to a 2nd location. I did /Users/Shared/Applications.

In current GUI account, open Zoom from /Users/Shared/Applications aka 2nd location.

In terminal, I did su second_standard_user. Ran /Applications/zoom.us.app/Contents/MacOS/zoom.us.

Things from Safari will open up via this 2nd user zoom. To open things from your current GUI user. In terminal: open -a /Users/Shared/Applications/zoom.us.app 'https://us02web.zoom.us/j/2401234567?pwd=PW’

@inoicouldalwaysturn2u
inoicouldalwaysturn2u / zoomers_try-to-force-create-local-user-keychains-folder.sh
Last active Oct 4, 2020
Zoomers -- Try to force create local user's Keychains folder
View zoomers_try-to-force-create-local-user-keychains-folder.sh
# Open Terminal.app up. Enter these commands in there.
# For sudo commands, enter your current mac user admin password and press enter. No text will show up as you enter it.
# Verify there's nothing that comes up. It should say "No such file or directory" both times
ls -la ~/Library/Keychains
sudo ls -la ~/Library/Keychains
# Try to force create the folder and give it usual permissions
sudo mkdir ~/Library/Keychains
@inoicouldalwaysturn2u
inoicouldalwaysturn2u / install-papertrailapp-remote_syslog2.sh
Last active Apr 22, 2020
Install Papertrail App's remote_syslog2[0] on macOS for a specific NodeJS project. [0] https://github.com/papertrail/remote_syslog2
View install-papertrailapp-remote_syslog2.sh
cd ~/tmp-moi
wget https://github.com/papertrail/remote_syslog2/releases/download/v0.20/remote_syslog_darwin_amd64.tar.gz
tar -xvzf remote_syslog_darwin_amd64.tar.gz
cd ./remote_syslog
## OG
# sudo cp ./remote_syslog /usr/local/bin
# sudo cp example_config.yml /etc/log_files.yml
# sudo vim /etc/log_files.yml
@inoicouldalwaysturn2u
inoicouldalwaysturn2u / screencapture-obs-agent.plist
Created Apr 20, 2020
I'm doing this on Mac using launchctl. Can include the actual plist as well. Really basic though. Runs every 10 seconds. I turn it off when not running OBS. (launchctl unload screencapture-obs-agent.plist)
View screencapture-obs-agent.plist
<?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>
<key>EnvironmentVariables</key>
<dict>
<key>PATH</key>
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/sbin</string>
</dict>
<key>Label</key>
@inoicouldalwaysturn2u
inoicouldalwaysturn2u / reddit-sb-minimal-html-common-search-bonus-terms-and-links.html
Created Apr 19, 2020
reddit-sb-minimal-html-common-search-bonus-terms-and-links.html
View reddit-sb-minimal-html-common-search-bonus-terms-and-links.html
View History|-102085b1|entries.json
{"version":1,"resource":"file:///Users/makeanothertelephonecall/Dropbox/Learning/epic-werk/proj-gh/app/sockets/src/core/.vscode/settings.json","entries":[{"id":"nV6c.json","timestamp":1653589690694}]}
@inoicouldalwaysturn2u
inoicouldalwaysturn2u / javascript-nested-ternary-vs-switch-case.js
Last active Jul 5, 2019
Javascript nested ternary vs switch case. Which is better?
View javascript-nested-ternary-vs-switch-case.js
# Easier to copy paste from what I was doing. Working on a React Component.
# Was working with React and d3. So the functions are imported from d3.
import { axisTop, axisRight, axisBottom, axisLeft } from 'd3-axis';
# Ternary example as a small function
ternaryEx = ( bootstrap ) => bootstrap === 'top' ? axisTop :
bootstrap === 'right' ? axisRight :
bootstrap === 'bottom' ? axisBottom :
axisLeft;
View keybase.md

Keybase proof

I hereby claim:

  • I am inoicouldalwaysturn2u on github.
  • I am chase_ats (https://keybase.io/chase_ats) on keybase.
  • I have a public key ASDnT4Kj1NyrLglQz8Un2DUb84JO8U_MJ8Pxbp3Qv5oB0go

To claim this, I am signing this object:

View shop-css-overwrite.css
.shopify-buy__layout-horizontal:not(.no-image) .shopify-buy__product-img-wrapper {
float: none !important;
width: 100% !important;
}
.shopify-buy__product-img-wrapper {
float: none !important;
width: 100% !important;
}
View Shazam all songs to youtube and spotify.js
// change this variable to change timeout for async scroll load
var TIMEOUT_IN_MS = 1000
// script from https://gist.github.com/xavhan/87717da0217b9b8299df
// start from www.shazam.com/myshazam
// print all shazam songs loaded on the page
// TODO: Change format to JSON
function printShazamSongs(){
$(".details").each(function(i){
var artist = $(this).find(".artist meta").attr("content");