Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View ruaanvds's full-sized avatar

ruaan van der spuy ruaanvds

View GitHub Profile
import "@johnlindquist/kit"
// Menu: Chrome History
// Description: Open a url from your history
// Author: John Lindquist
// Twitter: @johnlindquist
let historyFilePath = home(
"Library/Application Support/Google/Chrome/Default/History"
)
// Name: Open New Google Hangout
import "@johnlindquist/kit"
browse(`https://meet.google.com/getalink?hs=202&authuser=0&illm=1684140641797&hl=en`)
// Name: Open New Google Hangout
import "@johnlindquist/kit"
let text = await arg("search...")
browse(`https://meet.google.com/getalink?hs=202&authuser=0&illm=1684140641797&hl=en`)
import { auth, firestore } from './firebase-config';
import { doc, collection, getDoc, setDoc, onSnapshot } from '@firebase/firestore';
import { useCallback, useEffect, useState } from 'react';
import { useAuthState } from 'react-firebase-hooks/auth';
// Custom hook to read auth record and user profile doc
export function useUserData() {
const [user] = useAuthState(auth);
const [username, setUsername] = useState(null);
@ruaanvds
ruaanvds / cloudSettings
Last active May 16, 2021 09:51
VSCode Settings
{"lastUpload":"2021-05-16T09:50:56.178Z","extensionVersion":"v3.4.3"}
@ruaanvds
ruaanvds / windows-dev-cheat-sheet.md
Created March 18, 2019 06:45
Windows dev cheat sheet

Find a process

netstat -ano | findstr :

Kill that process

taskkill /PID /F

@ruaanvds
ruaanvds / Emergency commit squash
Created January 15, 2019 21:53
Emergency commit squash
git reset $(git merge-base master $(git rev-parse --abbrev-ref HEAD))
git add -A
git commit -m "Commit message"
git push -f