Skip to content

Instantly share code, notes, and snippets.

View damienvancouver's full-sized avatar

Damien Norris damienvancouver

  • North Vancouver, BC
View GitHub Profile
@damienvancouver
damienvancouver / yoast_seo_admin_user_remove_social.php
Last active December 8, 2021 18:24 — forked from amboutwe/yoast_seo_admin_user_remove_social.php
Remove Yoast SEO Social Profiles From All Users
<?php
/********* DO NOT COPY THE PARTS ABOVE THIS LINE *********/
/* Remove Yoast SEO Social Profiles From All Users
* Credit: Yoast Developers
* Last Tested: Dec 8th, 2021 using Yoast SEO Premium 17.6 on WordPress 5.8.2
*/
add_filter('user_contactmethods', 'yoast_seo_admin_user_remove_social', 99);
@damienvancouver
damienvancouver / sources.list
Created December 14, 2017 21:16
stretch sources.list vancouver
#
# /etc/apt/sources.list
#
#
# stretch
#
deb http://mirrors.ece.ubc.ca/debian/ stretch main contrib non-free
deb-src http://mirrors.ece.ubc.ca/debian/ stretch main contrib non-free
@damienvancouver
damienvancouver / gist:d8dad5aafdf9d4bd29c0
Created January 26, 2016 00:41
mailchimp api problems
damien@zaphod:~$ openssl s_client -showcerts -connect us9.api.mailchimp.com:443
CONNECTED(00000003)
depth=2 C = IE, O = Baltimore, OU = CyberTrust, CN = Baltimore CyberTrust Root
verify error:num=20:unable to get local issuer certificate
verify return:0
---
Certificate chain
0 s:/C=US/ST=GA/L=Atlanta/O=ROCKET SCIENCE GROUP/OU=Rocket Science Group/CN=*.api.mailchimp.com
i:/C=NL/L=Amsterdam/O=Verizon Enterprise Solutions/OU=Cybertrust/CN=Verizon Akamai SureServer CA G14-SHA2
-----BEGIN CERTIFICATE-----
@damienvancouver
damienvancouver / gist:6efd28bdc98a3742c46d
Last active December 3, 2015 18:39
just one minute of a sketchy bot fingerprinting for vulenrable modules
209.208.108.18 - - [20/Nov/2015:12:40:09 -0800] "GET /license.php HTTP/1.0" 404 30628 "-" "-"
209.208.108.18 - - [20/Nov/2015:12:40:09 -0800] "GET /wp-admin/includes/license.php HTTP/1.0" 403 491 "-" "-"
209.208.108.18 - - [20/Nov/2015:12:40:10 -0800] "GET /wp-includes/images/wlw/license.php HTTP/1.0" 404 30628 "-" "-"
209.208.108.18 - - [20/Nov/2015:12:40:10 -0800] "GET /wp-includes/text/diff/engine/rss.class.php HTTP/1.0" 404 30628 "-" "-"
209.208.108.18 - - [20/Nov/2015:12:40:11 -0800] "GET /wp-content/plugins/rss.class.php HTTP/1.0" 404 30628 "-" "-"
209.208.108.18 - - [20/Nov/2015:12:40:11 -0800] "GET /wp-content/plugins/cherry-plugin/license.php HTTP/1.0" 404 30628 "-" "-"
209.208.108.18 - - [20/Nov/2015:12:40:12 -0800] "GET /wp-content/themes/rss.class.php HTTP/1.0" 404 30628 "-" "-"
209.208.108.18 - - [20/Nov/2015:12:40:12 -0800] "GET /wp-content/themes/satoshi/images/license.php HTTP/1.0" 404 30628 "-" "-"
209.208.108.18 - - [20/Nov/2015:12:40:13 -0800] "GET /wp-includes/license.php HTTP/1.0" 403 485
@damienvancouver
damienvancouver / gist:1a44844bc170a783162c
Created June 9, 2015 20:01
PostGIS 1 / PostGRES 8 installation
sudo su postgres
createuser -l -W fortmckay
# Shall the new role be a superuser? (y/n) n
# Shall the new role be allowed to create databases? (y/n) n
# Shall the new role be allowed to create more new roles? (y/n) n
# Password: <type the user password>
createdb fortmckay --o fortmckay
createlang plpgsql -d fortmckay
psql fortmckay -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql
psql fortmckay -f /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql
@damienvancouver
damienvancouver / gist:d981a6175a47261153e6
Last active August 29, 2015 14:22
ie console log shiv thing
<script type="text/javascript">
<?php /*
* Protect window.console method calls, e.g. console is not defined on IE
* unless dev tools are open, and IE doesn't define console.debug
* @see http://stackoverflow.com/a/13817235/888986
*/ ?>
(function() {
if (!window.console) {
window.console = {};
}
@damienvancouver
damienvancouver / gist:d130287e668b4ebf1b14
Last active August 29, 2015 14:20
old vs new triumf wget
damien@zaphod:~$ wget -S www.triumf.ca
--2015-04-28 16:21:09-- http://www.triumf.ca/
Resolving www.triumf.ca (www.triumf.ca)... 142.90.113.81
Connecting to www.triumf.ca (www.triumf.ca)|142.90.113.81|:80... connected.
HTTP request sent, awaiting response...
HTTP/1.1 200 OK
Date: Tue, 28 Apr 2015 23:21:09 GMT
Server: Apache/2.2.15 (CentOS)
X-Powered-By: PHP/5.4.16
Expires: Sun, 19 Nov 1978 05:00:00 GMT
@damienvancouver
damienvancouver / osx_shellshock_fix
Last active August 29, 2015 14:06
How to pach bash for shellshock on osx
## Patching bash on OSX or Linux by [email protected]
##
## Note 1: You need XCode dev tools (or at least the command line build tools) for this to work.
## If you are on OSX mavericks you can install these with: xcode-select --install
##
## Note 2: Run this as root! (type "sudo su" to become root.. Your prompt will change from $ to #)
# 1. Download the Bash 4.3 source with patches bash43-001 through bash43-026 applied
cd /usr/local
mkdir src # this will fail if you already have /usr/local/src, that's OK

Keybase proof

I hereby claim:

  • I am damienvancouver on github.
  • I am damien (https://keybase.io/damien) on keybase.
  • I have a public key whose fingerprint is FA15 EDAC 040C BDFA D6ED 76EB 7130 E5F5 C3B9 085B

To claim this, I am signing this object:

#
# /etc/apt/sources.list
#
#
# wheezy
#
deb http://mirror.peer1.net/debian/ wheezy main contrib non-free
deb-src http://mirror.peer1.net/debian/ wheezy main contrib non-free