defaults write TeXShop ResetSourceTextColorEachTime YES
しかし,これでバグがでることもあるようなので注意.
参照:
http://pages.uoregon.edu/koch/texshop/version.html
This blog covers various topics from technical tweaks to latest in computational linguistics, Artificial Intelligence, Machine Learning and Wed Data Mining.
sudo ntpdate ntp.ubuntu.com
Install a loopback network adapter
A loopback network adapter is kind of a “virtual network adapter”: it acts as a normal network adapter, but you don’t have to install any physical hardware to use it. It is only usable on the PC it’s installed on (other PCs can’t connect to it).
Configure the Microsoft Loopback Adapter
Since the loopback adapter won’t have a DHCP server to ask for an IP address, we need to configure an IP address manually.
Create or edit the LMHOSTS file
192.168.100.100 servernamehereConfigure PuTTY
At last, we have to tell PuTTY to create an SSH tunnel from the loopback connection to our home server. I assume you already have a PuTTY saved session to connect to your home server.
To confirm that everything is working, connect to your home server with the saved session in PuTTY. Click Start - Run and enter “\\servernamehere\sharenamehere”. Depending on your Samba setup, you may have to enter a username and password. Done!
Background information a.k.a. Frequently Asked Questions
Why do I have to install an extra loopback adapter? Can’t I use the adapter that’s already in my PC?
Yes, in fact you could use the adapter that’s already in your PC. But… you would still have to disable the Client for Microsoft Networks and File and Printer Sharing. That means you won’t be able to use any other shares besides your home shares. Not very practical. An extra adapter allows you to have Microsoft Networking enabled on your normal network connection and use your home shares simultaneously with other (work, school, …) shares.
Do I really need the LMHOSTS file?
No, you don’t. You could refer to the IP address as well (e.g. connect to “\\192.168.100.100\sharenamehere”). But I wanted the solution to be transparant, whether I’m at home or not. If I use “\\servernamehere\sharenamehere” at home, then I want to use it anywhere else as well (or else I have to remember too many things). That’s what the LMHOSTS file is for.
=============================================
Above post was copied from here just in case the original post get vanished!
To set putty access without passwords, copy your private key (id_dsa) from the remote machine to the local machine. Open puttygen and load this key. Save this key in putty format without a passphrase. In Putty select ssh->auth and specify this file. Also connection->auto-login name and specify the user.
<Location /svn >
DAV svn
SVNPath /var/svn/repos
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/passwords
<LimitExcept GET PROPFIND OPTIONS REPORT>
Require valid-user
</LimitExcept>
<Location\ > sudo /etc/init.d/apache2 force-reloadAuthType Basic AuthName "Subversion Repository" AuthUserFile /etc/apache2/passwords Require valid-user set up BASIC authentication as follows. sudo htpasswd -cb /etc/apache2/passwords USERNAME PASSWD sudo /etc/init.d/apache2 force-reload To see whats on SVN do a list: svn list svn+ssh://user@server/home/svn/repos Tortoise SVN This tool provides a shell script in Windows explorer so that we can easily checkout, import, or update a folder with an SVN repository in a remote machine. I will describe how to use Tortoise with svn+ssh on Windows using Putty. download and install tortoise from here. http://tortoisesvn.tigris.org/ Installation is fairly simple. Requires a restart on Xp after installation. Create a tunnel using putty. First create a key using putty keygen. You can either convert an existing private key or create a private/public key pair from the scratch by doodling some random movements. Now load the private key by double clicking. This should load they key to putty agent and the agent should appear as an icon in the Windows system tray. Now open putty and create an SSH connection to the remote server as follows: Give the HOST name (alternatively the IP), specify a name in the saved sessions box, in the connection->Data provide your username in the "Auto-login username". Now save the session, load it and open it. Now right click on any windows explorer window (in a directory) and in the pop-up menu select TortoiseSVN->Repo-broweser and type the following the url box: svn+ssh://username@server/home/svn/repos This will show you all the modules uploaded to the SVN server. If you are in Linux, then when you try to use svn+ssh then it will always ask you to type your password. To avoid doing this add your id_dsa.pub and/or id_rsa.pub public keys to authorized_keys and authorized_keys2 files by doing cat id_rsa.pub >> authorized_keys2
By writing the following line to .screenrc in $HOME you can change number of lines that are stored in the scrolling buffer.
h - Move the cursor left by one character j - Move the cursor down by one line k - Move the cursor up by one line l - Move the cursor right by one character 0 - Move to the beginning of the current line $ - Move to the end of the current line. G - Moves to the specified line (defaults to the end of the buffer). C-u - Scrolls a half page up. C-b - Scrolls a full page up. C-d - Scrolls a half page down. C-f - Scrolls the full page down.
defscrollback 5000
For nvidia GPUs do the follwing: nvidia-smi -l 1