Skip to content

Instantly share code, notes, and snippets.

View realmiketalbot's full-sized avatar

Mike Talbot realmiketalbot

  • Emmons & Olivier Resources, Inc.
  • Fort Collins, CO
  • 14:04 (UTC -06:00)
View GitHub Profile
@aessing
aessing / install-AzCopy.sh
Created October 1, 2020 19:50
Install AzCopy on Linux
#!/bin/bash
# =============================================================================
# Install AzCopy on Linux
# https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10
# https://github.com/Azure/azure-storage-azcopy
# -----------------------------------------------------------------------------
# Developer.......: Andre Essing (https://www.andre-essing.de/)
# (https://github.com/aessing)
# (https://twitter.com/aessing)
# (https://www.linkedin.com/in/aessing/)
@vidia
vidia / nginx-unificontroller.conf
Last active January 1, 2024 18:08
Example, working, NGINX config for proxying to Unifi Controller software and using letsencrypt. Includes websocket fix.
# I had a bit of trouble getting my unifi controller (hosted offsite) to use a proxy/letsencrypt. So here are the fruits of my labor.
# The unifi default port is 8443 running on localhost.
# License: CC0 (Public Domain)
server {
# SSL configuration
#
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
@welkerc
welkerc / import.php
Created August 1, 2014 23:52
A csv import for postgresql using php.
<?php
include("include.php");
ini_set("auto_detect_line_endings", true);
$dir = '/path_to/folder/';
$files = scandir ( $dir, 1 );
foreach ($files as $value) {
if(strlen ($value) > 2 ){
$end_pos = strpos ( $value, "." );
$f = substr ( $value, 0, $end_pos );
$fname = $f;
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<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; }
</style>