[root@localhost ~]# mkdir /centos_chroot
[root@localhost ~]# mkdir -p /centos_chroot/var/lib/rpm
function DeepLinker(options) { | |
if (!options) { | |
throw new Error('no options') | |
} | |
var hasFocus = true; | |
var didHide = false; | |
// window is blurred when dialogs are shown | |
function onBlur() { |
// ==UserScript== | |
// @name View Image | |
// @namespace https://github.com/bijij/ViewImage | |
// @version 3.3.0 | |
// @description This userscript re-implements the "View Image" and "Search by image" buttons into google images. | |
// @author Joshua B | |
// @run-at document-end | |
// @include http*://*.google.tld/search*tbm=isch* | |
// @include http*://*.google.tld/imgres* | |
// @updateURL https://gist.githubusercontent.com/bijij/58cc8cfc859331e4cf80210528a7b255/raw/viewimage.user.js |
// ==UserScript== | |
// @name Trello Syntax Highlight (fixed 2019) | |
// @namespace https://gist.github.com/kxlt | |
// @version 0.2 | |
// @description Github syntax highlighting for Trello code blocks | |
// @author AsyncWizard (https://github.com/AsyncWizard>), kxlt (https://github.com/kxlt) | |
// @require https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/highlight.min.js | |
// @resource https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.15.10/styles/github.min.css | |
// @match https://trello.com/* | |
// @grant none |
// see: | |
// http://jdbi.org/fluent_queries/ | |
// http://www.jooq.org/doc/3.7/manual/getting-started/use-cases/jooq-as-a-standalone-sql-builder/ | |
// Your Java Bean | |
public static class Reminder { | |
private long id; | |
private long customerId; | |
public Reminder(long id, long customerId) { |
#!/bin/bash | |
function gdal_pixel_count() { | |
if [ -z "$1" ]; then | |
echo "Missing arguments. Syntax:" | |
echo " gdal_extent <input_raster>" | |
return | |
fi | |
EXTENT=$(gdalinfo $1 |\ | |
grep "Size is" |\ | |
sed "s/Size is //g;s/,//;s/\n//") |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
upstream gitlab { | |
server 172.17.42.1:10080 fail_timeout=0; | |
} | |
# let gitlab deal with the redirection | |
server { | |
listen 80; | |
server_name git.example.com; | |
server_tokens off; | |
root /dev/null; |
global | |
chroot /var/lib/haproxy | |
crt-base /etc/pki/tls/certs | |
daemon | |
group haproxy | |
log 127.0.0.1 local0 | |
maxconn 2000 | |
pidfile /var/run/haproxy.pid | |
stats socket /var/lib/haproxy/stats | |
tune.ssl.default-dh-param 2048 |