Skip to content

Instantly share code, notes, and snippets.

@fpcMotif
fpcMotif / viewimage.user.js
Created September 26, 2018 06:58 — forked from bijij/viewimage.user.js
Userscript version of the View Image chrome extension
// ==UserScript==
// @name View Image
// @namespace https://github.com/bijij/ViewImage
// @version 2.0.1.1
// @description This userscript re-implements the "View Image" and "Search by image" buttons into google images.
// @author Bae Junehyeon
// @run-at document-end
// @include http*://*.google.tld/search*tbm=isch*
// @include http*://*.google.tld/imgres*
// @updateURL https://gist.githubusercontent.com/bijij/58cc8cfc859331e4cf80210528a7b255/raw/viewimage.user.js
@fpcMotif
fpcMotif / -Terminal and Oh My Zsh.md
Created September 13, 2018 08:36
OS X Terminal and Oh My Zsh configuration

Readme

  • Install Oh My Zsh
    • Add the theme file martinbuberl.zsh-theme to ~/.oh-my-zsh/themes
    • Open the configuration file ~/.zshrc (via Terminal $ ls -al and $ subl .zshrc)
      • Set theme to ZSH_THEME=martinbuberl
      • Set plugins to plugins=(bower brew git npm nyan sublime)
  • Import/Use with Terminal profile martinbuberl.terminal
  • Type upgrade_oh_my_zsh to update Oh My Zsh
  • Type touch .hushlogin to remove the "Last login" message
@fpcMotif
fpcMotif / git-import-repository.md
Created September 13, 2018 08:34 — forked from martinbuberl/git-import-repository.md
Import existing Git repository into another

Import existing Git repository into another

Folder structure before (2 separate repositories):

XXX
 |- .git
 |- (project files)
YYY
 |- .git
@fpcMotif
fpcMotif / docker-cheat-sheet.md
Created September 13, 2018 08:34
Docker Cheat Sheet

Docker Cheat Sheet

List images

$ docker images

Remove image

@fpcMotif
fpcMotif / sublime-command-line.md
Created September 13, 2018 08:33
Launch Sublime Text from the command line on OSX

Launch Sublime Text from the command line on OSX

Sublime Text includes a command line tool, subl, to work with files on the command line. This can be used to open files and projects in Sublime Text, as well working as an EDITOR for unix tools, such as git and subversion.

Requirements

  • Sublime text 2 or 3 installed in your system within Applications folder

Setup

@fpcMotif
fpcMotif / installCaffe.sh
Created September 11, 2018 04:51 — forked from xydrolase/installCaffe.sh
Install Caffe on NVIDIA Jetson TK1 LT4 21.2 - CUDA 6.5
#!/bin/sh
# Install and compile Caffe on NVIDIA Jetson TK1 Development Kit
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install libprotobuf-dev protobuf-compiler gfortran \
libboost-dev cmake libleveldb-dev libsnappy-dev \
libboost-thread-dev libboost-system-dev \
libboost-filesystem-dev \
libatlas-base-dev libhdf5-serial-dev libgflags-dev \
libgoogle-glog-dev liblmdb-dev -y
@fpcMotif
fpcMotif / Install LT4 21.1.md
Created September 6, 2018 16:37 — forked from jetsonhacks/Install LT4 21.1.md
Install LT4 21.1 on Jetson TK1

For best results, you should read through the official NVIDIA documentation found on:

https://developer.nvidia.com/linux-tegra-rel-21

In particular, the Quick Start Guide.

For this process you will need:

  • A host desktop or laptop computer running Ubuntu Linux 12.04 is officially recommended. In practice, this may be a virtual machine, I have used VirtualBox in the past. Also, I've successfully flashed from Ubuntu Linux 14.04. Your mileage may vary.
  • Micro USB cable provided with the Jetson TK1 kit
  • Jetson TK1 and power supply
name description version
change case change the case of selected text
dynaclip basic web clipper for dynalist.io
file properties open properties for the selected file 1.1
google time range 🔎 switch between the various time ranges (hour, day, week, month, year)
goto open folder 📂 show a list of open folders when youre at a "save as" or "open" dialog 1.3
lightshot+ various improvements for the lightshot screenshot app 0.4.3
[linker](h
@fpcMotif
fpcMotif / git_toturial
Created August 9, 2018 06:23 — forked from tangzheng1900/git_toturial
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库
library(TSP)
library(tspmeta)
coords.df <- data.frame(long=runif(40, min=0, max=100), lat=runif(40, min=0, max=100))
coords.mx <- as.matrix(coords.df)
# Compute distance matrix
dist.mx <- dist(coords.mx)
# Construct a TSP object