<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://old.andunix.net/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://old.andunix.net/feed.php">
        <title>andunix.net</title>
        <description></description>
        <link>https://old.andunix.net/</link>
        <image rdf:resource="https://old.andunix.net/_media/favicon.ico" />
       <dc:date>2026-06-03T23:41:13+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/mac_command_line_audio"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/oracle/resize_instance"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/oracle/spfile_and_pfiles"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/javascript/autosubmit"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mac/hostname"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/script/iconv"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/linux/gnome/cursor-size"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/mysql/user/password"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/cryptography/openssl/print_key"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/linux/debian/cleanup_packages"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/sysadmin/tomcat_upload_limit"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/code/git"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/hg"/>
                <rdf:li rdf:resource="https://old.andunix.net/info/sysadmin/ssh"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://old.andunix.net/_media/favicon.ico">
        <title>andunix.net</title>
        <link>https://old.andunix.net/</link>
        <url>https://old.andunix.net/_media/favicon.ico</url>
    </image>
    <item rdf:about="https://old.andunix.net/info/mac/mac_command_line_audio">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-10T21:06:49+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Command Line Audio</title>
        <link>https://old.andunix.net/info/mac/mac_command_line_audio</link>
        <description>Command Line Audio

Change Mac Audio Volume from Command Line

To change the audio volume from remote of my Mac at home, I needed a command line tool which I can use via ssh. I've found it here: OS X Daily - Change the system volume from the command line. It's as easy as


sudo osascript -e &quot;set Volume 10&quot;</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/oracle/resize_instance">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-01T20:38:48+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Oracle: Resize Instance</title>
        <link>https://old.andunix.net/info/oracle/resize_instance</link>
        <description>Oracle: Resize Instance

In this example, the SGA will be resized to 6GB and the PGA to 2GB.

First, change the SPFile:


ALTER SYSTEM SET pga_aggregate_target = 2G SCOPE=SPFILE;
ALTER SYSTEM SET sga_target = 6G SCOPE=SPFILE;


Then, (optionally) export the SPFile to a PFile:</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/oracle/spfile_and_pfiles">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-01T20:36:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Oracle: SPFile and PFiles</title>
        <link>https://old.andunix.net/info/oracle/spfile_and_pfiles</link>
        <description>Oracle: SPFile and PFiles

Oracle reads its parameters from a file called “SPFile”.
You can't change it directly as it's a binary file.
Additionally, Oracle can read the parameters from “PFiles”, which are regular text files.

Create PFile

To export the SPFiles to a PFile, just enter the following in SQLplus:</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/javascript/autosubmit">
        <dc:format>text/html</dc:format>
        <dc:date>2013-03-14T08:22:05+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Automatic Submission of a Form if an Element is changed</title>
        <link>https://old.andunix.net/info/javascript/autosubmit</link>
        <description>Automatic Submission of a Form if an Element is changed

To submit the form if an element changes, you can use


onChange=&quot;this.form.submit()&quot;


Example


&lt;form action=&quot;index.jsp&quot; method=&quot;post&quot;&gt;
  &lt;select onChange=&quot;this.form.submit()&quot;&gt;
    &lt;option&gt;please select a value&lt;/option&gt;
    &lt;option value=&quot;1&quot;&gt;one&lt;/option&gt;
    &lt;option value=&quot;2&quot;&gt;two&lt;/option&gt;
    &lt;option value=&quot;3&quot;&gt;three&lt;/option&gt;
  &lt;/select&gt;
&lt;/form&gt;</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mac/hostname">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-25T08:53:23+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Set a Mac's Hostname</title>
        <link>https://old.andunix.net/info/mac/hostname</link>
        <description>Set a Mac's Hostname

To set the permanent hostname, use the scutil utility (enter the desired hostname instead of the_hostname):


sudo scutil --set HostName the_hostname


Credits

	*  &lt;http://osxdaily.com/2010/09/06/change-your-mac-hostname-via-terminal/&gt;

mac osx cli sysadmin</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/script/iconv">
        <dc:format>text/html</dc:format>
        <dc:date>2013-02-04T22:17:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Change Encoding with iconv</title>
        <link>https://old.andunix.net/info/script/iconv</link>
        <description>Change Encoding with iconv

Convert Single File
iconv -f iso-8859-1 -t utf-8 -o OUTPUT.txt INPUT.txt
Converts INPUT.txt from iso-8859-1 to utf-8 and writes it to OUTPUT.txt.

Convert All Files in a Directory


for f in $(find . -type f)
do
  iconv -f iso-8859-1 -t utf-8 -o ${f}_$$_TEMP ${f} \
  &amp;&amp; mv ${f}_$$_TEMP ${f}
