63 "leader tortoisegit 64 :nnoremap <leader>g :!start cmd /c "C:\"Program Files"\TortoiseGit\bin\TortoiseGitProc.exe /command:commit %:p"<cr>
Thursday, March 17, 2016
VIMRC to launch tortoisegit
Thursday, January 28, 2016
SVN Compilation
I found this handy guide on managing your own SVN server for getting out of pickles like uploading a video into your SVN repository: how to roll back a revision with svnadmin. To summarize:
* svnadmin dump tmp
* svnadmin create /path/to/new
* svnadmin load /path/to/new < tmp
It worked perfectly (though I only had 14 revisions).
Will be transitioning to git shortly, once I can figure out how to emulate SVN behavior (file based, instead of repository based). Or maybe find a compromise between the two systems, but it doesn't seem very promising.
This person uploaded a very handy method of transitioning the repository from SVN to git using TortoiseGit. It was exactly what I needed and very reproduceable. To summarize:
* TortoiseGit clone svn://IP_LOC
** disable SVN sub-options
* create bare git repo
* add bare git repo as "remote push"
* push TortoiseGit's previously exported SVN repository
* svnadmin dump tmp
* svnadmin create /path/to/new
* svnadmin load /path/to/new < tmp
It worked perfectly (though I only had 14 revisions).
Will be transitioning to git shortly, once I can figure out how to emulate SVN behavior (file based, instead of repository based). Or maybe find a compromise between the two systems, but it doesn't seem very promising.
This person uploaded a very handy method of transitioning the repository from SVN to git using TortoiseGit. It was exactly what I needed and very reproduceable. To summarize:
* TortoiseGit clone svn://IP_LOC
** disable SVN sub-options
* create bare git repo
* add bare git repo as "remote push"
* push TortoiseGit's previously exported SVN repository
Friday, December 25, 2015
RaspberryPi Heatsink
This might become a series because I am trying to find some results.
Electronics temperature is not an exact science. Yes failures happen when temperatures hit an absolute max, but you can still have stress on electronics based on how long it is “hot”. For example: a device operating at temperature_ambient=25C will outlast a device operating at ambient=25C.
My philosophy is to keep things as cool as conveniently possible. Which is why the Pi is frustrating at times. There’s no heatsink. It’s a chip in the center of the board and that’s it. No fins, no large pads radiating heat away.
And it’s not cool to your finger either. It’s surprisingly warm to touch. Of course the next step is to find the temperature of the device. Try running a command like this:
/opt/vc/bin/vcgencmd measure_temp
My apartment is currently ~16C. My Pi0 stashed in the near vicinity of an access point is reading 32.0C. It’s not a perfect measurement because the accuracy of the chip varies in 0.5C steps. I will have a cron job set up eventually and clean up the data in python for the next blog post. Either way, it is still has a temperature rise of 15C above ambient.
I have another Pi that is in my living room (where I am getting the ambient temperature measurement). This Pi has a heatsink with the Arctic Silver Thermal Adhesive product and a small aluminum heatsink from Alibaba. It has temperature readings of 29.3C, still temperature rise of 15C above ambient.
Some factors that "may" be related:
* Pi1 is running a CUPS server.
* Pi1 is crammed into a corner next to the printer.
* Pi2 has no peripherals plugged into it
Questions left open:
* Pi1 has thermal adhesive, maybe it's not applied well?
* Pi1 has adhesive on the plastic body "chip top", maybe thermal resistance from the die to the top is too high to get benefits?
* How is the measurement done for the temperature in the Pi's?
* Is it worth having some temperature sensors to monitor the temperature in my apartment to have a good baseline to compare the Pi measurement to?
Electronics temperature is not an exact science. Yes failures happen when temperatures hit an absolute max, but you can still have stress on electronics based on how long it is “hot”. For example: a device operating at temperature_ambient=25C will outlast a device operating at ambient=25C.
My philosophy is to keep things as cool as conveniently possible. Which is why the Pi is frustrating at times. There’s no heatsink. It’s a chip in the center of the board and that’s it. No fins, no large pads radiating heat away.
And it’s not cool to your finger either. It’s surprisingly warm to touch. Of course the next step is to find the temperature of the device. Try running a command like this:
/opt/vc/bin/vcgencmd measure_temp
My apartment is currently ~16C. My Pi0 stashed in the near vicinity of an access point is reading 32.0C. It’s not a perfect measurement because the accuracy of the chip varies in 0.5C steps. I will have a cron job set up eventually and clean up the data in python for the next blog post. Either way, it is still has a temperature rise of 15C above ambient.
I have another Pi that is in my living room (where I am getting the ambient temperature measurement). This Pi has a heatsink with the Arctic Silver Thermal Adhesive product and a small aluminum heatsink from Alibaba. It has temperature readings of 29.3C, still temperature rise of 15C above ambient.
Some factors that "may" be related:
* Pi1 is running a CUPS server.
* Pi1 is crammed into a corner next to the printer.
* Pi2 has no peripherals plugged into it
Questions left open:
* Pi1 has thermal adhesive, maybe it's not applied well?
* Pi1 has adhesive on the plastic body "chip top", maybe thermal resistance from the die to the top is too high to get benefits?
* How is the measurement done for the temperature in the Pi's?
* Is it worth having some temperature sensors to monitor the temperature in my apartment to have a good baseline to compare the Pi measurement to?
Sunday, November 15, 2015
HP Pavilion 15t - Disassembly Tips (disk drive)
I've put the dimensions in for HP part "DVD/CD REWRITABLE DRIVE", model DU-8A6SH, part number 700577-HC2
My intent is to replace it with a hard drive "caddy", such as these links from amazon:
http://www.amazon.com/Drive-Unibody-MacBook-SuperDrive-Replacement/dp/B0058AH2US/
http://www.amazon.com/Adapter-Special-Designed-macbook-SuperDrive/dp/B0057V95M6/
Thursday, November 12, 2015
USB3 Ethernet Adapter
Just bought Vantec CB-U300GNA based on this review. I have need of one because my old laptops only have 10/100 ethernet and the standard RJ45 plug gets stuck in my computer jack. I worry about the 100Base-T since I am paying for 50Mbps connection speed. For $18, it's not too risky an investment and should give me plenty of overhead for my 50Mbps internet connection and any other sharing I want to do behind my ethernet hub.
One thing nice about having a USB ethernet module is being able to have one single MAC address to access my router's administration page (that is, blacklist all other MAC addresses to keep it relatively secure). Now whenever I need to access my router's administrative page, I plug in any computer to that USB ethernet adapter and I'm off and running.
The adapter claims to have wake-on-LAN, which is a feature I always wanted to test out. Never tried waking a computer up over USB, but there's always a first for everything? Will update in the future if I ever get around testing it.
One thing nice about having a USB ethernet module is being able to have one single MAC address to access my router's administration page (that is, blacklist all other MAC addresses to keep it relatively secure). Now whenever I need to access my router's administrative page, I plug in any computer to that USB ethernet adapter and I'm off and running.
The adapter claims to have wake-on-LAN, which is a feature I always wanted to test out. Never tried waking a computer up over USB, but there's always a first for everything? Will update in the future if I ever get around testing it.
Handy Window Scripts
Here's my script that I run on my computers to standardize my home experience:
@echo off rem map router's network share to the same letter drive on every computer net use z: \\192.168.1.1\volume1\local_share rem create shortcut targetting my plex server web interface rem this assumes that you will only have one user echo start iexplore.exe http://192.168.1.254:32400/web/index.html >.\Desktop\launch_plex.bat
Friday, November 6, 2015
Converting Windows Laptop to 2k8r2 Server
I got this idea from the official blog. I can think of an improvement though: why not just copy over those directories before installing the new OS? That way, you don't have to deal with partitions.
If you can install an OS, then you have a media that is accessible to load all the drivers (even better to make a disk of just the bare drivers, even if only one instance of time).
The steps would be something like this:
If you can install an OS, then you have a media that is accessible to load all the drivers (even better to make a disk of just the bare drivers, even if only one instance of time).
The steps would be something like this:
- Create/Obtain installation media for target OS.
- Transfer contents of C:\Windows\System32\DriverStore\FileRepository to the same media type as target OS installation media.
- Boot from installation media of new OS.
- Install the new OS
- Go to device manager of new OS and for each missing driver, load from exported data of step 2
I will try this in the future and let you know how it goes. Right now, I have a Lenovo Z580 Win7 machine that I only access via VNC: no point in dedicating resources on the machine for a GUI that's never used, right?
Subscribe to:
Posts (Atom)
