reference https://www.vultr.com/docs/how-to-install-rabbitmq-on-centos-7 Ubuntu Xenial 16.04 LTS
- Download https://packages.erlang-solutions.com/erlang/
- Install:
sudo dpkg -i *-erlang-*.deb
sudo apt install -f
/** | |
* This function check an element is scrolled into view area on screen. | |
* @param elem; use CSS Selector syntax to specific an element. | |
* @return boolean; | |
* @author Scott Dowding | |
* @refer http://stackoverflow.com/questions/487073 | |
*/ | |
function isScrolledIntoView(elem) | |
{ | |
var $elem = $(elem); |
<?php | |
namespace Utils; | |
/** | |
* Class RandomStringGenerator | |
* @package Utils | |
* | |
* Solution taken from here: | |
* http://stackoverflow.com/a/13733588/1056679 |
//Run in console (press F12, click `Console` tab, paste and press Enter to run) | |
//NOTE: | |
// Scroll to end of page, choose 100 items/page. | |
// Run once for every page. | |
// After done; change page by your-self then run code again. (press Up Arrow to get pre-code) | |
var items = document.querySelectorAll(".editIcon"); | |
var i = 0; | |
items[i].click(); | |
var tBrowser = setInterval(function(){ |
#! /bin/bash | |
#Put this file into woff tool's dir, which was compiled before | |
#To convert multiple file, type: | |
# ./run_woff.sh /path/to/fonts/dir <format(otf|ttf)> | |
fontdir=$1 | |
fontext=$2 | |
files=($fontdir/*.$2) | |
for item in ${files[*]} | |
do |
#! /bin/bash | |
# Put this file into woff tool's dir, which was compiled before | |
# To convert multiple file, type: | |
# ./run_woff.sh /path/to/fonts/dir <format(otf|ttf)> | |
fontdir=$1 | |
fontext=$2 | |
files=($fontdir/*.$2) | |
for item in ${files[*]} | |
do | |
./woff2_compress $item |
#!/usr/bin/env python3 | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
see: https://gist.github.com/UniIsland/3346170 | |
""" | |
reference https://www.vultr.com/docs/how-to-install-rabbitmq-on-centos-7 Ubuntu Xenial 16.04 LTS
sudo dpkg -i *-erlang-*.deb
sudo apt install -f
// ==UserScript== | |
// @name Easy read TruyenFull.Vn | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match http://truyenfull.vn/*/chuong-*/* | |
// @grant none | |
// ==/UserScript== |
#!/bin/bash -i | |
#using shebang with -i to enable interactive mode (auto load .bashrc) | |
set -e #stop immediately if any error happens | |
# Install Open SDK | |
apt update | |
apt install openjdk-8-jdk -y | |
update-java-alternatives --set java-1.8.0-openjdk-amd64 | |
java -version |
var isClicked = false; | |
var btn = document.querySelector('.btn.iso-load-more'); | |
var isInViewport = function (elem) { | |
var bounding = elem.getBoundingClientRect(); | |
return ( | |
bounding.top >= 0 && | |
bounding.left >= 0 && | |
bounding.bottom <= (window.innerHeight || document.documentElement.clientHeight) && | |
bounding.right <= (window.innerWidth || document.documentElement.clientWidth) | |
); |