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
| shrink () { | |
| FILE=$(basename -- "$1") | |
| local mp4="${FILE%%.*}.mp4" | |
| docker run -v $HOME/Desktop:/import jrottenberg/ffmpeg:3.3-alpine -i /import/$FILE /import/mp4ed/$mp4 | |
| } |
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
| v1Measurement = (tables=<-, measurement) => | |
| tables | |
| |> filter(fn: (r) => r._measurement == measurement) | |
| v1Fields = (tables=<-, fields=[]) => | |
| if length(arr: fields) == 0 then | |
| tables | |
| else |
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
| local Label(name, desc, color) = { | |
| apiVersion: 'influxdata.com/v2alpha1', | |
| kind: 'Label', | |
| metadata: { | |
| name: name | |
| }, | |
| spec: { | |
| description: desc, | |
| color: color | |
| } |
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
| [ | |
| { | |
| "apiVersion": "influxdata.com/v2alpha1", | |
| "kind": "Bucket", | |
| "metadata": { | |
| "name": "rucket_11" | |
| }, | |
| "spec": { | |
| "description": "bucket 1 description" | |
| } |
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
| apiVersion: influxdata.com/v2alpha1 | |
| kind: Bucket | |
| metadata: | |
| name: rucket_11 | |
| spec: | |
| description: bucket 1 description | |
| retentionRules: | |
| - type: expire | |
| everySeconds: 3600 |
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 | |
| # Fix up the key repeat issues on MacOS Sierra. Need the key repeats for VIM! | |
| defaults write NSGlobalDomain KeyRepeat -int 2 | |
| defaults write NSGlobalDomain InitialKeyRepeat -int 15 | |
| defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false | |
| # Finder should show all .files | |
| defaults write com.apple.finder AppleShowAllFiles YES |
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
| alias srcz='source ~/.zshrc' | |
| alias vimz='vim ~/.zshrc' | |
| whoseport () { | |
| lsof -i ":$1" | grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn} LISTEN | |
| } |
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
| # Path to your oh-my-zsh installation. | |
| export ZSH=$HOME/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-zsh is loaded. | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| # ZSH_THEME="powerlevel9k/powerlevel9k" | |
| ZSH_THEME="agnoster" | |
| # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) |
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
| [alias] | |
| co = checkout | |
| cob = co cob = co -b | |
| br = branch | |
| ci = commit | |
| cim = ci -m | |
| st = status | |
| fap = fetch --all --prune | |
| unstage = reset HEAD -- | |
| last = log -1 HEAD |
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
| package main | |
| import ( | |
| "context" | |
| "github.com/graymeta/mf2/services/data_api/metrics" | |
| ) | |
| func main() { | |
| var svc SVC |