Skip to content

Instantly share code, notes, and snippets.

View shellclear's full-sized avatar

shellclear

View GitHub Profile
@shellclear
shellclear / azure_list.rb
Created June 7, 2017 15:17
List azure resource groups
# list resource groups
rgs = Azure::Armrest::ResourceGroupService.new(conf)
rg = rgs.list
rg.each do |rg_name|
rg_name = rg_name.name
$evm.log("info","name: #{rg_name}")
end
@shellclear
shellclear / nginx-backends.conf
Created September 21, 2017 14:55
nginx.conf file stream TCP
[root@nginx01 ~]# cat /etc/nginx/nginx.conf
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
@shellclear
shellclear / gist:2dd95dd6ed2790c5265ddf2efe186529
Last active January 4, 2019 09:51 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<meta charset="UTF-8">
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
// ==UserScript==
// @name EmuParadise Download Workaround - 1.1.1
// @version 1.1.2
// @description Replaces the download button link with a working one
// @author Eptun
// @match https://www.emuparadise.me/*/*/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @grant none
// ==/UserScript==