Skip to content

Instantly share code, notes, and snippets.

View haifzhan's full-sized avatar
🐡

Haifeng Zhang haifzhan

🐡
View GitHub Profile
@mxcl
mxcl / uninstall_homebrew.sh
Created August 26, 2011 11:25
Uninstall Homebrew
#!/bin/sh
# Just copy and paste the lines below (all at once, it won't work line by line!)
# MAKE SURE YOU ARE HAPPY WITH WHAT IT DOES FIRST! THERE IS NO WARRANTY!
function abort {
echo "$1"
exit 1
}
set -e
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 24, 2024 17:56
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@rob-murray
rob-murray / add_intellij_launcer
Last active July 16, 2024 23:43
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
@sunaku
sunaku / set-option
Created October 31, 2013 04:19
Listing of all tmux 1.8 options vs. window options.
set-option [-agoqsuw] [-t target-session | target-window] option value
buffer-limit number
escape-time time
exit-unattached [on | off]
quiet [on | off]
set-clipboard [on | off]
Available session options are:
assume-paste-time milliseconds
base-index index
bell-action [any | none | current]
@jackgris
jackgris / config.fish
Last active April 13, 2019 13:48
Example of config for fish shell
## Lenguaje Go
set --export GOROOT /usr/local/go
set -gx PATH /usr/local/go/bin $PATH
#set -gx PATH GOROOT/bin $PATH
set --export GOPATH $HOME/GoProjects
set -gx PATH $GOPATH/bin $PATH
## AppEngine para GO
set -gx PATH $HOME/programs/go_appengine $PATH
@geraldhumphries
geraldhumphries / Entity.java
Created November 11, 2016 22:56
Elasticsearch autocomplete impementation in JHipster
@Document(indexName = "entity")
@Setting(settingPath = "/config/elasticsearch/setting/autocomplete.json")
public class Entity implements Serializable {
@Column(name = "name")
@MultiField(
mainField = @Field(type = FieldType.String),
otherFields = {
@NestedField(
ZSH_THEME="powerlevel9k/powerlevel9k"
##########
# CONFIG POWERLEVEL
##########
POWERLEVEL9K_MODE='awesome-patched'
POWERLEVEL9K_VCS_GIT_GITHUB_ICON='\uE1AA'
@Windsooon
Windsooon / leetcode_retag.md
Last active July 24, 2024 10:40
Retag most popular Leetcode problems

osjobs

海外兔

website