Skip to content

Instantly share code, notes, and snippets.

View pvinchon's full-sized avatar

Philippe Hosey Vinchon pvinchon

View GitHub Profile
import argparse
import json
import os
from jinja2 import Environment, FileSystemLoader
def get_args():
def is_file(value):
if os.path.isfile(value): return value
raise argparse.ArgumentTypeError('file not found')
@pvinchon
pvinchon / exercism
Created June 28, 2018 12:23
CI/CD for exercism
#!/bin/sh -ex
# Configure exercism
EXERCISM_DEFAULT_PATH=~/exercism
EXERCISM_CONFIG=$PWD/exercism_config
exercism --config $EXERCISM_CONFIG configure --silent --dir $PWD
exercism --config $EXERCISM_CONFIG configure --silent --key $EXERCISM_API_KEY
# Test all exercises
@pvinchon
pvinchon / env
Last active October 20, 2019 11:16
#!/bin/sh -e
# desktop
osascript -e 'tell application "Finder" to set desktop picture to POSIX file "/Library/Desktop Pictures/Solid Colors/Solid Aqua Blue.png"'
defaults write com.apple.screensaver idleTime Never
# finder
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.finder AppleShowAllFiles -bool true
defaults write com.apple.finder ShowPathbar -bool true
@pvinchon
pvinchon / .scalafmt.conf
Created January 3, 2024 12:47
.scalafmt.conf
version = 3.7.4
runner.dialect = scala3