Skip to content

Instantly share code, notes, and snippets.

@changeme
changeme / Curl job run.md
Created September 19, 2021 13:48 — forked from gschueler/Curl job run.md
How to run a rundeck job using curl

Run a Job using Curl

This document describes how to use CURL to interact with the RunDeck server to invoke a Job to run.

The steps are as follows:

  1. Authenticate to the RunDeck server and acquire a session cookie.
  2. Submit run request for particular Job ID, sending session cookie.
@changeme
changeme / tips-to-know-if-vm-or-not.md
Last active May 11, 2021 14:07
How can I know if I am in a VM?

How can I know if I am in a VM?

virt-what

# virt-what
kvm

lscpu

@changeme
changeme / wp-perf.md
Created May 1, 2021 14:51 — forked from Ruzgfpegk/wp-perf.md
WordPress Performance & Development tips
@changeme
changeme / alpine-install.sh
Created July 20, 2020 00:06 — forked from thde/alpine-install.sh
A script to install alpine linux on a dedicated server. Tested on Hetzner, Kimsufi / OVH
#!/bin/sh
set -ex
PATH=/bin:/sbin:/usr/bin:/usr/sbin
KEYMAP="us us"
HOST=alpine
USER=anon
ROOT_FS=ext4
BOOT_FS=ext4
@changeme
changeme / README.md
Created July 19, 2020 23:57 — forked from Jonarod/README.md
Install Alpine Linux on Hetzner cloud
  1. Create an hetzner server using Ubuntu
  2. Go to the Hetzner's Server dashboard > Images
  3. Click on "Mount" over the alpine-linux-extended.iso image
  4. Shutdown the server
  5. Start the server
  6. Click the "Console" icon from the dashboard to open an interactive terminal session
  7. Login is root
  8. Configure the interface using the command setup-interfaces
  9. Pick to setup default eth0
  10. Custom config: no
#!/bin/bash
echo "Chmoding user files to 0644..."
for i in `/usr/local/vesta/bin/v-list-sys-users | awk '{if(NR>2)print}'`; do find /home/$i/web/ -name 'public_html' -type d -print0 | xargs -0 -I {} find '{}' -type f -print0 | xargs -0 -I {} chmod 0644 {}; done
echo "Done."
echo "Chmoding user folder to 0755..."
for i in `/usr/local/vesta/bin/v-list-sys-users | awk '{if(NR>2)print}'`; do find /home/$i/web/ -name 'public_html' -type d -print0 | xargs -0 -I {} find '{}' -type d -print0 | xargs -0 -I {} chmod 0755 {}; done
echo "Done."
echo "Fixing ownership of files..."
@changeme
changeme / tips.md
Last active January 20, 2020 10:20
Tips y checklist para organizar la mudanza.

Organizar una mudanza

La idea es realizar un checklist, tanto para los que ya tienen varias mudanzas encima, como los primerizos... basicamente, porque siempre es estresante.

Acepto contribuciones.

Preparativos

  • Cajas
  • Bolsas de residuo
@changeme
changeme / LetsEncrypt+certbot+UFW+postfix+dovecot.md
Created June 13, 2019 11:09 — forked from mrothNET/LetsEncrypt+certbot+UFW+postfix+dovecot.md
Let's Encrypt / Dovecot / Postfix / UFW firewall / Certbot

Let's Encrypt / Dovecot / Postfix / UFW firewall / Certbot

This tutorial describes how to install TLS to a mail server consisting of Postfix and/or Dovecot by using Let's Encrypt certificates with automatic renewing and firewall management.

The system used for this tutorial was:

$ lsb_release -idrc
Distributor ID: Ubuntu
@changeme
changeme / limpiar-boot.sh
Last active November 3, 2018 01:07
Limpiar /boot en Ubuntu cuando esta al 100%
#!/bin/bash
sudo dpkg --list 'linux-image*'|awk '{ if ($1=="ii") print $2}'|grep -v `uname -r` | while read -r line; do sudo apt-get -y purge $line;done
sudo apt-get -y autoremove; sudo update-grub
@changeme
changeme / librenms_linux_mon_setup.txt
Created July 20, 2018 15:23 — forked from axemann/librenms_linux_mon_setup.txt
LibreNMS Linux server monitoring setup (Ubuntu)
sudo apt-get install snmpd -y
sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.old
sudo su -
sudo cat > /etc/snmp/snmpd.conf << EOF
# Change public below to your preferred SNMP community string
com2sec readonly default public
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none