Get-Content -Wait -Tail 10
Showing posts with label useful tips. Show all posts
Showing posts with label useful tips. Show all posts
Wednesday, October 10, 2018
PowerShell equivalent to Tail -F
Use
Labels:
powershell
,
useful tips
,
windows
Monday, May 23, 2016
Garming GPS dowload Maps to SD instead of device
Create folder
Copy the file
Run the Garming express , it should detect the SD card as a Garming GPS.
\Garmin
on the SD card.Copy the file
garmindevice.xml
from \Garmin
folder of your device into the \Garmin
folder of the SD card.Run the Garming express , it should detect the SD card as a Garming GPS.
The map files will end up on the SD card in folder \.system
and will be named gmapprom.img
, gmapprom.unl
and gmapprom.gma
. Create folder \Map
on the SD card and move these three files into it. You can then rename the files from gmapprom to any name of your choosing, but keep the .img, .unl and .gma extensions.
If your device has junction views, you will find a JCV
folder within the \.system
folder on the SD card. Move the JCV
folder and its contents into the \Garmin
folder of the SD card.
Labels:
garmin
,
gps
,
useful tips
Sunday, October 18, 2015
Chose user used by samba
Problem:
I wanted to have a samba share with guest access, and the user used by samba to write on the server to be a specific user account, so that I could also manipulate the files placed in the share.
By default the user used was nobody, and the I was having problems using the local linux account in the server to manipulated files, as it did not have the correct access rights.
The option that solved my problems was:
I wanted to have a samba share with guest access, and the user used by samba to write on the server to be a specific user account, so that I could also manipulate the files placed in the share.
By default the user used was nobody, and the I was having problems using the local linux account in the server to manipulated files, as it did not have the correct access rights.
The option that solved my problems was:
[Share]
path =
writeable = Yes
force user = # this was the line that fixed the nobody user
guest only = Yes
guest ok = yes
browseable = Yes
public = yes
hide dot files = no
Labels:
linux
,
useful tips
Thursday, September 03, 2015
How to change default application in a website in IIS
The solution to set one application as the default for when you hit a website is to change the website Physical folder, to match the application root folder.
As explained in a Server fault post.
Another hack-around is to put a index.html page in the root of the site performing the re-direct.
Using the redirect feature of ISS can cause trouble with you application, I recommend against it.
The best answer form me is:
Turns out you can edit the physical path of the Default Web Site (right click, Manage Web Site, Advanced Settings). Change that to the physical path of the app you want to be default, make sure other settings match (in my case the App Pool had to be changed), and there you go.Direct link to best reply
Labels:
asp.net
,
iis
,
useful tips
Wednesday, July 09, 2014
blogspot: how to insert code
To insert code nicely formatted in blogspot use the following code:
<pre><code> my code goes here... </code></pre>
Labels:
useful tips
emacs: saves all the backup into a single folder
A nice settings suggested in http://www.emacswiki.org/emacs/BackupDirectory to get all your backup files created by emacs in a single folder, to do this I setup the following settings:
;; Put all backups in a folder
(setq
backup-by-copying t
backup-directory-alist `(("." . "~/.emacs_saves"))
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t)
Labels:
emacs
,
settings
,
useful tips
Friday, January 10, 2014
Firefox about pages
Here is a list of the firefox about pages (from: http://lifehacker.com/232995/inside-firefoxs-about-pages)
Check also my personal Firefox options here.
- about:config
- about:cache
- about:config
- about:blank
- about:newtab
- about:home
- about:healthreport
- about:permissions
- about:plugins
- about:telemetry
Check also my personal Firefox options here.
Labels:
Firefox
,
useful tips
Wednesday, November 13, 2013
Disable message "This site has requested that you identify yourself with a certificate:" in Thunderbird
Thunderbird as one(not the only one) annoying feature that it keeps asking you to chose a certificate to identify yourself.
The text in the box is: "This site has requested that you identify yourself with a certificate:", then there is a drop-down menu to chose among your certificates, then there is a checkbox that says "Remember this decision", then the buttons "OK" and "Cancel".
Very nice, too bad it asks you for input every single time it needs to authenticate... this is real annoying, it seems the checkbox is there to taunt, because it feels Thunderbird cannot remember your decision...
The solution is simple, but you need to open the config editor "about:config":
Search for the entry "security.default_personal_cert" and change it to "Select Automatically" (default value is "Ask Every Time").
This information was collected from mozillazine forum http://forums.mozillazine.org/viewtopic.php?t=652927
Very nice, too bad it asks you for input every single time it needs to authenticate... this is real annoying, it seems the checkbox is there to taunt, because it feels Thunderbird cannot remember your decision...
The solution is simple, but you need to open the config editor "about:config":
- Linux: Edit/Options -> "Advanced" section -> "General" tab -> "Config editor" button.
- Windows: Tools/Options -> "Advanced" section -> "General" tab -> "Config editor" button.
- Mac: Thunderbird->Preferences...->"Advanced" section -> "General" tab -> "Config editor" button.
Search for the entry "security.default_personal_cert" and change it to "Select Automatically" (default value is "Ask Every Time").
This information was collected from mozillazine forum http://forums.mozillazine.org/viewtopic.php?t=652927
Labels:
annoyances
,
mail
,
Thunderbird
,
useful tips
Saturday, February 02, 2013
Burning an DMG into a USB drive using macOS X snow leopard
To burn a dmg to a usb drive, you only have to open Disk utility Select the destination partition or the origin image, right click a choose restore, then you will be lead to a dialog window were you can specify the origin and destination of the restore. Then click restore and you are done.
Simple right? But when thing simply do not work?
So I had just clicked restore and I see the message:
So I need to scan the image? Easy, in Disk utility go to Image->Scan image for restore... . Select the image you want to scan and click scan. Insert the administrator password and you are all done, right? Wrong, I got this very useful message:
What do you mean, "invalid argument" ??? I'm not using command like this is a freaking GUI!!! You should figure what arguments are to be used! Oh well, lets see the log file for some info:
And the log file says the problem was "invalid argument"! Great! Very useful! Google time.... After a bit of search I came to the website and there was a comment:
So... Snow leopard cannot scan a read/write image? Ok, sounds we are back in the right track, lets convert this sucker. To convert an image go to the Disk utility and select Images->Convert... . You get a window asking for you to select the original image, and then you are let to the window with the destination options, make sure you select the image format to read-only:
And wait... After that is done, you still need to scan the image, in Disk utility go to Image->Scan image for restore... , This time it is working:
And.... Worked!
So now I'm ready to burn the image into a USB drive... The thing I actually want to do. So I right click on the destination partition, and select Restore: Then I'm back to the dialog where I have to select restore image and destination. I press restore and this time I'm successful.
So I need to scan the image? Easy, in Disk utility go to Image->Scan image for restore... . Select the image you want to scan and click scan. Insert the administrator password and you are all done, right? Wrong, I got this very useful message:
What do you mean, "invalid argument" ??? I'm not using command like this is a freaking GUI!!! You should figure what arguments are to be used! Oh well, lets see the log file for some info:
And the log file says the problem was "invalid argument"! Great! Very useful! Google time.... After a bit of search I came to the website and there was a comment:
So... Snow leopard cannot scan a read/write image? Ok, sounds we are back in the right track, lets convert this sucker. To convert an image go to the Disk utility and select Images->Convert... . You get a window asking for you to select the original image, and then you are let to the window with the destination options, make sure you select the image format to read-only:
And wait... After that is done, you still need to scan the image, in Disk utility go to Image->Scan image for restore... , This time it is working:
And.... Worked!
So now I'm ready to burn the image into a USB drive... The thing I actually want to do. So I right click on the destination partition, and select Restore: Then I'm back to the dialog where I have to select restore image and destination. I press restore and this time I'm successful.
One more thing...
Another thing, apparently the destination partition has to be a "Mac OS Extended (Journaled)", and the partition table has to be "GUID Partition Table". The partition type will be asked of you by the Disk utility when you create the partition, but for the partition type, you have to click the button "Option..." and then select the GUID partition type:
Labels:
macos
,
rant
,
Sofware problems
,
useful tips
Thursday, January 03, 2013
Free audiobooks
You can use google to find free audiobooks from audible, the search string is:
$0.00 -Excerpt -Interview -Chapter -Extract -Speech -Sample -"A Conversation" -"This is Audible" site:audible.comor you can follow the link here. Tip from lifehacker.
Labels:
audiobooks
,
google search
,
useful tips
Friday, July 06, 2012
Here are some useful shortcut keys for the open/save dialog window of macos X:
Spacebar – View the selected item in Quick Look
Command+D – Selects Desktop as the destination
Command+Shift+H – Sets the Home directory as the destination
Command+Shift+A – Sets Applications directory as the destination
Command+Shift+. – Toggle invisible items
Command+Shift+G – Bring up Go To Folder window
Tab – Tab key auto-completes paths and file names from the aforementioned Go To window
Command+R – Open the selected item in the Finder
Command+F – Move the cursor to the Find field
Command+. – Close the Open/Save dialog window
Labels:
keyboard shortcut
,
macos
,
shortcuts
,
useful tips
Monday, May 07, 2012
I was getting annoying messages in the console tty1-8:
[34895.467445] jme 0000:02:00.5: eth0: UDP Checksum error [34896.613044] jme 0000:02:00.5: eth0: UDP Checksum error [34896.620748] jme 0000:02:00.5: eth0: UDP Checksum error [34896.727510] jme 0000:02:00.5: eth0: UDP Checksum error [34896.933031] jme 0000:02:00.5: eth0: UDP Checksum errorI tried to fix it playing with the system log
/etc/rsyslog.d/50-default.conf
, but that was not it, I could get a copy of the stream to a file, but not prevent the stream from flooding my screen. The solution was the kernel printk
definition. running teh line sudo sysctl kernel.printk="3 4 1 7"
it stopped the messages, looking around this variable is defined in /etc/sysctl.conf
, so I uncommented the line
# Uncomment the following to stop low-level messages on console kernel.printk = 3 4 1 3This solved my problem permanently. NEW SOLUTION from http://theamdara.blogspot.fr/2014/01/linux-jme-micron-udp-checksum-error.html
ethtool -K eth0 rx off
Labels:
linux
,
useful tips
Thursday, March 29, 2012
emacs: Cycle windows backward
To cycle windows in emacs you can use the shortcut
c-x o
that executes the command other-window
.
Now to cycle windows in the reverse order you need to execute the command other-window
with argument -1 (other-window
accepts integer as argument, being the number of windows to jump).
So I added this code to my .ecmas
file:
;; cycle windows in reverse order
(defun prev-window ()
(interactive)
(other-window -1)
)
(global-set-key (kbd "C-x p") 'prev-window)
This will create the command prev-window
and assign the shortcut C-x p
to this function.
Note: C-x p
is by default assigned to narrow-to-page
, a function I never used...
This Idea I found it originally in Quora.com
Labels:
emacs
,
keyboard shortcut
,
useful tips
Resize windows in emacs
To easily resize windows in emacs I added the following key shortcuts:
;; * \author Pedro Parracho
;; Resizing windows using alt-arrow
(global-set-key (kbd "\033[1;9D") 'shrink-window-horizontally) ;;alt-left: code ^[[1;9D
(global-set-key (kbd "\033[1;9C") 'enlarge-window-horizontally) ;; alt-right: code ^[[1;9C
(global-set-key (kbd "\033[1;9A") 'shrink-window) ;; alt-up: code ^[[1;9A
(global-set-key (kbd "\033[1;9B") 'enlarge-window) ;; alt-down: code ^[[1;9B
Now alt-arrow
will change the window size by a step.
Labels:
emacs
,
keyboard shortcut
,
useful tips
Monday, March 26, 2012
GNU screen renumber windows
When working a long time with a screen session, you might get holes in the screen numbering, to change the number of the current windows do
There is a script that will renumber all the windows in a session, you can find it in http://brainscraps.wikia.com/wiki/Renumbering_GNU_Screen_Windows
ctrl-a : number <number>
There is a script that will renumber all the windows in a session, you can find it in http://brainscraps.wikia.com/wiki/Renumbering_GNU_Screen_Windows
Labels:
screen
,
useful tips
Thursday, March 22, 2012
Go to next unread message in Mail via keyboard
A long standing annoyance in Mail is that there is no keyboard shortcut to skip to the next message.
I found in hints.macworld.com a apple script that will jump to the next unread mail on
I changed the script to jump to the last item and not the first, as I like to read my messages by chronological order.
ctr-n
.
I changed the script to jump to the last item and not the first, as I like to read my messages by chronological order.
try
tell application "Mail"
activate
tell the front message viewer
set unreadMessages to (the messages whose ¬
read status is false) as list
if (count of unreadMessages) is not 0 then
set selected messages to {the last item of unreadMessages}
else
beep
end if
end tell
end tell
on error error_message
beep
display dialog "Error looking for next unread message: " & ¬
return & return & error_message buttons {"OK"} default button 1
end try
To have this script activated, instead of copying it to the mail script folder as suggested in the article, I created a new service with "no input
" in "Mail.app
" that will run the apple script on the top.
Saved the service, and added the shortcut ctrl-n
in the keyboard settings.
Labels:
keyboard shortcut
,
macos
,
useful tips
Wednesday, March 21, 2012
SvnX hurdles
I was having 1 problem common to svn and svnx. The problem was the message:
"Killed by signal 15."
I found out that this was something that happens for svn > 1.6.6.
The solution according to old.nabble.com is to add the option
The other problems was
My line in
I found out that this was something that happens for svn > 1.6.6.
The solution according to old.nabble.com is to add the option
-p
to the ssh command in your svn configuration file ~/.subversion/config
The other problems was
/usr/bin/xauth: error in locking authority file .Xauthority
this got solved by adding the option -x
My line in
~/.subversion/config
is now:ssh = $SVN_SSH ssh -o ControlMaster=no -q -x
Labels:
Recipes
,
Sofware problems
,
useful tips
Friday, January 06, 2012
Controling airport from command line
I wrote two small scripts to control the power status of the mac airport.
- Power cycle the airport
- Toggle the power status
#/bin/bash
# This script does a power cycle of the airport
# Pedro Parracho <pedro.parracho@gmail.com>
/usr/sbin/networksetup -setairportpower airport OFF
/usr/sbin/networksetup -setairportpower airport ON
#/bin/bash
# This script toogles the power status of the airport
# Pedro Parracho <pedro.parracho@gmail.com>
airportPower=$(/usr/sbin/networksetup -getairportpower airport| cut -d' ' -f4 | tr '[:lower:]' '[:upper:]')
if [ $airportPower = "ON" ]
then
echo airport is ON, turning it OFF
/usr/sbin/networksetup -setairportpower airport OFF
else
echo airport is OFF, turning it ON
/usr/sbin/networksetup -setairportpower airport ON
fi
Labels:
macos
,
useful tips
Friday, December 02, 2011
Fine grain control for volume and brightness
MacOS offers a way to get a finer control on the steps of increase and decrease of volume and screen brightness, to access the fine grain mode, also press the keys shift+option when changing the sound or brightness level.
Labels:
macos
,
useful tips
Subscribe to:
Posts
(
Atom
)