etc/logging.properties
#
# Licensed to the Apache Software Foundation (ASF) under one or more
import OpenGL.GL as GL | |
import OpenGL.GL.shaders | |
import ctypes | |
import pygame | |
import numpy | |
vertex_shader = """ | |
#version 330 | |
in vec4 position; |
# kibana.conf# kibana - log viewer | |
# | |
description "Kibana logstash viewer" | |
start on virtual-filesystems | |
stop on runlevel [06] | |
respawn | |
respawn limit 5 30 |
http { | |
include /etc/nginx/mime.types; | |
default_type application/octet-stream; | |
log_format ltsv 'domain:$host\t' | |
'host:$remote_addr\t' | |
'user:$remote_user\t' | |
'time:$time_local\t' | |
'method:$request_method\t' | |
'path:$request_uri\t' |
just change out app_name for your purposes
openssl genrsa 2048 > app_name-wildcard.key
openssl req -new -x509 -nodes -sha1 -days 3650 -key app_name-wildcard.key > app_name-wildcard.cert
# Common Name (eg, your name or your server's hostname) []:*.app_name.com
openssl x509 -noout -fingerprint -text < app_name-wildcard.cert > app_name-wildcard.info
<?php | |
function example_form_element_label($variables) { | |
$element = $variables['element']; | |
// This is also used in the installer, pre-database setup. | |
$t = get_t(); | |
// If title and required marker are both empty, output no label. | |
if ((!isset($element['#title']) || $element['#title'] === '') && empty($element['#required'])) { | |
return ''; | |
} |
#!/bin/bash | |
set -e | |
SECRETFILE=~/.digitalocean | |
if [[ -z $DIGOCEAN_ID ]] || [[ -z $DIGOCEAN_KEY ]]; then | |
if [ -e $SECRETFILE ]; then | |
. $SECRETFILE | |
fi | |
fi |
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited | |
# | |
# Current known FCC address ranges: | |
# https://news.ycombinator.com/item?id=7716915 | |
# | |
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft | |
# | |
# In your nginx.conf: | |
location / { |
var useOldDownloadWay = false; | |
var Nightmare = require('nightmare'); | |
new Nightmare() | |
.goto('http://eprint.iacr.org/2004/152') | |
.evaluate(function ev(old){ | |
var el = document.querySelector("[href*='.pdf']"); | |
var xhr = new XMLHttpRequest(); | |
xhr.open("GET", el.href, false); | |
if (old) { |
#version 330 | |
in VertexData{ | |
vec4 mColor; | |
} VertexIn; | |
void main(void) | |
{ | |
gl_FragColor = VertexIn.mColor; | |
} |