This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Exports issues from a list of repositories to individual csv files. | |
Uses basic authentication (Github username + password) to retrieve issues | |
from a repository that username has access to. Supports Github API v3. | |
Forked from: unbracketed/export_repo_issues_to_csv.py | |
""" | |
import argparse | |
import csv | |
from getpass import getpass | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function em($px, $context-or-rem: strip_unit($base-font-size)) { | |
@if($context-or-rem == true) { | |
@return $px / strip_unit($base-font-size) * 1rem; | |
} @else { | |
@return $px / $context-or-rem * 1em; | |
} | |
} | |
/// Remove the unit of a length | |
/// @param {Number} $number - Number to remove unit from |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Puts on glasses: | |
(•_•) | |
( •_•)>⌐■-■ | |
(⌐■_■) | |
Takes off glasses ("mother of god..."): | |
(⌐■_■) | |
( •_•)>⌐■-■ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Split certs into site.com.crt and site.com.ca.crt | |
# ls ssl/ | |
tmpkey www.<DOMAIN>.com.ca.crt www.<DOMAIN>.com.crt www.<DOMAIN>.com.csr www.<DOMAIN>.com.key | |
.ca.crt, .crt and .key are the needed files, the rest can be removed. | |
In /etc/httpd/conf.d/ssl.conf I commented out the default vhost (Starting with <Virutalhost> and through the rest of the file) | |
In /etc/httpd/conf.d/ssl.conf I added a NameVirtualHost directive. THis lets SNI work if you get more SSL sites in the future. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module_load_include('inc', 'pathauto'); | |
$variables['classes_array'][] = "taxonomy-" . pathauto_cleanstring($node->field_experience_category['und'][0]['taxonomy_term']->name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Unit test for paths imported by feeds | |
# Not amazing, but will gather 404 info | |
main(); | |
function main() { | |
$paths = parse_csv('all-paths.csv',','); | |
$compare_path = compare_paths($paths); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function drupal-install() { | |
# Remove existing database | |
drush sql-drop -y; | |
# Remove existing install | |
sudo rm -rf sites/default; | |
# Restore the sites/default/default.settings.php file | |
sudo git checkout -- sites/default; | |
# Temporarily make the sites/default writable by anyone | |
sudo chmod -R 777 sites/default; | |
# Ensure the owner is the current user, not root user |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server [ | |
listen 80; | |
server_name DOMAIN.COM WWW.DOMAIN.COM; | |
location / { | |
return 301 http://otherdomain.com; | |
} | |