Skip to content

Instantly share code, notes, and snippets.

View AriTheElk's full-sized avatar
caffeinated

Aria McKinley AriTheElk

caffeinated
View GitHub Profile
@BeerOnBeard
BeerOnBeard / install-docker-ce-on-elementaryos-loki.sh
Last active March 4, 2020 07:27
Install Docker CE on ElementaryOS 0.4.1 Loki
#!/bin/bash
set -e
##########################################################
# Install script for Docker-CE on ElementaryOS 0.4.1 Loki
# Had to update the repository to point to xenial instead
# of using 'lsb_release -cs' because there's no loki
# repository at download.docker.com.
##########################################################
@btroncone
btroncone / rxjs_operators_by_example.md
Last active July 16, 2023 14:57
RxJS 5 Operators By Example
@kristopherjohnson
kristopherjohnson / pipe-forward.swift
Last active March 29, 2024 19:44
Swift: define F#-style pipe-forward (|>) operator that evaluates from left to right.
// F#'s "pipe-forward" |> operator
//
// Also "Optional-chaining" operators |>! and |>&
//
// And adapters for standard library map/filter/sorted
infix operator |> { precedence 50 associativity left }
infix operator |>! { precedence 50 associativity left }
infix operator |>& { precedence 50 associativity left }
infix operator |>* { precedence 50 associativity left }
rsync -v --progress --ignore-existing -e ssh ./local/folder/* username@address:/directory/to/upload/to/
@AriTheElk
AriTheElk / file_mover.py
Last active December 15, 2015 06:28
Recursively searches for files with the specified extension in the source folder and moves them into the destination folder. You can replace "fileExtension == extension" with "fileExtension != extension" to move every file except for the specified extension.
import sys, os
source = "./Source_Folder/"
destination = "./Destination_Folder/"
extension = ".xml"
fileList = []
for root, folders, files in os.walk(source):
for f in files:
fileName, fileExtension = os.path.splitext(os.path.join(root,f))
@brandonb927
brandonb927 / osx-for-hackers.sh
Last active May 14, 2024 18:00
OSX for Hackers: Yosemite/El Capitan Edition. This script tries not to be *too* opinionated and any major changes to your system require a prompt. You've been warned.
#!/bin/sh
###
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer)
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos
###
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx
@chrisjacob
chrisjacob / README.md
Created February 14, 2011 14:31
Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout - a step-by-step guide.

Intro

Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.

IMPORTANT

If you plan on switching between different branches (e.g. git checkout master-experiment then revert back with git checkout master) you will loose your child folder from this tutorial (because it's in your .gitignore and is not part of your master branch).