Code Monkey home page Code Monkey logo

cheatsheet's Introduction

CheatSheet

A cheat sheet for computer science!

Linux guide

Through terminal

ssh [email protected] hostname -> a machine exit ->to exit ssh hpc0

hostname top -> how many resource use

ssh -J ssh.csbsju.edu hpc0 (proxy jump)

Create python virtual environment python3 -m venv env ls

On Verizon

ssh hpc0

How to activate python virtual env source env/ -> activate python source env/bin/activate.csh pip install TensorFlow pip install —upgrade pip pip install —upgrade setup tools pip install opencv-python

pip install TensorFlow

Transfer data

cp [filename] [filename2] scp [filename] [email protected]:Desktop/folder name scp -r [name of the folder] [name of the place] scp -r work [email protected]:anna/work rsync -avz

Ex: rsync -avz system ssh.csbsju.edu: anna/system Z: compress before copy Send them: And un compress them A: the whole folder v: show the copy

View tensor board: tensorboard —logdir=logs/

Github

Git init Git remote add origin [link]

Note: In src folder: java -Xlint:unchecked controller/ThreadClass.java java controller/ThreadClass 1024

Add branch git branch #to list all the branch git branch <branch_name> # to add branch git checkout <branch_name> #to switch to branch

Pull from another branch git pull origin

Git diff my branch master — myfile.cs

How to fork after accidentally clone https://admcpr.com/what-the-fork/

How to remove git upstream

git remote rm upstream

Rails

Add a new fieldname to existing data table: rails generate migration add_fieldname_to_tablename fieldname:string Destroy controller Rails destroy controller controllerName

C++

  • Solved the filesystem error with the c_cpp_properties_json AWS:
  • Ruby on Rails: Edit AWS credentials: EDITOR=vim rails credentials:edit

Quaternion python -m pip install --upgrade --force-reinstall numpy-quaternion

For iDock every time (in Ubuntu)

export PATH=$PATH:/home/mythanhthaonguyen/idock/bin/Linux In the folder contain (debug.conf file) idock -- config debug.conf

Linux remove file forcefully rm -rf dirname

cheatsheet's People

Contributors

annanguyen99 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.