This file contains hidden or 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
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
This file contains hidden or 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
# The CmdletBinding attribute is an attribute of functions that makes them operate | |
# like compiled cmdlets that are written in C#, and it provides access to features of cmdlets. | |
# https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_functions_cmdletbindingattribute?view=powershell-6 | |
[CmdletBinding()] | |
param( | |
# Input params | |
[string]${inputParam}, | |
# Example with validator and help message |
This file contains hidden or 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 ruby | |
# Return a short string with spotify status | |
require 'json' | |
sym = { | |
:play => '►', | |
:pause => '■' | |
} |
This file contains hidden or 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
# List all repositories in GitHub Organization | |
# | |
# GIT_ORG - Organization name | |
# GIT_TOKEN - GitHub access token | |
# | |
import os | |
# pip install pygithub | |
from github import Github |