- page 9

my minimum dot bashrc file

my minimum dot bashrc file

Here is one of the few minimum configurations I like to have on my personal .bashrc file export PS1="\[\033[0;36m\]{\[\033[0;50m\]\w/\[\033[0;36m\]} \[\033[0;32m\]what now… \[\033[0;39m\]" Ok, mac doesn’t have a proper root user, but I often run 2 virtual machines at the same times and one of them…

Continue reading →

Find the least cached URIs

Find the least cached URIs

To improve your cache hit ratio, the best thing to do is to use varnishtop to see the URIs that are the most often fetched from the back end server varnishtop -i TxURL

Continue reading →

Fetch the data through Varnish

Fetch the data through Varnish

GET -Used http://localhost:80/ HEAD and GET are the same lwp-request tool. HEAD replies with HTTP headers, while GET returns everything. In this case: -U prints the request headers -s prints the response status code which usually is “200 OK” or “404 File not found” -e…

Continue reading →

Add and append text to a file

Add and append text to a file

There are different ways, I like is: echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn append text to a file echo "ServerName localhost-appended" | sudo tee -a /etc/apache2/conf.d/fqdn

Continue reading →

How to disable Adobe Updater on OS X Mountain Lion (updated)

How to disable Adobe Updater on OS X Mountain Lion (updated)

Go to LaunchAgents folder cd ~/Library/LaunchAgents Remove or rename com.adobe.ARM.whatevernumberisthis.plist you can also check what it contains to see if it is the right one. –Updated Only manually deleting file “com.adobe.AAM.Updater-1.0.plist”: – open finder – go to folder ~/Library/LaunchAgents – delete file com.adobe.AAM.Updater-1.0.plist – restart…

Continue reading →

Network Connections and network protocol statistics – netstat

Network Connections and network protocol statistics – netstat

netstat -nltp where -n Displays active TCP connections, however, addresses and port numbers are expressed numerically and no attempt is made to determine names. -l Show only listening sockets. (These are omitted by default.) -t Display only TCP connections. -p Shows connections for the protocol…

Continue reading →

Bash: TAB completion to be case-insensitive

Bash: TAB completion to be case-insensitive

If you want the TAB completion to be case-insensitive, like it is in MS-DOS for instance, you can in your ~/.inputrc set: set completion-ignore-case On Now, BASH will auto-correct the case of files and directories for you.

Continue reading →

Get a list of all the cron jobs on a Debian based system

Get a list of all the cron jobs on a Debian based system

I’m sure you have one time or another wondered where all the magic is happening on your servers. Anything from how and why the logs are rotated, why your desktop icon says “20 packages can now be updated”, how is the Apache cache cleaned when…

Continue reading →

Why use 64bit?

Why use 64bit?

…and the world strarted to turn to 64 bits OSs. The popular argument is that a 64bit operating system could address more memory than the ~3.5GB 32bit OSs stop at. However, with Linux, this is no argument as the bigmem patch (now called PAE) can…

Continue reading →

Java Web Service doesn’t start — Bad installation. No JRE found in configuration file

Java Web Service doesn’t start — Bad installation. No JRE found in configuration file

Got some problem with the lastest java? After the last java upgrade Apple removed a Java plugin from all Mac-compatible Web browsers. Java Web Start splash screen process exiting ….. Bad installation. No JRE found in configuration file Apple has updated Xprotect anti-malware, stopping all…

Continue reading →

Page 9 of 16 ← First ... 7 8 9 10 11 ... Last →