Skip to content

Instantly share code, notes, and snippets.

View KalikaKay's full-sized avatar

Kalika Kay Curry KalikaKay

View GitHub Profile
@KalikaKay
KalikaKay / .bash_profile
Last active September 10, 2020 13:49
Thinkful Github Aliases
# ~/.bash_profile
#-----------------------
# Quick access to files and folders
#-----------------------
alias tp= [path to thinkful projects folder]
# ----------------------
# Git Aliases
# ----------------------
alias g='git'

Update 7/28/2019: An updated version of this guide for Ubuntu Server 18.04 LTS is now available. Feel free to check it out.

Mounting VirtualBox shared folders on Ubuntu Server 16.04 LTS

This guide will walk you through steps on how to setup a VirtualBox shared folder inside your Ubuntu Server guest. Tested on Ubuntu Server 16.04.3 LTS (Xenial Xerus)

Steps:

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
@KalikaKay
KalikaKay / Cloud9 Google App.md
Created May 8, 2018 18:28
Cloud9 Google App

I keep returning to Loyall's website for support.

Putting this here for safe keeping. Assumpgions:

  • You're ready to deploy a website. I my case, it's Hugo.
  • You're on a Cloud9 base workspace environment.

Download and install the Google Cloud SDK

  • Make sure Python 2.7.x (and not higher) is installed
@KalikaKay
KalikaKay / Hugo on Cloud9.md
Last active May 8, 2018 18:40
Hugo on Cloud 9 as taught to me by Loyall

I keep going back to Loyall, and I will as long as it's there, but I need a quick start.

  • Start a blank workspace on Cloud9
  • run $ go version
    • install it if there's no version installed.
  • run C9 ~/.profile add the following lines at the bottom of file.
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
@KalikaKay
KalikaKay / Linux Bash Cloud9 Aliases
Created May 8, 2018 17:59
I keep forgetting my aliases, openalias is most important.
alias ls='ls --color=auto -F'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias less="less -R "
alias mysqldump="mysqldump --user=$C9_USER --host=$IP"
/* Match for numbers in zip */
db.zips.aggregate([
{$project: { first_char: {$substr : ["$city",0,1]}, population: "$pop" } },
{$group:{ _id: "$first_char", summation: {$sum:"$population"}}},
{$match: { _id: { $in: [ "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" ] } } } ,
{$group:{ _id: null, total: {$sum:"$summation"}}}
@KalikaKay
KalikaKay / PythonIterating.py
Last active June 13, 2016 13:10
PyCharming
import pymongo
import sys
# Connect
connection = pymongo.MongoClient("mongodb://localhost")
# Fondle
db = connection.school
grades = db.school.students
@KalikaKay
KalikaKay / show-branch.md
Last active May 13, 2016 19:39 — forked from githubteacher/show-branch.md
Add your Git branch to your command prompt, adjust font or colors.

To show your active Git branch in your command prompt, you will need to do the following:

  • If you are on a Mac, you can add the code shown below to your .bash_profile file.
  • If you are on Linux, you will add the code shown below to the end of your .bashrc file.
  • If you are on Windows, you probably aren't reading this because Windows provides this behavior by default.

Option I:

######Uncomment force_color_prompt=yes######