- Articles
84 results
-
Linux
stat filename lsof -PiTCP -sTCP:LISTEN| grep 8080# -F是指定分隔符$ awk -F:'{print$1,$3,$6}'/etc/passwd# 指定多个分隔符 awk -F'[;:]' awk -F:'{print$1 -
Mysql
mysql select version(); SET PASSWORD FOR'root'@'localhost'= PASSWORD('MyNewPass'); cp/usr/local/mysql/support-files/my-default.cnf/etc/my.cnf mysqlshow procedure status; mysqlshow databases; mysqluse somedb; mysqlshow tables; SHOW CREATE TABLE tbl -
Rcom tips
mysql SELECT* FROM FEEDVIDEO WHERE FEED_STORY_ID=113294656\G; Receiver className="org.apache.catalina.tribes.transport.nio.NioReceiver" address="10.90.45.104" port="4000" selectorTimeout="100" maxThreads="6"//rt/apache/cache How to -
Maven
#-U means force update of dependencies mvn clean install -U cd baseman mvn eclipse:eclipse mvn dependency:sources mvn dependency:tree settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http -
Ios
below step works for Xcode 4.6.2 in Xcode click project icon, in TARGETS direct edit target name, such as: change change ipadcn to cn_ipad, in Build Settings -- Package, change the Product Name -
Make
TARGETS: PREREQUESTS [Tab]COMMAND... 或者 make -f fileName targetName objects=$(wildcard*.o)$(subst ee,EE,feet on the street)## result, substitutes the string ‘fEEt on the strEEt’. dirs:= a b c d -
Java
public class Foo{ public static synchronized void methodA(){} public synchronized void methodB(){}} It's roughly equals public class Foo{ public static void methodA(){ synchronized(Foo.class){...}} public void methodB(){ synchronized(this){}}} -
Lokvin Wiki
ansible - ansible mongodb - mongo db -
Install fedora22
Disabled SELinux first sudo vi/etc/selinux/config SELINUX=disabled su root chmod+w/etc/sudoers echo'${username} ALL=(ALL) NOPASSWD:ALL'/etc/sudoers chmod -w/etc/sudoers exit or# echo "xxx ALL=(ALL -
Mac
sudo visudo## add you need keep env variable Defaults env_keep+= "http_proxy" sudo printenv# you can find http_proxy avaliable in sudo http://docs.oracle.com/javase/7/docs/webnotes/install/mac/mac-jdk -
Git
git config --global user.name "Yufei Ren" git config --global user.email "yufei.ren@thomsonreuters.com" git config --list ssh-keygen -t rsa -C "email@address" git remote set-url origin new_git_url Add -
Mac init
user: yufei System Preference - Keyboard - Shortcut - App Shortcuts - (F10 Sleep), (F9 Shut Down...) -
Install fedora21
Disabled SELinux first sudo vi/etc/selinux/config SELINUX=disabled su root chmod+w/etc/sudoers echo'${username} ALL=(ALL) NOPASSWD:ALL'/etc/sudoers chmod -w/etc/sudoers exit or# echo "xxx ALL=(ALL -
Eclipse
find Eclipse.app/ -name "eclipse.ini" Eclipse.app/Contents/Eclipse/eclipse.ini change -Xms768m, -Xmx1024m -Duser.name=Lokvin -
Linux setup cory
CentOS release 6.7 (64) [root@AY13111514211915241fZ/]# useradd -m appdev [root@AY13111514211915241fZ/]# passwd appdev shell su shell chmod+w/etc/sudoers shell echo'${username} ALL=(ALL) NOPASSWD:ALL'/etc/sudoers shell chmod -w/etc -
Elastic
http://localhost:9200/_plugin/head/ access browser tab. -
Rcom setup
shell su shell chmod+w/etc/sudoers shell echo'${username} ALL=(ALL) NOPASSWD:ALL'/etc/sudoers shell chmod -w/etc/sudoers shell exit sudo vi/etc/selinux/config SELINUX=disabled shell sudo vi/etc -
Svn
svn help subcommand#eg. svn help swtich svn switch http://10.90.0.160/svn/mobileapps-spotlight/branches/i24 spotlight/ svn co http://10.90.0.160/svn/mobileapps-news-pro-html/branches/2.0 -
Vim
yum install vim touch~/.vimrc function! DoPrettyXML() " save the filetype so we can restore it later let l:origft=&ft set ft= " delete the xml header if it exists. This will " permit us to surround -
Tools
https://github.com/atom/atom fiddler[] a http debug tools, it can use as a proxy to trace http request, http://fiddler2.com/ - official site, http://en.wikipedia.org/wiki/Fiddler_(software) - in wiki -
Install ubuntu 14.04
root@cory:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04 LTS Release: 14.04 Codename: trusty shell su shell chmod+w/etc/sudoers shell echo'${username} ALL -
Nodejs
sudo npm update -g npm mkdir node_test npm init curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh| bash wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.26.1 -
Http
method request-URL version headers entity-body GET/test/hi-there.txt HTTP/1.1 Accept:*/* Host: www.joes-hardware.com version status reason-phrase headers entity-body HTTP/1.0 200 OK Content-type -
Javascript
first example of closure: var obj= document.getElementById("main"); obj.style.border= "1px solid red"; setTimeout (function (){ obj.style.border= "none";}, 1000); second example of closure: function delayAlert(msg, time){ setTimeout(function(){ alert(msg);}, time -
Ssh tunnel
1. Imagine you’re on a private network which doesn’t allow connections to a specific server imgur.com. To get around this we can create a tunnel through a server (example.com) which can
Related Community

Terraria Wiki
games
4K
Pages20K
Images1
Video
The Official Terraria Wiki is a comprehensive resource containing information about all versions of Re-Logic's action-adventure sandbox game, Terraria.