Skip to content

Instantly share code, notes, and snippets.

View zoellner's full-sized avatar
🤓
coding

Andreas Zoellner zoellner

🤓
coding
View GitHub Profile
@zoellner
zoellner / .bash_profile
Last active January 13, 2019 20:44 — forked from natelandau/.bash_profile
Mac OSX Bash Profile
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management
@zoellner
zoellner / Javascript ISO country code to country name conversion
Last active June 30, 2020 19:09 — forked from maephisto/Javascript ISO country code to country name conversion
Javascript ISO 3166-1 alpha-2 country code to ISO 3166-1 alpha-3 country code conversion
var isoCode3 = {
AF: 'AFG',
AX: 'ALA',
DZ: 'DZA',
AL: 'ALB',
AS: 'ASM',
AD: 'AND',
AO: 'AGO',
AI: 'AIA',
AQ: 'ATA',
# Modified from: http://stackoverflow.com/a/11010158/215200
$fromFolder = "D:\FOLDER\"
$rootName = "FILENAME"
$ext = "EXT"
$numFiles = 16
$from = "{0}{1}.{2}" -f ($fromFolder, $rootName, $ext)
$fromFile = [io.file]::OpenRead($from)