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
/* | |
INSTRUCTIONS | |
1. Open this file in notepad or something similar | |
2. Paste your list of names where it says replace names | |
3. Go to linkedin and line up a people search for your city | |
4. In google chrome. In Windows and Linux hit: Ctrl + Shift + J. On Mac hit: Cmd + Option + J. | |
5. Copy paste this whole script in to the console and hit enter | |
6. leave the window active while it collects results | |
7. You should get a tab seperated CSV that you can open in Excel |
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
/* | |
what this script does: | |
it pages through linkedin search results and copies names, images, company, location, position into a javascript array | |
once it reaches the end of the results it will prompt to download all the names as a tab delimited csv. | |
to use: | |
go to linkedin, run a search exactly how you want it | |
go to page 2 of those results | |
paste the below script into console and hit enter | |
paste this line into console to enable the script: |
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 tabValues(array) { | |
var keys = Object.keys(array[0]); | |
var result = keys.join("\t") + "\n"; | |
array.forEach(function(obj){ | |
keys.forEach(function(k, ix){ | |
if (ix) result += "\t"; |
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 | |
//REPLACE ALL XXX !! | |
// Create a stream | |
$opts = array( | |
'http'=>array( | |
'method'=>"GET", | |
'header' => "Content-Type: application/json\r\nAuthorization: Basic " . base64_encode("xxx:xxx") | |
) |
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 | |
//house cleaning | |
//scraperwiki::save_sqlite(array('id'), array('id'=>1, 'lat'=>1, 'lng'=>1), "users2"); | |
//die; | |
require 'scraperwiki/simple_html_dom.php'; | |
function neat_r($arr, $return = false) { | |
$out = array(); |
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 script duplicates channel entries with category assignments from one MSM site to another. | |
//set the from/to site id below. | |
//it assumes you've already duplicated your channels, channel fields, and categories between sites perfectly preserving url_titles for all. (see note on categories at end) | |
//run in staging before production! (and backup!) | |
//using nsm config bootstrap http://ee-garage.com/nsm-config-bootstrap | |
//otherwise manually set your db connection details following |
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 | |
# this script will | |
# a. crawl the designated site X levels deep to generate a urls list | |
# b. completely purge all urls on the desisgnated varnish servers for the designated url | |
# c. clear cache on nginx / mod pagespeed for the designated app servers | |
# d. individually warm all the listed urls on each designated varnish server | |
# e. rewarm them in case pagespeed sent a purge request | |
# define some variables |
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 | |
$sites = "http://www.broadcastsolutions.com.au/ | |
http://www.kvm.com.au/ | |
http://www.ambertech.com.au/"; | |
$sites = preg_split('/\r\n|\r|\n/', $sites); | |
echo " |
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 | |
/** | |
* Magento | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Open Software License (OSL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/osl-3.0.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
function set_sections() | |
{ | |
$EE =& get_instance(); | |
$out = '<script type="text/javascript" charset="utf-8">$("#accessoryTabs a.mx_cloner").parent().remove();'; | |
//changed this line to activate cloner with zenbu | |
if ($EE->input->get('module') == 'zenbu' && $EE->input->get('M') == 'show_module_cp' && $EE->input->get('C') == 'addons_modules') { | |
$out .=' | |
NewerOlder