This file contains 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
#!/bin/bash | |
if [[ -z $GHOSTUPDATEFILE ]]; | |
then | |
export GHOSTUPDATEFILE='ghost-0.4.0.zip' | |
fi | |
if [[ -z $GHOSTUPDATELOCATION ]]; | |
then | |
export GHOSTUPDATELOCATION='update-ghost' |
This file contains 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
Options -indexes | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# Allow any files or directories that exist to be displayed directly | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d |
This file contains 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 python | |
# -*- coding: utf-8 -*- | |
# | |
# This is how I used it: | |
# $ cat ~/.bash_history | bash-history-to-zsh-history >> ~/.zsh_history | |
import sys | |
def main(): |
This file contains 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
# | |
# A theme based on Steve Losh's Extravagant Prompt with vcs_info integration. | |
# | |
# Authors: | |
# Marcello Seri <mseri@mseri.me> | |
# Steve Losh <steve@stevelosh.com> | |
# Bart Trojanowski <bart@jukie.net> | |
# Brian Carper <brian@carper.ca> | |
# mseri <mseri@gmail.com> | |
# Sorin Ionescu <sorin.ionescu@gmail.com> |
This file contains 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 bash | |
set -euo pipefail | |
#IFS=$'\n\t' | |
E_BADARGS=85 | |
if [ ! -n "$1" ] | |
then | |
echo "Usage: `basename $0` hash" | |
exit $E_BADARGS |
This file contains 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 python3 | |
"""Pixellize | |
Generate a "pixellated" copy of IMAGEFILE. | |
Usage: | |
pixellize.py [--length=L] [--pixels=P] IMAGEFILE | |
pixellize.py -h | --help | |
Options: | |
-h --help Show this screen. |
This file contains 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
"""Takes a Ghost json datafile and fills the folder with markdown posts. | |
It does not import the tags (yet).""" | |
import json | |
AUTHOR = "My Name" | |
GHOST_DATAFILE = "ghostData.json" | |
ARTICLE_FOLDER = "" # An empty string corresponds to the script folder | |
def slugify(value): | |
""" |
This file contains 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 bash | |
#set -euf -o pipefail | |
set -ef -o pipefail | |
echo "Activate Virtual Environment" | |
source venv/bin/activate | |
echo "Generate website" | |
cd struct | |
pelican content -o output -s publishconf.py |
This file contains 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 | |
require 'find' | |
require 'digest/sha1' | |
require 'fileutils' | |
# | |
# input: file = "/full/path/to/file" | |
# output: sha1 hash hexdigest of the file | |
# e.g 7d99a42960fa0f1e67ca7d00f99a279f1c8bfd07 | |
# |
This file contains 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 python3 | |
# -*- coding: utf-8 -*- | |
"""Generate emails for the London Analysis Seminar ML and saves them on GMail Drafts.""" | |
# TODO: Implement send the mail to the mailing-list | |
#import smtplib | |
try: | |
from colorama import Fore, init |
OlderNewer