This file contains 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
GFORCE => git add -A && git commit --amend -C HEAD && git push -f | |
c => git_index | |
cbg => git rev-parse --verify HEAD | simple_clipboard | |
g => git | |
ga => git_add_shortcuts | |
gaa => git add -A | |
gap => git add -p | |
gash => git stash | |
gasha => git stash apply | |
gashl => git stash list |
This file contains 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
{ | |
"title": "Double tap keypad_enter to double tap fn (start dictation.) Single tap for keypad_enter after a short delay (250ms.)", | |
"rules": [ | |
{ | |
"description": "This rule solves a problem with the Microsoft Surface Ergonomic Keyboard. The `Fn` key can't be used to start dictation, since it only toggles an internal state on and off, and it does not actually send any keypress event. This rule allows you to start dictation by double tapping the keypad enter key, which will send Fn twice. If you only press the keypad enter key once, it will send the original enter key after a short delay (250ms).", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"name": "keypad_enter pressed", |
This file contains 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
esphome: | |
name: rangehood | |
includes: | |
- rangehood_button_leds.h | |
esp32: | |
board: nodemcu-32s | |
framework: | |
type: arduino |
This file contains 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
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com/sun/jna/Platform | |
at com.semaphore.os.UIHandlerManager.getSystemUIHandler(UIHandlerManager.java:22) | |
at com.semaphore.TinyUmbrella.<clinit>(TinyUmbrella.java:131) | |
at java.lang.Class.forName0(Native Method) | |
at java.lang.Class.forName(Unknown Source) | |
at com.semaphore.TinyLoader.loadTiny(TinyLoader.java:248) | |
at com.semaphore.TinyLoader.access$000(TinyLoader.java:29) | |
at com.semaphore.TinyLoader$1.run(TinyLoader.java:42) | |
at java.awt.event.InvocationEvent.dispatch(Unknown Source) | |
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) |
This file contains 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 | |
set -eo pipefail | |
CURRENT_DIR="$(realpath $(dirname "$0"))" | |
ROOT_DIR="$(realpath $CURRENT_DIR/..)" | |
# https://gitlab.com/docspring/docspring | |
PROJECT_ID="1908805" | |
GITLAB_TOKEN=$(cat $ROOT_DIR/.gitlab-api-token) |
This file contains 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
group :development, :test do | |
gem 'spring-commands-rspec', require: false | |
gem 'spring-watcher-listen', require: false | |
gem 'spring', require: false | |
# ... | |
end |
This file contains 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
/* base32 */ | |
/* | |
Copyright (c) 2011, Chris Umbel | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
This file contains 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
require 'fileutils' | |
# Warning: The following deploy task will completely overwrite whatever is currently deployed to Heroku. | |
# The deploy branch is rebased onto master, so the push needs to be forced. | |
desc "Deploy app to Heroku after precompiling assets" | |
task :deploy do | |
deploy_branch = 'heroku' | |
remote = 'heroku' | |
deploy_repo_dir = "tmp/heroku_deploy" |
This file contains 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
Hint: This person is an actor. | |
____ ____ | |
=> e | |
There were no e's! | |
- Guesses: e | |
____ ____ | |
=> t | |
There were 2 t's! |
This file contains 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
// Used for loop that waits for pending jobs to be processed. | |
LoopList={"1", "2", "3", "4", "5", "6", "7", "8", "9", "10", | |
"11", "12", "13", "14", "15", "16", "17", "18", "19", "20", | |
"21", "22", "23", "24", "25", "26", "27", "28", "29", "30"}; | |
templateID = "<TEMPLATE ID>"; | |
apiTokenId = "<API TOKEN ID>"; | |
apiTokenSecret = "<API TOKEN SECRET>"; | |
base64EncodedLogin = zoho.encryption.base64Encode(apiTokenId + ":" + apiTokenSecret); |