Recent Updates Toggle Comment Threads | Keyboard Shortcuts

  • harlekwinblog 3:08 pm on September 29, 2011 Permalink | Reply
    Tags: ,   

    Switching betwen two directories in Bash 

    The pushd command remembers the last pushd’ed from directory
    #cd /
    #pushd /home
    #pwd
    /home
    #pushd
    #pwd
    /

    But quicker is “~-” which will simply take you back to the last working directory
    #cd /
    #cd /home
    #pwd
    /home
    #cd ~-
    #pwd
    /

     
  • harlekwinblog 4:08 pm on September 14, 2011 Permalink | Reply
    Tags:   

    New Directory shortcut in Windows 

    To create a new directory in a Windows Explorer session quickly use:
    [CNTL][SHIFT]N

     
  • harlekwinblog 11:33 am on September 13, 2011 Permalink | Reply
    Tags:   

    Technorati claim: 2UEBSXJWSZGW 

    2UEBSXJWSZGW claims my blog.

     
  • harlekwinblog 11:31 am on September 13, 2011 Permalink | Reply
    Tags:   

    2UEBSXJWSZGW
    Adding my blog to technorati.

     
  • harlekwinblog 7:14 am on September 13, 2011 Permalink | Reply
    Tags: encryption, gpg,   

    Symmetric Keys. with GPG for Windows.
    Password encrypt a file with the command:
    gpg -vc [FILENAME]
    And decrypt it with the command:
    gpg -vd [FILENAME]

     
  • harlekwinblog 8:19 am on September 6, 2011 Permalink | Reply
    Tags: , , osx,   

    Flushing DNS:

    • Windows: ipconfig /flushdns
    • Linux: service nscd restart
    • Mac OS X: dscacheutil -flushcache
     
  • harlekwinblog 10:49 am on August 18, 2011 Permalink | Reply
    Tags:   

    Is Linux 32b or 64b?
    uname -m

    • 32b
      i386
      i686

    • 64b
      x86_64
     
  • harlekwinblog 2:07 pm on August 2, 2011 Permalink | Reply
    Tags: , ,   

    giving permission to read a specific file using sudo:
    visudo
        #Support Staff
        Cmnd_Alias = LOGS = /bin/cat /var/log/squid/access.log, /bin/zcat /var/log/squid/access.log.[0-9].gz
        %logaccess ALL (all) NOPASSWD: LOGS

    This gives access to the Squid Logs to anyone in the logaccess group.
    (sudo zcat /var/log/squid/access.log.1.gz) | grep "microsoft.com"

    Advertisement
     
  • harlekwinblog 2:55 pm on June 16, 2011 Permalink | Reply
    Tags: , ,   

    Proxy.Pac files can be tricky. The way to identify the client is:
    myIPAddress()
    But this fails occassionally, reporting the LocalHost address instead, especially in Linux.
    Additionally, on Windows 7 multiple enabled interfaces can lead to the wrong one reporting back.
    There is no fix but DISABLING the inappropriate interfaces and re-enabling them can work.

     
  • harlekwinblog 12:27 pm on June 13, 2011 Permalink | Reply
    Tags:   

    In vim you can sort all lines by reverse numerics using the command:
    :sort! n

     
c
Compose new post
j
Next post/Next comment
k
Previous post/Previous comment
r
Reply
e
Edit
o
Show/Hide comments
t
Go to top
l
Go to login
h
Show/Hide help
shift + esc
Cancel