Skip to content

Instantly share code, notes, and snippets.

View kevincox's full-sized avatar
🐈

Kevin Cox kevincox

🐈
View GitHub Profile
@leober-ramos33
leober-ramos33 / youtube-block-ads.txt
Last active May 9, 2024 02:46
Block Ads in YouTube (uBlock Origin)
youtube.com##.ad-container
youtube.com###player-ads
youtube.com##.ytp-ad-overlay-container
youtube.com#@#.overlay-ads
youtube.com#@#.ddb
youtube.com###feed-pyv-container
youtube.com###feedmodule-PRO
youtube.com###homepage-chrome-side-promo
youtube.com###merch-shelf
youtube.com###pla-shelf
@LoadLow
LoadLow / cf_pull_auth.macro
Created March 16, 2015 20:31
Nginx/Cloudflare pull authentication, Certificate and information here : https://origin-pull.cloudflare.com
if ($ssl_client_i_dn != "/C=US/O=CloudFlare, Inc./OU=Origin Pull/L=San Francisco/ST=California/CN=origin-pull.cloudflare.net") {
return 403;
}
ssl_verify_client on;
ssl_client_certificate /etc/nginx/ssl/origin-pull-ca.pem;
ssl_verify_depth 1;
if ($ssl_client_verify != "SUCCESS") {
return 403;
@jirutka
jirutka / webdav_treat_osx.conf
Created April 14, 2013 00:28
Nginx optimization for WebDAV access from OS X Finder. This config snippet ensures that nginx will ignore requests for useless dot files generated by the Finder (.DS_Store, ._*, …)
#
# Ignore requests for useless dot files generated by OS X Finder (WebDAV).
#
# This little hack speeds-up a WebDAV access from the Finder significantly and
# also prevents messing storage with these annoying files.
#
location ~ \.(_.*|DS_Store|Spotlight-V100|TemporaryItems|Trashes|hidden)$ {
access_log off;
error_log off;
@ryanj
ryanj / gist:4446113
Last active June 12, 2016 09:41
How to keep secrets out of your public source by using OpenShift ENV variables

Keep secrets out of your source when working with OpenShift

These steps assume that you already have a working app on OpenShift. If you need help, you can get started here!

1. Find your app's ssh address

rhc app show YOUR_APP_NAME

2. ssh into your gear to set your environment variables:

ssh YOUR_APP_SSH_URL

@kevincox
kevincox / package.py
Created October 11, 2011 21:55
A Firefox Add-on Packager Script
#! /usr/bin/env python
### Settings ###
# Files to include in the archive are selected by using include and ignore.
# include and ignore are a list of regular expressions. Files will be packed
# if they match any regular expression in include and do not match any
# expression in ignore. All matching is done using Python re
# (http://docs.python.org/py3k/library/re.html) using the search method so you
# must explicitly write ^ if beginning of line matching is desired. The full
@bradymiller
bradymiller / mirrorOpenEMR_sf_git
Created October 31, 2010 09:18
Script to mirror the SF git repo to github, gitorious, bitbucket, assembla and google code
#!/bin/bash
#
# Copyright (C) 2010 Brady Miller <brady@sparmy.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
#