Skip to content

Instantly share code, notes, and snippets.

View josevh's full-sized avatar

Jose V Herrera Gallegos josevh

View GitHub Profile
@DragonBe
DragonBe / Vagrantfile
Created January 19, 2018 16:26
A quick-and-simple VM with PHP 7.2
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/jessie64"
config.vm.host_name = "phpvm"
config.vm.box_check_update = false
config.vm.network "private_network", ip: "192.168.33.67"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
@fnnzzz
fnnzzz / fadeOut.js
Created March 1, 2017 13:44
fadeOut on vanilla JS
fadeOut(el) {
el.style.opacity = 1;
(function fade() {
if ((el.style.opacity -= 0.03) < 0) {
el.style.display = "none";
} else {
requestAnimationFrame(fade);
}
})();
@djhuahao
djhuahao / zbx_template_jmx_activemq.xml
Last active October 26, 2015 17:11 — forked from Cromeshnic/zbx_template_jmx_activemq.xml
Zabbix 2.0 template for ActiveMQ with JMX LLD for brokers and destinations. Feel free to contribute.
<?xml version="1.0" encoding="UTF-8"?>
<!--
by Semyon Koshechkin (c) 2013
https://github.com/Cromeshnic
Zabbix ActiveMQ monitoring template with LLD support for:
- Brokers
- Topics
- Queues
@thuandt
thuandt / install_xenserver_usb.md
Created October 30, 2013 15:56
Create XenServer USB Install

Installing XenServer 6.2.0 from a USB Stick

  • Download the XenServer 6.2.0 ISO image

  • Format a USB stick using FAT32.

  • Use unetbootin to install the ISO to the USB stick. Use the “DiskImage” option instead of the “Distribution” one, and point it right to the ISO file.

  • Now we need to fix up some boot stuff (All paths are relative to the root of the USB drive)

@Cromeshnic
Cromeshnic / zbx_template_jmx_activemq.xml
Created August 23, 2013 07:31
Zabbix 2.0 template for ActiveMQ with JMX LLD for brokers and destinations. Feel free to contribute.
<?xml version="1.0" encoding="UTF-8"?>
<!--
by Semyon Koshechkin (c) 2013
https://github.com/Cromeshnic
Zabbix ActiveMQ monitoring template with LLD support for:
- Brokers
- Topics
- Queues
@johntyree
johntyree / getBlockLists.sh
Last active March 9, 2024 12:32
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@ScottPhillips
ScottPhillips / .htaccess
Created February 2, 2012 04:30
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/