Skip to content

Instantly share code, notes, and snippets.

View stig's full-sized avatar
🏠
Working from home

Stig Brautaset stig

🏠
Working from home
View GitHub Profile
@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active April 27, 2024 01:22
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://
@jcouyang
jcouyang / ansi-term.ti
Last active March 30, 2016 18:08
fix weird charactor 4m in emacs ansi-term
eterm-color|Emacs term.el terminal emulator term-protocol-version 0.96,
#
# The code here is forced by the interface, and is not subject to
# copyright, constituting the only possible expression of the algorithm
# in this format.
#
# When updating this file, etc/e/eterm-color should be regenerated by
# running "make e/eterm-color" in the etc directory.
# Any change to this file should be done at the same time with a
# corresponding change to the TERMCAP environment variable in term.el.
@rkuhn
rkuhn / Build.scala
Created August 24, 2013 10:38
A small experiment to integrate akka.Main with sbt-start-script (applying https://github.com/sbt/sbt-start-script/pull/43). sbt> start-script will generate a runner which executes the Actor `org.example.Main`
import sbt._
import sbt.Keys._
import com.typesafe.sbt.SbtStartScript.{startScriptForClassesSettings => startScript}
import com.typesafe.sbt.SbtStartScript.StartScriptKeys._
object AkkaProjectInScalaBuild extends Build {
lazy val akkaProjectInScala = Project(
id = "akka-project-in-scala",
base = file("."),
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 1, 2024 03:34
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname