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
Under 10.15.7, I woke my MacBook Pro from sleep to find the wifi constantly disconnecting and reconnecting, on a 20 second cycle. | |
I"m leaving this here in case anybody else finds it useful while troubleshooting. | |
Once it goes through, I'm gonna reboot. | |
Sun Dec 27 16:02:15.446 Apple80211Set:9543 Processing APPLE80211_IOC_ROAM | |
Sun Dec 27 16:02:15.446 Apple80211Set:9557 Processing APPLE80211_IOC_ROAM dataRef:0x7fdb05766a10 | |
Sun Dec 27 16:02:15.446 Apple80211Set:9578 CFType is CFData | |
Sun Dec 27 16:02:17.657 <kernel> postMessage::1349 APPLE80211_M_BSSID_CHANGED received |
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
// usage: select a range to titlecase. go to tools / script edit. run myFunction. | |
function myFunction() { | |
var selection = SpreadsheetApp.getActiveSpreadsheet().getSelection(); | |
var ranges = selection.getActiveRangeList().getRanges(); | |
for (var i = 0; i < ranges.length; i++) { | |
Logger.log('Active Ranges: ' + ranges[i].getA1Notation()); | |
var range = ranges[i]; | |
for (var y = 1; y <= range.getHeight(); y++) { | |
for (var x = 1; x <= range.getWidth(); x++) { |
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
{- | |
This library demonstrates the difference between | |
RWST (Either String) a | |
RWS (Either String a) | |
The first form outputs | |
1 + 2, after bonus = Right (103,[]) | |
5 + 10, after bonus = Right (115,["10 is a big number"]) | |
12 + 19, after bonus = Right (131,["12 is a big number","19? I might run out of toes"]) |
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 | |
# Save as ~/.config/hypr/manage-workspace.sh | |
# Function to check if a window exists in Hyprland | |
is_window_open() { | |
case "$1" in | |
"firefox") | |
hyprctl clients | grep -q "class: firefox" > /dev/null | |
;; | |
"emacs") |
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
# mengwong 20250405 | |
exec-once = ~/.config/hypr/manage-workspace.sh # Set up workspace on startup | |
# Direct application keybindings that launch or focus | |
bind = SUPER , E, exec, ~/.config/hypr/manage-workspace.sh emacs | |
bind = SUPER , F, exec, ~/.config/hypr/manage-workspace.sh firefox | |
bind = SUPER, 1, exec, ~/.config/hypr/manage-workspace.sh terminal1 | |
bind = SUPER SHIFT, 1, exec, ~/.config/hypr/manage-workspace.sh terminal1 |
OlderNewer