Skip to content

Instantly share code, notes, and snippets.

View Lehmancreations's full-sized avatar
💭
Working on stuff

Andy Lehman Lehmancreations

💭
Working on stuff
View GitHub Profile
@Lehmancreations
Lehmancreations / gist:c8112c2132d0f65157484405218992d2
Created October 25, 2021 19:22
itunes stores in an php array
$countrys = array(
"ae",
"ag",
"ai",
"al",
"am",
"ao",
"ar",
"at",
"au",
@Lehmancreations
Lehmancreations / itunes.countries.js
Created January 19, 2021 21:48 — forked from daFish/itunes.countries.js
List of Apple iTunes Store Country codes in Javascript.
var countries = {
ae: 'United Arab Emirates',
ag: 'Antigua and Barbuda',
ai: 'Anguilla',
al: 'Albania',
am: 'Armenia',
ao: 'Angola',
ar: 'Argentina',
at: 'Austria',
au: 'Australia',
@Lehmancreations
Lehmancreations / functions.php
Last active December 4, 2020 11:13 — forked from certainlyakey/functions.php
WORDPRESS Add metabox with key-value custom fields dynamically added by user
<?php
//Add metabox with dynamically added key-value (with more values possible) custom fields
//Based on http://wordpress.stackexchange.com/questions/19838/create-more-meta-boxes-as-needed/19852#19852
// Caution, there're 2 set of options below
//Variables used in the following functions should be mentioned in the 'global' statement of each of them appropriately
//=======Options 1=======
$dmb_post_type = 'post';
$dmb_metabox_label = 'Other information';
$dmb_cf_name = 'tribe_events_miscinfo';
@Lehmancreations
Lehmancreations / Sync-SfItem_Example1.ps1
Last active December 6, 2019 18:24 — forked from jstrong013/Sync-SfItem_Example1.ps1
Example Code for Sync-SfItem - Citrix Community Answer
# Answers question Generated here: https://community.sharefilesupport.com/citrixsharefile/topics/sync-sfitem-command-not-working
Add-PSSnapin ShareFile
$sfClient = Get-SfClient -Name "$env:Temp\sfclient.sfps"
New-PSDrive -Name sfDrive -PSProvider ShareFile -Client $sfClient -Root "\"
# Name Used (GB) Free (GB) Provider Root
# ---- --------- --------- -------- ----
# sfDrive ShareFile \
Sync-SfItem -LocalPath "C:\PowerShell\ShareFile\TEST\*.txt" -Upload -ShareFilePath "sfDrive:\Folder Example" -OverWrite
# Sync operation successfully completed.