Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"time"
"github.com/go-redis/redis"
"github.com/kristoff-it/redis-memolock/go/memolock"
)
func main () {
@dimroc
dimroc / history.zsh
Created April 15, 2020 12:19
History options for zsh
#
# Sets history options.
#
# Authors:
# Robby Russell <robby@planetargon.com>
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
HISTFILE="$HOME/.zhistory"
HISTSIZE=10000000
@dimroc
dimroc / init.vim
Created February 18, 2020 19:39
nvim init.vim script to load a regular .vimrc
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
@dimroc
dimroc / remotepaste.md
Created February 13, 2020 20:49 — forked from burke/remotepaste.md
This sets up keybindings in tmux that allow you to copy/paste to/from your OS X clipboard from tmux running inside an SSH connection to a remote host. Partially borrowed from http://seancoates.com/blogs/remote-pbcopy

Local (OS X) Side

~/Library/LaunchAgents/pbcopy.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
     <key>Label</key>
     <string>localhost.pbcopy</string>
diff --git a/core/internal/cltest/cltest.go b/core/internal/cltest/cltest.go
index 829c221e9..192686737 100644
--- a/core/internal/cltest/cltest.go
+++ b/core/internal/cltest/cltest.go
@@ -142,6 +142,7 @@ type TestApplication struct {
wsServer *httptest.Server
connectedChannel chan struct{}
Started bool
+ stoppedOnce bool
}
package main
import "fmt"
func main() {
fmt.Println("append gotcha\n")
// not copying
arr1 := []int{1, 2, 3}
for i, _ := range arr1 {
diff --git a/explorer/package.json b/explorer/package.json
index f4ab26f7..883c9fd3 100644
--- a/explorer/package.json
+++ b/explorer/package.json
@@ -53,6 +53,7 @@
"@types/express": "^4.16.1",
"@types/jest": "^24.0.11",
"@types/material-ui": "^0.21.6",
+ "@types/mime-types": "^2.1.0",
"@types/node": "^11.11.3",

Keybase proof

I hereby claim:

  • I am dimroc on github.
  • I am dimroc (https://keybase.io/dimroc) on keybase.
  • I have a public key ASCc3JOAcj8yfjiENaPu69P66KMcwhMSOZEup5z1PAtUMQo

To claim this, I am signing this object:

diff --git a/web/keys_controller.go b/web/keys_controller.go
index c76ba719..091ad270 100644
--- a/web/keys_controller.go
+++ b/web/keys_controller.go
@@ -18,16 +18,22 @@ type KeysController struct {
// "<application>/keys"
func (c *KeysController) Create(ctx *gin.Context) {
request := models.CreateKeyRequest{}
+
// TODO: Change CreateKeyRequest to only have one password