Post tagged: directory

My git release script

I always had issues remembering how to create releases. So in order to standardise things, I wrote this script:

So whenever I am ready to release I would then just issue the command:

./ghrelease vX.Y.Z

Pre-requisistes:

You obviously need git. But also you would need github-cli.

Your …

lnbin

This is my lnbin script.

This is a program for managing symlink in a /usr/local/bin directory. It is similar to stow, lndir, cleanlinks and others.

The approach used by lnbin is based on Stow, and it is to install each into its own tree, then use symbolic links …

nas ops cmd

This is my op script.

This is stupidly simple script to elevate priviledges in order to manage NFS shares on my QNAP NAS.

The idea is that NFS shares do squash-root so admin access is disallowed through NFS. This gives a convenient way to issue root level commands without using …

DVTM

The other day I found dvtm. Looking at it, it looks very nice. It appeals to me because I am particularly fond of text user interfaces.

screencast

At the end I choose not to use it because:

  • terminal support was less than 100% useful.
  • At the end of the day using …

Enable syslog with void

In void Linux, the default is without logging. Most cases it is OK for desktop use.

If you want to enable syslog service in void, you need to install:

socklog-void

Also to let your user have access to the logs, use:

usermod -aG socklog <your-username>

Because I like to have …

Alpine Boot switcher

I boot from a USB boot drive using UEFI. Because of the UEFI boot, it just a matter of copying the files from the alpine ISO to a USB thumbdrive VFAT32 partition. Partition may be set to EFI (but this doesn't seem to be required).

Since I would like to …

Using XScreenSaver Hacks with mate-screensaver

Here we explain how to use XScreenSaver EXCELLENT screensaver hack collection with the MATE screensaver applet.

  • Install xscreensaver and mate-screensaver
  • On my linux distribution this creates the following directories:
  • /usr/libexec/xscreensaver: contains the screensaver hacks executables
  • /usr/libexec/mate-screensaver : contains the mate-screensaver executables
  • /usr/share/applications/screensavers : containes the …

Installing Void Linux

I made the switch to void linux. Except for compatibility issues around glibc, it works quite well. Most compatibility I have worked around with a combination of Flatpaks, chroots and namespaces.

The high lights of void linux:

  • musl build - which is very lightweigth
  • Does not depend on systemd …

OpenShift notes

THIS IS FOR ARCHIVAL PURPOSES. THIS IS OUT-OF-DATE

backup OpenShift

openshift getenv(USER) from OpenShift php
ssh to {user}@{app-domain} gear snapshot  > file

Run gear app

OpenShift migration further notes

Encrypt a file using a supplied password :

$ openssl enc -aes-256-cbc -salt -in file.txt -out file.txt.enc -k …

Windows administration from the command line

Windows system administration is very mouse driven and to reach all tools you need to browse through Windows explorer.

If you are like me and prefer to log on a limited privilege account and use Runas to perform admin tasks, you can open these consoles with the .msc file names …

Deploying Kerberos based SSO

This article goes over how to implement Single-Sign-On on Linux. It goes over the integration around the Kerberos service and the applications, like for example FireFox.

Pre-requisites

  • Kerberos Domain Controller (KDC)
  • User accounts in the KDC
  • KDC based logins

To make sure that this is working, login to your workstation …

UNIX find with dates

-atime/-ctime/-mtime the last time a files's access time, file status and modification time, measured in days or minutes. Time interval in options -ctime, -mtime and -atime is an integer with optional sign.

  • n: If the integer n does not have sign this means exactly n days ago, 0 …

Driving Continuous Integration from Git

Testing, code coverage, style enforcement are all check-in and merge requirements that can be automated and driven from Git.

If you're among the rising number of Git users out there, you're in luck: You can automate pieces of your development workflow with Git hooks. Hooks are a native Git mechanism …

Grandstream GXP1400

Grandstream GXP1400

gs

The other day I replaced an analog phone with a Grandstream GXP1400 IP phone. I think it is a great value phone. It is one of the cheapest I could find yet supports all the features I was looking.

Specifically I wanted a IP phone that could:

  1. Have …

Yealink W52P

Yealink W52P

phone

So I was looking to replace my analog cordless phones mainly because I wanted to have a centralized way to maintain phonebooks. Right now I have two cordless phone that I have to manually enter phonebook entries on the two handsets independently.

Initially I was thinking of getting …