Skip to content

Instantly share code, notes, and snippets.

View cryptoquick's full-sized avatar
🦀
Any application that can be written in Rust, will eventually be written in Rust.

Hunter Beast cryptoquick

🦀
Any application that can be written in Rust, will eventually be written in Rust.
View GitHub Profile
@cryptoquick
cryptoquick / ContentCollection.sol
Created July 26, 2018 06:52
Solidity Smart Contract for storing IPFS hashes in Collection format. (untested, WIP)
pragma solidity 0.4.21;
// ContentCollection is meant to store hashes from IPFS in a "Collection" format (array of structs), per user.
contract ContentCollection {
// Content types / Mime Types
// 0 - deleted
// 1 - text/plain
// 2 - application/json
// 3 - image/jpeg
// 4 - image/png
@cryptoquick
cryptoquick / starship.toml
Created January 2, 2022 02:21 — forked from ryo-ARAKI/starship.toml
Starship configuration file
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = ""
[[battery.display]]
threshold = 30
style = "bold red"
@cryptoquick
cryptoquick / alacritty.yml
Created December 31, 2021 13:40
Alacritty Terminal Config
# Configuration for Alacritty, the GPU enhanced terminal emulator.
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@cryptoquick
cryptoquick / crypto_noise.md
Last active November 14, 2021 19:19
crypto research notes - noise

just some notes on some research i've been doing as an application developer looking to better understand crypto libraries and cipher suites

crypto

with a focus on noise protocol

noise adds additional higher-level constructs to common ciphers used in other cipher suites that are useful for transport encryption (replacing openssl more than libsodium)

useful concepts

Keybase proof

I hereby claim:

  • I am cryptoquick on github.
  • I am cryptoquick (https://keybase.io/cryptoquick) on keybase.
  • I have a public key ASDXCcZQ7YZY7bhAQL0sGNeO0RAjlVahzwKB-wRk6oCTjgo

To claim this, I am signing this object:

@cryptoquick
cryptoquick / fish_bind_enter.fish
Created November 28, 2019 17:19
bind enter key to repeat last command in fish shell
function bind_enter
set -l lastline $history[1]
set -l cmdline (commandline)
if test -z (string trim "$cmdline")
commandline -r $lastline
commandline -f execute
else
commandline -f execute
end
end
@cryptoquick
cryptoquick / .prettierrc
Created April 25, 2020 00:07
preferred linter config (prettier for typescript + lint script)
{
"bracketSpacing": true,
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"arrowParens": "always",
"tabWidth": 2,
"useTabs": false
}
@cryptoquick
cryptoquick / keybindings.json
Created August 10, 2019 16:19 — forked from jtanx/keybindings.json
Visual Studio Code disable MRU tab switching
[
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
}
]
@cryptoquick
cryptoquick / pbcopy-and-pbpaste-in-arch-linux.md
Created July 24, 2019 16:41
Get pbcopy and pbpaste in Arch Linux

Get pbcopy and pbpaste in Arch Linux

First you need the 'xsel' package.

$> pacman -S xsel

Then create aliases.

alias pbcopy='xsel --clipboard --input'

alias pbpaste='xsel --clipboard --output'

# ~/.config/i3/config
# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)