This will return the full Git commit SHA of whichever branch is currently checkedout.
Dump the snippet into terraform console (run from within a Git repo) to see for yourself.
This will return the full Git commit SHA of whichever branch is currently checkedout.
Dump the snippet into terraform console (run from within a Git repo) to see for yourself.
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # | |
| # Description: Sync Plex playlists to shared users. | |
| # Author: /u/SwiftPanda16 | |
| # Requires: plexapi, requests, xmltodict | |
| # Changes by me: Syncs all current playlists to all current users. Everytime you run it it deletes the old playlists on the users account and replaces it with your. | |
| import requests | |
| import xmltodict |
| #!/bin/bash | |
| # Completely remove a file from a git repository history | |
| # | |
| # Copyleft 2017 by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
| # GPL licensed (see end of file) * Use at your own risk! | |
| # | |
| # Usage: | |
| # git-forget-blob file_to_forget | |
| # | |
| # Notes: |
| #!/usr/bin/env python | |
| """ | |
| LICENSE http://www.apache.org/licenses/LICENSE-2.0 | |
| """ | |
| import argparse | |
| import datetime | |
| import sys | |
| import time | |
| import threading |