Skip to content

Instantly share code, notes, and snippets.

View confluencepoint's full-sized avatar
🏳️
Focusing

confluencepoint confluencepoint

🏳️
Focusing
View GitHub Profile
@343max
343max / README.md
Last active October 8, 2021 11:32
HammerSpoon script to toggle the mic in google meet meeting in chrome
  • get hammersponn: brew install --cask hammerspoon
  • drop the file into yout init.lua dir
  • import & bind in your init.lua:
local toggleGoogleMeetMic = require('google-meet-mic')
hs.hotkey.bind({"shift"}, "F16", toggleGoogleMeetMic)
#!/bin/bash
# Update homebrew
CYAN=$(tput setaf 6)
RESET=$(tput sgr0)
echo "${CYAN}Updating homebrew and local base of available packages and versions...${RESET}"
brew update
@kaelri
kaelri / obsidian-dataview-project-cards.css
Last active April 9, 2022 04:22
Obsidian Project List
.project-cards {
margin: 2em 0;
}
.project-card {
margin: .5em 0;
/* border: 1px solid #444; */
background: hsla(0, 0%, 0%, .1);
padding: .5em .5em .5em 2em;
position: relative;
@import Darwin;
@import ObjectiveC;
@import CloudKit;
extern bool GEOConfigGetBOOL(int feature, void* something);
// Hooks feature flags in a resigned Maps.app to return true.
// Usage:
// clang -shared -fmodules -o libmaps_inject.dylib maps_inject.m \
// "$(xcrun
@tempelmann
tempelmann / Add shadow to window screenshow.applescript
Last active August 29, 2022 16:17
An Acorn (macOS) script to add a drop shadow to screenshots of shadow-less windows
-- This script uses Acorn (tested with version 6.6.4)
-- to add a light border around a window screenshot.
--
-- Screenshots (without the huge macOS shadows) are made by shift-cmd-4, then space bar,
-- then option-click on window (see https://apple.stackexchange.com/a/120017/17533)
--
-- Before use, you need to create a Preset Filter for this, once:
-- With an image opened, use from menu: Filter / Stylize / Drop Shadow…
-- Set its options as you prefer (e.g. X/Y offset 0, Blur Radius 2, Opacity 80%),
-- then save it by clicking the gear icon, choose "Save Filter Preset…" and
@RoyalIcing
RoyalIcing / init.lua
Last active November 20, 2023 03:48
My Hammerspoon config
-- Runs using the open source Mac app https://www.hammerspoon.org
-- Install Hammerspoon, and then copy this Gist into a file at ~/.hammerspoon/init.lua
require("hs.ipc")
hs.ipc.cliInstall()
local math = require("hs.math")
currentSpeech = nil
@macosxguru
macosxguru / obsidian 2020-11-24.css
Last active May 28, 2021 07:45
Obsidian Theme (iA Writer theme modified)
:root {
--quattro-font: 'Operator Mono', 'Operator Mono', monospace;
--font-monospace: 'Operator Mono', 'Operator Mono', monospace;
--default-font: -apple-system, BlinkMacSystemFont, var(--font-monospace);
}
.theme-light {
--background-code: #edeeee;
--background-code-preview: #f0f0f0;
--background-preview: #fcfcfc;
@brainno722
brainno722 / README.md
Last active July 25, 2024 01:50
Medium widget with circle assets

Circle info widgets

Instructions

  1. Install Scriptable for iOS
  2. Copy/Paste the code into a new file
  3. Adjust colors/font
  4. Add the script to a widget (medium)
  5. It should appear similar to the screenshots

Transparent/no background

const apiUrl = "https://pass.telekom.de/api/service/generic/v1/status"
let widget = await createWidget()
widget.backgroundColor = new Color("#777777")
if (!config.runsInWidget) {
await widget.presentSmall()
}
Script.setWidget(widget)
Script.complete()
@drhisham-code
drhisham-code / karabiner.edn
Created June 3, 2020 01:23
mouse karabiner
{:main [{:des "mb3-layer"
:rules [
;; set the action for double press first
[{:pkey :button3} [:!Sgrave_accent_and_tilde :slash ] ["mb3-q" 1] ]
;; set the variable initializer for single press,longpress and allow pass throw on doublepress ?
;;[{:pkey :button3} [["mb3-layer" 1]["mb3-q" 1]{:pkey :button3}] nil
[{:pkey :button3} [["mb3-layer" 1]["mb3-q" 1]] nil
{:afterup ["mb3-layer" 0]
:alone {:pkey :button3}
:delayed {:invoked ["mb3-q" 0] :canceled ["mb3-q" 0]}