Skip to content

Instantly share code, notes, and snippets.

@brad-x
brad-x / piwik-nginx.conf
Created June 23, 2017 18:28 — forked from xenithorb/piwik-nginx.conf
Piwik flat-file nginx configuration
#-*- mode: nginx; mode: flyspell-prog; mode: autopair; ispell-local-dictionary: "american" -*-
## Define a zone for limiting the number of simultaneous
## connections nginx accepts. 1m means 32000 simultaneous
## sessions. We need to define for each server the limit_conn
## value refering to this or other zones.
## ** This syntax requires nginx version >=
## ** 1.1.8. Cf. http://nginx.org/en/CHANGES. If using an older
## ** version then use the limit_zone directive below
## ** instead. Comment out this
## ** one if not using nginx version >= 1.1.8.
#!/bin/bash
#
# Cron script to update Mozilla Firefox build editions
# Targeted OS: Fedora 23 - will probably work on most
# Default Firefox version: Firefox Developer Edition (aurora)
# Leaves files in the following spots:
# /opt/firefox-dev
# /usr/share/applications/firefox-dev.desktop
#
# set -x
@brad-x
brad-x / win-updates.ps1
Created October 17, 2015 13:50 — forked from joefitzgerald/win-updates.ps1
Install All Windows Updates, Rebooting As Many Times As Required
param($global:RestartRequired=0,
$global:MoreUpdates=0,
$global:MaxCycles=10)
function Check-ContinueRestartOrEnd() {
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
$RegistryEntry = "InstallWindowsUpdates"
switch ($global:RestartRequired) {
0 {
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry