Skip to content

Instantly share code, notes, and snippets.

📺
console logging

Arian Acosta arianacosta

📺
console logging
Block or report user

Report or block arianacosta

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@arianacosta
arianacosta / bin.js
Last active May 17, 2019 — forked from zkat/index.js
npx is cool
View bin.js
#!/usr/bin/env node
console.log('this is bin!')
@arianacosta
arianacosta / .bash_profile_custom
Last active Mar 16, 2019
Custom macOS Terminal
View .bash_profile_custom
# Usage: Place this file in `~/.bash_profile_custom` and append 'source ~/.bash_profile_custom` to `~/.bash_profile`
# On macOS terminal, import the profile `solarized_dark_custom.terminal` and on the advanced tab, declare as `xterm-256color`
# For other terminals get the theme from: https://ethanschoonover.com/solarized/
#### Custom Prompt ####
# Customize ls output
alias ls='ls -Fh'
# Get last 2 directories
View keybase.md

Keybase proof

I hereby claim:

  • I am arianacosta on github.
  • I am arianacosta (https://keybase.io/arianacosta) on keybase.
  • I have a public key ASASbMiFpSnDsP71kcMcWdQjLO__mQlzLxM54j7Cv-FPgAo

To claim this, I am signing this object:

@arianacosta
arianacosta / print_style
Created Jul 15, 2017
Print colored text in a bash script
View print_style
#!/bin/bash
# prints colored text
print_style () {
if [ "$2" == "info" ] ; then
COLOR="96m";
elif [ "$2" == "success" ] ; then
COLOR="92m";
elif [ "$2" == "warning" ] ; then
@arianacosta
arianacosta / resize-swap.sh
Created Mar 2, 2017
Bash Script to Resize Swap File in Linux
View resize-swap.sh
#!/bin/bash
echo "====== Current Swap ======"
sudo swapon -s
echo "====== Turning Off Swap ======"
sudo swapoff /swapfile
echo "====== Allocating 4GB Swap ======"
sudo fallocate -l 4G /swapfile
echo "====== Making Swap ======"
sudo mkswap /swapfile
echo "====== Setting Permissions to Root Only ======"
You can’t perform that action at this time.