View csv-to-mysql.py
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 | |
# Run with no args for usage instructions | |
# | |
# Notes: | |
# - will probably insert duplicate records if you load the same file twice | |
# - assumes that the number of fields in the header row is the same | |
# as the number of columns in the rest of the file and in the database | |
# - assumes the column order is the same in the file and in the database | |
# |
View WebsiteAndStoreCreator.php
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 | |
/** | |
* This file is part of Namespace for Magento. | |
* | |
* @license All rights reserved | |
* @author Phuong LE <phuong.le@agence-soon.fr> <@> | |
* @category Namespace | |
* @package Namespace_Core | |
* @copyright Copyright (c) 2016 Agence Soon (http://www.agence-soon.fr) | |
*/ |
View iis-create-sites.ps1
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
# IIS Site Creation Tool | |
# Verion: 0.0.1 | |
# Author: Tommy Ready <tommy.r.ready@gmail.com> | |
# Description: Powershell Tool for auto creation of IIS sites per the user logged in. | |
# Run Command: C:\> .\iis-site-creator.ps1 | |
$current_user = $env:UserName | |
$user_iis_folder = "C:\sites\$current_user" | |
$shared_directory = "C:\sites\shared" | |
$shared_media_direectory = $shared_directory + "\Data" |
View ImapService.php
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 | |
namespace App\Services; | |
class ImapService { | |
protected $imapHost; | |
protected $imapEmail; | |
protected $imapPassword; | |
protected $searchCriteria; |
View dbcopier.py
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 ConfigParser | |
import os | |
import time | |
import getpass | |
def combine_files(self,file1,file2): | |
with open('file1', 'w') as outfile: | |
with open(file2) as infile: |
View pydump.py
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 ConfigParser | |
import os | |
import time | |
import getpass | |
def get_dump(): | |
print "Enter user:" | |
user = raw_input() |
View backerupper.py
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
import os, sys | |
import math | |
import boto | |
import string | |
import shutil | |
from os import path | |
from os import stat | |
from array import * | |
from time import gmtime, strftime | |
from boto.s3.key import Key |
View deployer5000.py
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
import git | |
import string | |
import os | |
from os import path | |
from git import * | |
from subprocess import call | |
class gitConnect(): | |
def deploy(self): |
View PDOService.php
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 | |
namespace App\Services; | |
class PDOService { | |
private $connection; | |
public function __construct($connection) { | |
$this->connection = $connection; |
View imageColor.js
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
<script type="text/javascript" language="javascript"> | |
var img = document.getElementById("myImage"); | |
img.addEventListener("click", function(event) { | |
var canvas = document.createElement('canvas'); | |
canvas.width = img.width; | |
canvas.height = img.height; | |
canvas.getContext('2d').drawImage(img, 0, 0, img.width, img.height); | |
var p = canvas.getContext('2d').getImageData(event.offsetX, event.offsetY, 1, 1).data; | |
var hex = "#" + ("000000" + rgbToHex(p[0], p[1], p[2])).slice(-6); |
NewerOlder