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 August 21, 2024 11:40
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 <sanderthedragon@zoho.com>
#
# SPDX-License-Identifier: MIT
arch=$(dpkg --print-architecture)
echo "Detected architecture: $arch"
case "$arch" in
@chranderson
chranderson / nvmCommands.js
Last active September 20, 2024 09:06
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 September 12, 2024 15:39
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).