Skip to content

Instantly share code, notes, and snippets.

@reyx
reyx / metadata.json
Last active January 9, 2024 05:34
Rifa
{"valueParameterInfo":[],"timeParameterDescriptions":[],"roleDescriptions":[],"contractType":"Other","contractShortDescription":"Unknown","contractName":"Unknown","contractLongDescription":"We couldn't find information about this contract","choiceInfo":[]}
@reyx
reyx / posdtgres.sh
Last active July 23, 2021 15:28
Create local docker postgres database
sudo docker volume create pgdata
sudo docker run --name reyx-postgres \
-e POSTGRES_PASSWORD=supersecret \
-v pgdata:/var/lib/postgresql/data \
-p 5432:5432 -d postgres
@reyx
reyx / .bash_profile
Last active July 18, 2021 19:58
Personal .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
#!/bin/sh
#
# Orinally made by Lovell Fuller for sharp
# https://github.com/lovell/sharp
#
# Usage:
# curl -s https://gist.githubusercontent.com/reyx/33ed9b153263b9ceb1d510da99a21916/raw/a0bf080e7df46bc619e839f1bce6b14d8e907f10/libvips-installer.sh | sudo bash -
#
sc.exe create MongoDB binPath= "c:\Program Files\MongoDB\Server\3.2\bin\mongod.exe --service --config=\"c:\Program Files\MongoDB\Server\3.2\bin\mongod.cfg\"" DisplayName= "MongoDB" start= "auto"