Skip to content

Instantly share code, notes, and snippets.

View kfrankc's full-sized avatar

Frank Chen kfrankc

View GitHub Profile
http://www.imagemagick.org/discourse-server/viewtopic.php?t=28306
@kfrankc
kfrankc / solution.md
Last active September 16, 2019 04:14
git still shows files as modified even after adding to .gitignore

Most likely .gitignore is working, but it still tracks the files because they were already in the index. Solution:

git rm -r --cached <filename>
@kfrankc
kfrankc / gist:3f90d5cd6f8af40e839a24671654ace5
Created June 2, 2019 23:58
Port forwarding to allow Jupyter Notebook access on AWS
ssh -i thisIsmyKey.pem -L 8000:localhost:8888 ubuntu@ec2–34–227–222–100.compute-1.amazonaws.com
@kfrankc
kfrankc / create_env.txt
Created April 17, 2019 02:16
Anaconda creating environments
conda create -n myenv
source activate myenv
conda install numpy pandas scipy matplotlib seaborn scikit-learn
@kfrankc
kfrankc / amend_ci.txt
Created July 29, 2017 16:17
Amend a commit message - time travel
git commit --amend --no-edit --date="Fri Nov 6 20:00:00 2015 -0600"
% Author: Frank Chen
% Class: CS 260 UCLA Winter 2017
function [accuracy] = logistic_r(X, Y)
features = mnrfit(X, Y);
p = mnrval(features, X);
[m, i] = max(p, [], 2);
accuracy = sum(i == Y) / size(Y, 1);
end

Keybase proof

I hereby claim:

  • I am kfrankc on github.
  • I am kfrankc (https://keybase.io/kfrankc) on keybase.
  • I have a public key whose fingerprint is CC8F D213 330C F229 339E EA04 5893 B411 168F 2FF3

To claim this, I am signing this object:

Sublime Text has an option to let users SFTP to a remote server. Here are the instructions:
Setting up SFTP in SublimeText
1. Download SublimeText : http://www.sublimetext.com/2
2. Install: https://packagecontrol.io/installation
3. Restart SublimeText
4. Open SublimeText
5. Preferences > Package Control > Type: Install Package > Hit Enter
6. Search: “SFTP” > Select the first package: “Sublime SFTP”. Download.
7. Make a folder in Desktop or any of your local directories. Drag it into your Sublime Text.
Click File > SFTP/FTP > Setup Server… and a new file will open up in Sublime. Name the file sftp-config.json and copy the following: