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 | |
import sys | |
a = {} | |
b = {} | |
for line in open(sys.argv[1]).readlines(): | |
(checksum, filename) = line.rstrip().split(' ') | |
a[filename] = checksum |
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
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); | |
const path = require("path"); | |
module.exports = { | |
entry: { | |
bundle: [ | |
"./src/js/scripts.js", | |
"./src/styles/index.scss" | |
], | |
}, |
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
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN"> | |
<HTML> | |
<HEAD> | |
<TITLE> | |
A Small Hello | |
</TITLE> | |
</HEAD> | |
<BODY> | |
<H1>Hi</H1> | |
<P>This is very minimal "hello world" HTML document.</P> |
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
ovh | |
pytest | |
pytest-mock |
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
job "cds" { | |
datacenters = ["dc1"] | |
type = "service" | |
group "cache" { | |
count = 1 | |
task "redis" { | |
driver = "docker" | |
config { |
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
def table(number): | |
for i in range(1, 11): | |
print('{} * {} = {}'.format(i, number, i*number)) | |
table(1) | |
table(5) |
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 | |
PROJECT=${1} | |
if [ -z ${PROJECT} ]; then | |
echo "Give me a project:" | |
echo "${0} <project name>" | |
exit 1 | |
fi | |
for t in environment pipeline application workflow; do |
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 | |
RELEASE=${1:-0.36.1} | |
shift | |
echo "Install ${RELEASE}" | |
INSTALLED="$(cdsctl admin plugins list --format json | jq '.[].name' | xargs | sed 's/plugin-//g')" | |
if [ "$1" = "" ]; then | |
PLUGINS="${INSTALLED}" | |
elif [ "$1" = "all" ]; then |
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
imap_account = 'user' | |
imap_passwd = 'pass' | |
imap_server = 'imap.truc.tld' | |
inbox_folder = 'INBOX' |
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
{ | |
"object_kind": "push", | |
"before": "95790bf891e76fee5e1747ab589903a6a1f80f22", | |
"after": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7", | |
"ref": "refs/heads/master", | |
"checkout_sha": "da1560886d4f094c3e6c9ef40349f7d38b5d27d7", | |
"user_id": 4, | |
"user_name": "John Smith", | |
"user_username": "jsmith", | |
"user_email": "john@example.com", |
NewerOlder