Skip to content

Instantly share code, notes, and snippets.

View lichti's full-sized avatar
👨‍💻
🏊🏻🚴🏻🏃🏻

Gustavo Lichti lichti

👨‍💻
🏊🏻🚴🏻🏃🏻
View GitHub Profile
@lichti
lichti / Mikrotik.txt
Created March 10, 2017 15:35
MikroTik RouterOS v6.37.5 [bugfix], v6.38.5 [current] and v6.39rc49 [rc]
We have released new RouterOS versions in bugfix, current and release candidate channels.
To upgrade, click "Check for updates" at "System/Package" in your RouterOS configuration interface, or head to our download page: http://www.mikrotik.com/download
What's new in 6.37.5 (2017-Mar-09 11:54):
!) www - fixed http server vulnerability;
*) chr - fixed problem when transmit speed was reduced by interface queues;
*) dhcp - do not listen on IPv4/IPv6 client to IPv6 MLD packets;
*) dude - (changes discussed here: https://wiki.mikrotik.com/wiki/Manual:The_Dude_v6/dude_v6.xx_changelog);
@lichti
lichti / visrh-vnc-config.md
Last active January 27, 2017 10:20
Modfying vnc configuration on KVM
  • Para modificar vms KVM em execução podemos usar o virsh.

  • Para o virsh se conectar ao "kvm" (libvirt) será necessário criar uma credencial no libvirt:

# saslpasswd2 -a libvirt glichti
  • Para verificar as credenciais já existentes:
# sasldblistusers2 -f /etc/libvirt/passwd.db
@lichti
lichti / proxmox-fix-subscription.sh
Last active January 20, 2017 21:51
Proxmox fix subscription
#!/bin/bash
cp /usr/share/pve-manager/ext6/pvemanagerlib.js /usr/share/pve-manager/ext6/pvemanagerlib.js.bck
sed -i '797s/^/\/\//' /usr/share/pve-manager/ext6/pvemanagerlib.js
sed -i '798s/^/\/\//' /usr/share/pve-manager/ext6/pvemanagerlib.js
sed -i '799s/^/\/\//' /usr/share/pve-manager/ext6/pvemanagerlib.js
sed -i '800s/^/\/\//' /usr/share/pve-manager/ext6/pvemanagerlib.js
sed -i '801s/^/\/\//' /usr/share/pve-manager/ext6/pvemanagerlib.js
sed -i '802s/^/\/\//' /usr/share/pve-manager/ext6/pvemanagerlib.js
@lichti
lichti / letsencrypt-nginx.md
Created January 20, 2017 20:40
Nginx with letsencrypt ssl
mkdir -p /var/www/letsencrypt
  location /.well-known/acme-challenge {
    root /var/www/letsencrypt;
  }
@lichti
lichti / letsencrypt-proxmox.md
Last active September 12, 2022 20:14
Proxmox with letsencrypt ssl
git clone https://github.com/certbot/certbot /opt/letsencrypt
ln -s /opt/letsencrypt/certbot-auto /usr/bin/certbot
certbot certonly --expand --agree-tos --text --non-interactive \
 --standalone \
@lichti
lichti / wildfly-install-newrelic.sh
Last active January 13, 2017 20:12
Install newrelic on Wildfly
#!/bin/bash
#title :wildfly-install-newrelic.sh
#description :The script to install newrelic in Wildfly 10.x
#usage :/bin/bash wildfly-install-newrelic.sh
NR_VERSION=3.34.0
NR_FILENAME=newrelic-java-${NR_VERSION}
NR_ARCHIVE_NAME=${NR_FILENAME}.tar.xz
NR_DOWNLOAD_ADDRESS=https://www.dropbox.com/s/hslwpa8oyeyqet1/${NR_ARCHIVE_NAME}
@lichti
lichti / centos-install-java.md
Created January 13, 2017 17:39
Install java on centos

Download Java

wget --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u102-b14/jdk-8u102-linux-x64.rpm

Install package

rpm -ivh jdk-8u102-linux-x64.rpm
@lichti
lichti / wildfly-install-oracle.sh
Created January 12, 2017 19:44
Install oracle driver on Wildfly
#!/bin/bash
#title :wildfly-install-oracle.sh
#description :The script to install oracle drive in Wildfly 10.x
#usage :/bin/bash wildfly-install-oracle.sh
DRIVER_VERSION=11.2.0
DRIVER_FILENAME=ojdbc6-${DRIVER_VERSION}
DRIVER_UNTAR_NAME=${DRIVER_FILENAME}.jar
DRIVER_DOWNLOAD_ADDRESS=hhttps://www.dropbox.com/s/6smy2smg71jhgnx/ojdbc6-11.2.0.jar