Skip to content

Instantly share code, notes, and snippets.

Alan Hartless alanhartless

View GitHub Profile
@alanhartless
alanhartless / github_issues_to_csv.py
Created Aug 15, 2019 — forked from BrizzleRocker/github_issues_to_csv.py
Export Issues from Github repo to CSV (API v3)
View github_issues_to_csv.py
"""
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
View gist:b7757a8cb7fefd3293b5
server {
# see: http://wiki.nginx.org/Pitfalls
# see: http://wiki.nginx.org/IfIsEvil
listen 80;
root /app;
index index.html index.htm index.php;
error_page 404 /index.php;
# Make site accessible from http://set-ip-address.xip.io
@alanhartless
alanhartless / default
Created Dec 22, 2015 — forked from drmmr763/default
mautic-symfony-nginx
View default
server {
listen 80;
root /usr/share/nginx/html;
index index.html index.htm;
# Make site accessible from http://localhost/
server_name _;
location / {
@alanhartless
alanhartless / cron.php
Last active Jul 11, 2016 — forked from escopecz/commands.php
Script to run Symfony commands from web
View cron.php
<?php
if (!isset($_GET['ILoveMauticReallyIDo'])) {
echo 'The secret phrase is wrong.';
die;
}
$link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$allowedTasks = array(
'cache:clear',
@alanhartless
alanhartless / codeStyleSettings.xml
Last active Mar 15, 2019
PhpStorm Symfony Code Style
View codeStyleSettings.xml
<code_scheme name="Symfony">
<option name="RIGHT_MARGIN" value="150" />
<PHPCodeStyleSettings>
<option name="ALIGN_KEY_VALUE_PAIRS" value="true" />
<option name="ALIGN_PHPDOC_PARAM_NAMES" value="true" />
<option name="ALIGN_PHPDOC_COMMENTS" value="true" />
<option name="ALIGN_ASSIGNMENTS" value="true" />
<option name="CONCAT_SPACES" value="false" />
<option name="COMMA_AFTER_LAST_ARRAY_ELEMENT" value="true" />
<option name="PHPDOC_BLANK_LINES_AROUND_PARAMETERS" value="true" />
@alanhartless
alanhartless / cron.php
Created Aug 31, 2015
Script to run Symfony commands from web
View cron.php
<?php
require_once __DIR__.'/app/bootstrap.php.cache';
require_once __DIR__.'/app/AppKernel.php';
use Symfony\Bundle\FrameworkBundle\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\BufferedOutput;
try {
You can’t perform that action at this time.