Place in ~/.config/fish/functions/gwco.fish
Run gwco <branch name> for an existing branch .
if no worktree exist for this branch, it'll checkout the branch in the current worktree.
If one exist already, git refuses to switch to that branch. The script finds the worktree location and changes directory to that worktree.
Place the file in the chrome folder of the firefox profile in use.
The relevant profile folder can be found by typing about:support in the browser bar.
Doc on browser toolbox for debugging: https://firefox-source-docs.mozilla.org/devtools-user/browser_toolbox/index.html Community support: https://www.reddit.com/r/FirefoxCSS/
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
| /** Data Link Configuration: | |
| { | |
| "dataLink": { | |
| "details.scheduledActivity": { | |
| "match": [ | |
| "cameras.$any.id" | |
| ], | |
| "window": [ | |
| 86400, | |
| 0 |
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
| const LAG = 3 * 60 * 1000; | |
| const GAP = 10 * 1000; | |
| dataReceived = function () { | |
| }; | |
| function startTime() { | |
| return new Date(Date.now() - LAG).toISOString(); | |
| } |
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
| let count = 0; | |
| const INTERVAL = 120 * 1000; | |
| const INTERVAL_VARIATION_RANGE = 120 * 1000; | |
| const LAG = Math.round((1 + Math.random() * 10) * 60 * 1000); | |
| const LIMIT = 1000; | |
| const EMPLOYEES = [ | |
| "Mana Kujawa", | |
| "Carissa Ledesma", | |
| "Beverly Murrow", | |
| "Melodi Lovick", |
- Add
switch_automatic.pyto~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunchwith:
#!/usr/bin/env python3
import asyncio
import iterm2
async def main(connection):
async with iterm2.VariableMonitor(connection, iterm2.VariableScopes.APP, "effectiveTheme", None) as mon:
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
| var argv = require('yargs') | |
| .usage('Usage: $0 -n num -q url[?queryString] [-m method] [-b body]') | |
| .demandOption(['n', 'q']) | |
| .argv; | |
| var axios = require('axios'); | |
| promises = [] | |
| Promise.all([...Array(parseInt(argv.n, 10))].map((data, index) => { | |
| let p |
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
| var express = require("express"), | |
| app = express(); | |
| var bodyParser = require('body-parser'); | |
| function echo(req, res, next) { | |
| const queryStr = Object.entries(req.query).map(([key, val]) => `${key}=${val}`).join('&'); | |
| const bodyStr = req.body ? JSON.stringify(req.body) : null; | |
| const response = req.method + ' ' + req.url + (queryStr && queryStr.length ? '?' + queryStr : '') + '\n' + (bodyStr ? bodyStr + '\n' : ''); | |
| console.log(response); | |
| res.end(response); |
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 | |
| for i in "$@" | |
| do | |
| case $i in | |
| -p=*|--password=*) | |
| PASSWORD="${i#*=}" | |
| ;; | |
| -s=*|--servername=*) | |
| SERVERNAME="${i#*=}" |
I hereby claim:
- I am hiestaa on github.
- I am rguyot (https://keybase.io/rguyot) on keybase.
- I have a public key ASC0-5kzdP4c6U26wLFOIfwhtLH6aiqvkMyl9Z_gdy1LLAo
To claim this, I am signing this object:
NewerOlder