Skip to content

Instantly share code, notes, and snippets.

@jniltinho
jniltinho / install-znuny-ubuntu.sh
Last active July 7, 2025 12:17
Install Znuny 7 --> New OTRS Community Edition
#!/bin/bash
## Install Znuny 7.0.16 on Ubuntu 22.04
## https://doc.znuny.org/znuny_lts/releases/installupdate/install.html
## https://itgovernanceportal.com/otrs/otrs-znuny-ubuntu-nginx/?cn-reloaded=1
## https://download.znuny.org/releases/znuny-7.0.16.tar.gz
## Run as root (sudo su)
cd /opt
wget https://download.znuny.org/releases/znuny-7.0.16.tar.gz
@mypapit
mypapit / ojs3-proxy-sites-available.conf
Created April 28, 2023 02:15
How to run OJS 3 on Apache HTTPD behind nginx reverse proxy smoothly
# Mohammad Hafiz bin Ismail <[email protected]>
# blog.mypapit.net
# this is for Ubuntu/Debian Apache server config
#/etc/apache2/sites-available/your-ojs.conf
<VirtualHost *:9080>
ServerAdmin [email protected]
ServerName ojs-site.example.com
@alexander-hanel
alexander-hanel / README.md
Last active September 30, 2023 01:20
Learning Rust
@wpscholar
wpscholar / vagrant-cheat-sheet.md
Last active December 3, 2025 23:09
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Creating a VM

  • vagrant init -- Initialize Vagrant with a Vagrantfile and ./.vagrant directory, using no specified base image. Before you can do vagrant up, you'll need to specify a base image in the Vagrantfile.
  • vagrant init <boxpath> -- Initialize Vagrant with a specific box. To find a box, go to the public Vagrant box catalog. When you find one you like, just replace it's name with boxpath. For example, vagrant init ubuntu/trusty64.

Starting a VM

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
#!/bin/bash
#script directory label
DIR=`pwd`"/"$1
if [ -d $DIR ]
then
PT=$DIR
else
echo "Directory not exist"
exit 0
@plepe
plepe / gist:52ecc9f18efb32c68d18
Last active October 21, 2025 13:49
MDADM and LVM cheat sheet

mdadm

Glossary:

  • md: multiple devices
command description
cat /proc/mdstat show status of all raids
mdadm --detail /dev/md0 detailed status of raid md0