Skip to content

Instantly share code, notes, and snippets.

View kauffmanes's full-sized avatar

Emily Kauffman kauffmanes

View GitHub Profile
@kauffmanes
kauffmanes / wp-permissions.sh
Last active December 11, 2017 12:41
Setting folder and file permissions for a Wordpress site
#!/bin/bash
#folders
sudo find <dir> -type d -exec chmod 755 {} \;
#files
sudo find <dir> -type f -exec chmod 644 {} \;
#wp-config
sudo chmod 600 wp-config.php
@kauffmanes
kauffmanes / clear-git-cache.sh
Created December 1, 2017 16:02
Clear git cache
git rm -r --cached .
git add .
git commit -am 'cleared git cache'
git push
@kauffmanes
kauffmanes / showdots.sh
Created December 11, 2017 16:01
Show dot files on Mac
#!/bin/bash
#show .
defaults write com.apple.finder AppleShowAllFiles YES
#hide .
defaults write com.apple.finder AppleShowAllFiles NO
#hold option/alt, right-click Finder and relaunch
@kauffmanes
kauffmanes / frontend-commands.md
Last active March 14, 2018 14:34
A growing list of my most used commands in front end development (with some hacks to make stupid things work)

Emily's List of Most Used Frontend Developer Command Line Commands

This is a growing list of the (mostly) Unix-like commands that I use the most while working on frontend projects. When I use the word "print" below, I probably mean log something to the terminal. Some commands are prefix by $ to show it's a command line command - don't actually type the $.

The Basics

Command Description Note
$ pwd Print current directory
$ ls -a Lists everything in the current directory, including hidden files (-a). This lets you makes sure you can see your .gitignore, .bashrc, etc
$ mkdir example && cd $_ Makes a new directory and immediately goes into it.
$ mkdir -p example Makes a new directory IF one of the same name doesn't already exist.
@kauffmanes
kauffmanes / client1.erl
Last active March 31, 2018 14:37
The Client application for my Erlang chat server
%% @author kauff
%% @doc @todo Add description to client1.
-module(client1).
%% ====================================================================
%% API functions
%% ====================================================================
-export([connect/0, connect/1, message/2]).
@kauffmanes
kauffmanes / serv1.erl
Last active March 31, 2018 14:38
The Server module for my Erlang homework 6
%% @author kauff
%% @doc @todo Add description to serv1.
-module(serv1).
%% ====================================================================
%% API functions
%% ====================================================================
-export([start/0, start/1, stop/1]).
%% @author kauff
%% @doc @todo Add description to client1.
-module(client1).
%% ====================================================================
%% API functions
%% ====================================================================
-export([connect/0, connect/1, send/2]).
-define(TCP_OPTIONS, [binary, {packet, 0}, {active, false}, {reuseaddr, true}]).
%% @author kauff
%% @doc @todo Add description to serv1.
-module(serv1).
%% ====================================================================
%% API functions
%% ====================================================================
-export([start/0, start/1, stop/1]).
@kauffmanes
kauffmanes / GetStarted.md
Last active April 20, 2018 00:04
Getting Started File

Getting Started

Codearena is a tool to aid in accessibility in the classroom.

Download the project from courseweb. It is a zip file consisting of two folders: codearena-api and codearena-client. Codearena-api is the Erlang server and codearena-client is the web interface.

Database Setup

This application uses CouchDB to store the code arenas. To set this up, create a database called arenas.

Dependencies:

  • couchdb (installed and running)
@kauffmanes
kauffmanes / install_anaconda.md
Last active November 3, 2025 06:47
Install Anaconda on Windows Subsystem for Linux (WSL)

Thanks everyone for commenting/contributing! I made this in college for a class and I no longer really use the technology. I encourage you all to help each other, but I probably won't be answering questions anymore.

This article is also on my blog, too.

Note: $ denotes the start of a command. Don't actually type this.

Steps to Install Anaconda on Windows Ubuntu Terminal

  1. Install WSL (Ubuntu for Windows - can be found in Windows Store). I recommend the latest version (I'm using 18.04) because there are some bugs they worked out during 14/16 (microsoft/WSL#785)
  2. Go to https://repo.continuum.io/archive to find the list of Anaconda releases
  3. Select the release you want. I have a 64-bit computer, so I chose the latest release ending in x86_64.sh. If I had a 32-bit computer, I'd select the x86.sh version. If you accidentally try to install the wrong one, you'll get a warning in the terminal. I chose `Ana