Skip to content

Instantly share code, notes, and snippets.

View avosa's full-sized avatar
🧡
Coding

avosa

🧡
Coding
  • San Francisco, CA
View GitHub Profile
#!/bin/bash
# Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
# NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# oh my ZSH
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
@SanderTheDragon
SanderTheDragon / postman-deb.sh
Last active May 30, 2025 09:01
A shellscript to create a Postman .deb file, for simple installation on Debian-based Linux distro's. Also creates a .desktop file.
#!/bin/sh
# SPDX-FileCopyrightText: 2017-2024 SanderTheDragon <[email protected]>
#
# SPDX-License-Identifier: MIT
arch=$(dpkg --print-architecture)
echo "Detected architecture: $arch"
case "$arch" in
@chranderson
chranderson / nvmCommands.js
Last active June 1, 2025 22:54
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node
@onjin
onjin / docker-compose.yml
Created September 5, 2016 09:17
example docker compose for postgresql with db init script
postgres:
image: postgres:9.4
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
@mlanett
mlanett / rails http status codes
Last active May 20, 2025 19:08
HTTP status code symbols for Rails
HTTP status code symbols for Rails
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings.
Status Code Symbol
1xx Informational
100 :continue
101 :switching_protocols
102 :processing
@hiyosi
hiyosi / gist:3850864
Created October 8, 2012 05:27
Yaws REST API sample
-module(rest).
-include("/opt/local/lib/erlang/lib/stdlib-1.18.2/include/qlc.hrl").
-include("/opt/local/lib/yaws/include/yaws_api.hrl").
-export([out/1, addAirport/4, handle/2 ]).
-define(RECORD_TYPE, airport).
-define(RECORD_KEY_FIELD, code).