done</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/linux/gnome/cursor-size">
        <dc:format>text/html</dc:format>
        <dc:date>2016-07-12T09:43:10+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Cursor Size</title>
        <link>https://old.andunix.net/info/linux/gnome/cursor-size</link>
        <description>Cursor Size

To change the mouse cursor size in GNOME, use this command. Substitute the value 32 with your prefered size.


gsettings set org.gnome.desktop.interface cursor-size 32


desktop gnome linux mouse cursor settings</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/mysql/user/password">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-17T09:09:25+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>MySQL: Change Password</title>
        <link>https://old.andunix.net/info/mysql/user/password</link>
        <description>MySQL: Change Password

	*  Replace {passwd} with the password of the user.
	*  Replace {user} with the name of the user.


GRANT USAGE ON *.* TO '{user}'@'%' IDENTIFIED BY '{passwd}';
FLUSH PRIVILEGES;


Or you can alternatively use the following:


UPDATE mysql.user SET Password=PASSWORD('{passwd}') WHERE User='{user}';
FLUSH PRIVILEGES;</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/cryptography/openssl/print_key">
        <dc:format>text/html</dc:format>
        <dc:date>2015-01-29T09:15:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Print Information about a Key</title>
        <link>https://old.andunix.net/info/cryptography/openssl/print_key</link>
        <description>Print Information about a Key
openssl x509 -inform DER -in testkey.cer -noout -text
Informations about the used arguments from the OpenSSL man page:

	*  x509: Certificate display and signing utility.
	*  -inform DER: This specifies the input format normally the command will expect an X509 certificate but this can change if other options such as -req are present. The DER format is the DER encoding of the certificate and PEM is the base64 encoding of the DER encoding with header and footer lines …</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/linux/debian/cleanup_packages">
        <dc:format>text/html</dc:format>
        <dc:date>2014-04-28T09:01:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Cleanup Packages</title>
        <link>https://old.andunix.net/info/linux/debian/cleanup_packages</link>
        <description>Cleanup Packages

Purge uninstalled Packages

If a package is removed, it is only uninstalled, but the configuration remains on the system.
This is a good thing, as you are able to reinstall the package and have it configured with the old configuration.
But if you want to cleanup this old stuff, you can ge a list of uninstalled (but not purged) packages with this command:</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/sysadmin/tomcat_upload_limit">
        <dc:format>text/html</dc:format>
        <dc:date>2017-01-04T09:33:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Increase the Tomcat Upload Limit</title>
        <link>https://old.andunix.net/info/sysadmin/tomcat_upload_limit</link>
        <description>Increase the Tomcat Upload Limit

The “manager”-App of the Tomcats has a limit of 50MiB. This limit is defined in the file WEB-INF/web.xml within the “manager”-App:


    &lt;multipart-config&gt;
      &lt;!-- 50MB max --&gt;
      &lt;max-file-size&gt;52428800&lt;/max-file-size&gt;
      &lt;max-request-size&gt;52428800&lt;/max-request-size&gt;
      &lt;file-size-threshold&gt;0&lt;/file-size-threshold&gt;
    &lt;/multipart-config&gt;</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/code/git">
        <dc:format>text/html</dc:format>
        <dc:date>2018-12-06T10:07:22+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Git</title>
        <link>https://old.andunix.net/info/code/git</link>
        <description>Git

Basics

Init Repository

Standard:
git init [DIR]
Bare:
git init --bare [DIR]
Log

See commits between branches:
git log master..develop
Branches

List Branches
git branch
Switch Branch
git checkout BRANCH
Delete Branch
git branch -d BRANCH
Delete Remote Branch</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/hg">
        <dc:format>text/html</dc:format>
        <dc:date>2013-07-15T10:39:59+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>Mercurial</title>
        <link>https://old.andunix.net/info/hg</link>
        <description>Mercurial

.hgignore

Some handy .hgignore expressions:

Ignore Mac Files

Ignore .DS_Store and ._* files:


(^|/)\._[^/]+$
(^|/)\.DS_Store$


NetBeans

These expressions exclude the directories build, dist and nbproject/private.
Depending on your project setup, you may want to also exclude</description>
    </item>
    <item rdf:about="https://old.andunix.net/info/sysadmin/ssh">
        <dc:format>text/html</dc:format>
        <dc:date>2015-11-30T12:09:18+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>SSH</title>
        <link>https://old.andunix.net/info/sysadmin/ssh</link>
        <description>SSH

SSH with Public Key Authentication only

/etc/ssh/sshd_config

Make sure that your SSH config file (sshd_config) contains these settings:


PubkeyAuthentication yes
PasswordAuthentication no


If you changed the config, make sure to restart sshd to activate ist:</description>
    </item>
</rdf:RDF>
