This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # nmtui edit eth0 | |
| # nmcli -p dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted | |
| deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted | |
| deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties | |
| deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sbt运行时经常需要下载大量的jar包,默认连接到maven官网,速度通常比较慢。在~/.sbt/下添加一个repositories文件,里面内容如下 | |
| [repositories] | |
| local | |
| osc: http://maven.aliyun.com/nexus/content/repositories/central/ | |
| typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly | |
| sonatype-oss-releases | |
| maven-central | |
| sonatype-oss-snapshots |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo yum install -y ruby ruby-devel lua lua-devel luajit \ | |
| luajit-devel ctags git python python-devel \ | |
| python3 python3-devel tcl-devel \ | |
| perl perl-devel perl-ExtUtils-ParseXS \ | |
| perl-ExtUtils-XSpp perl-ExtUtils-CBuilder \ | |
| perl-ExtUtils-Embed | |
| sudo apt-get remove vim vim-runtime gvim | |
| yum install ncurses-devel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <mirrors> | |
| <mirror> | |
| <id>alimaven</id> | |
| <name>aliyun maven</name> | |
| <url>http://maven.aliyun.com/nexus/content/groups/public/</url> | |
| <mirrorOf>central</mirrorOf> | |
| </mirror> | |
| </mirrors> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo docker ps -a | grep Exit | cut -d ' ' -f 1 | xargs sudo docker rm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker rm $(docker ps -a -q) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Detects which OS and if it is Linux then it will detect which Linux | |
| # Distribution. | |
| OS=`uname -s` | |
| REV=`uname -r` | |
| MACH=`uname -m` | |
| GetVersionFromFile() | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [repositories] | |
| local | |
| oschina: http://maven.oschina.net/content/groups/public/ | |
| oschina-ivy: http://maven.oschina.net/content/groups/public/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] | |
| typesafe: http://repo.typesafe.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext], bootOnly | |
| #sonatype-oss-releases | |
| #maven-central | |
| #sonatype-oss-snapshots |