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
#!/bin/env python2 | |
from datetime import date, timedelta | |
import mailchimp | |
campaigns = ['3c505cef16', 'a4c5c49119', '679a0d19cf', '7db2b71ccd'] | |
# ^^^ List of campaigns here | |
listid = '8cde71be10'; |
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
#!/usr/bin/env python | |
import os.path, time | |
import argparse | |
from dateutil import parser | |
import datetime | |
argparser = argparse.ArgumentParser(description='fix timestamps for files. oldest timestamp will be set to epoch and other timestamps are calculated based on that') | |
argparser.add_argument('file', nargs='+', help='list of file to touch') |
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
# LDIF Export for dc=example,dc=org | |
# Server: ldap (ldap) | |
# Search Scope: sub | |
# Search Filter: (objectClass=*) | |
# Total Entries: 17 | |
# | |
# Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on July 1, 2016 2:12 am | |
# Version: 1.2.3 |
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
#!/usr/bin/env python3 | |
# Version 3 | |
from fpdf import FPDF | |
from collections import namedtuple | |
import itertools as IT | |
import argparse | |
import csv | |
import sys |
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 | |
require __DIR__ . '/vendor/autoload.php'; | |
use QuickPay\QuickPay as Client; | |
class QuickPayBase | |
{ | |
/** | |
* Quickpay client |
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
#!/bin/bash | |
# Purpose of this script is to eats all command line parameters and error messages | |
# Location: /usr/local/bin/xclip | |
# Just exit if -o flag is set | |
while [[ $# -gt 1 ]]; do | |
case "$1" in | |
-o ) exit 0 ;; | |
* ) echo $1; shift ;; |
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
#!/usr/bin/env python | |
import os | |
import pprint | |
import json | |
from requests_oauthlib import OAuth2Session, TokenUpdated | |
TOKEN_FILE = os.environ.get('TOKEN_FILE', 'token.json') | |
SALESFORCE_URI = os.environ.get('SALESFORCE_URI', 'https://login.salesforce.com') |
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 | |
class CMSMS | |
{ | |
static public function buildMessageXml($recipient, $message) { | |
$xml = new SimpleXMLElement('<MESSAGES/>'); | |
$authentication = $xml->addChild('AUTHENTICATION'); | |
$authentication->addChild('PRODUCTTOKEN', 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'); |
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
/** GraphQL type name for union of all known paragraph types. */ | |
const PARAGRAPH_UNON_NAME = 'paragraph_types_union' | |
/** GraphQL type name for union of all known media types. */ | |
const MEDIA_UNON_NAME = 'media_types_union' | |
/** Construct field schema with type overrides. */ | |
function createCustomFields(fields) { | |
return fields.reduce((schema, { type, name: fieldName }) => { | |
const resolveById = (parent, args, context) => { |
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
main(); | |
function splitLine(strData, strDelimiter) { | |
// Check to see if the delimiter is defined. If not, | |
// then default to comma. | |
strDelimiter = strDelimiter || ","; | |
// Create a regular expression to parse the CSV values. | |
var objPattern = new RegExp(( | |
// Delimiters. |
OlderNewer