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 sync() { | |
var id = "[email protected]"; | |
var today = new Date(); | |
var endDate = new Date(); | |
endDate.setDate(today.getDate() + 7); | |
var secondaryCal = CalendarApp.getCalendarById(id); | |
var secondaryEvents = secondaryCal.getEvents(today, endDate); | |
var primaryCal = CalendarApp.getDefaultCalendar(); | |
var primaryEvents = primaryCal.getEvents(today, endDate); | |
var primaryEventTitle = "Personal Appointment"; |
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
$CurrentState = $null | |
$NewState = $null | |
Write-Host "Monitoring device changes..." -ForegroundColor Green | |
while ($true) { | |
if (-not($CurrentState)) { | |
$CurrentState = Get-PnpDevice -Status OK | |
} | |
else { | |
$NewState = Get-PnpDevice -Status OK | |
$Changes = $null |
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
;; Place this file in C:\Users\<username>\AppData\Roaming and point to the appropriate files | |
(setq user-init-file "C:/path/to/.emacs") | |
(setq user-emacs-directory "C:/path/to/.emacs.d/") | |
(setq default-directory "C:/whatever/you/want/to/start/in") | |
(setenv "HOME" "D:/my/home/directory") | |
(load user-init-file) |
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
;; Highlights dumb stuff. | |
(require 'whitespace) | |
(setq whitespace-style '(face empty tabs lines-tail trailing)) | |
(global-whitespace-mode t) | |
;; 80 column marker. | |
( | |
add-hook 'rust-mode-hook ( | |
lambda () | |
(setq-local whitespace-line-column 80) |
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 apt-get update && sudo apt-get upgrade | |
sudo apt-get -y install build-essential curl | |
git config --global credential.helper "/mnt/c/Program\ Files/Git/mingw64/libexec/git-core/git-credential-wincred.exe" | |
# Setup Docker. These directions work on WSL2. | |
sudo addgroup --system docker | |
sudo adduser $USER docker | |
newgrp docker | |
sudo chown root:docker /var/run/docker.sock |