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 python2 | |
# -*- coding: utf-8 -*- | |
""" | |
PoC of an intresting buggy behavior in Python. | |
""" | |
from pprint import pprint | |
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
# Build dependencies | |
FROM python:3.7-alpine AS build | |
RUN apk update && apk add build-base | |
COPY requirements.txt /tmp/requirements.txt | |
RUN pip install --install-option="--prefix=/requirements" --requirement /tmp/requirements.txt | |
# Build runtime image | |
FROM python:3.7-alpine | |
COPY --from=build /requirements /usr/local | |
COPY garden.py /usr/local/bin/garden |
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
# ~/.zlogin: Personal login commands for zsh. | |
# This file is sourced only for login shells. It should contain commands | |
# that should be executed only in login shells. It should be used to set | |
# the terminal type and run a series of external commands (fortune, | |
# msgs, from, etc.) | |
# Global Order: zshenv, zprofile, zshrc, zlogin | |
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 | |
# | |
# Ce script est lancé à la fin de adduser | |
# Utilisation : adduser.local USER UID GID HOME | |
print_about() { | |
cat << EOF | |
$0 --- adduser(8) local system additions. |
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 | |
# | |
# Copyright (C) 2016 Ayaz BADOURALY | |
# | |
# This work is free. You can redistribute it and/or modify it under the terms of | |
# the Do What The Fuck You Want To Public License, Version 2, as published by Sam | |
# Hocevar. See the COPYING file or http://www.wtfpl.net/ for more details. | |
# | |
set -e |
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
docker run -it --rm -v $PWD:/etc/letsencrypt/ certbot/certbot certonly \ | |
--manual \ | |
--server https://acme-staging-v02.api.letsencrypt.org/directory \ | |
--register-unsafely-without-email \ | |
--agree-tos \ | |
--manual-public-ip-logging-ok \ | |
-d example.com -d '*.example.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
diff --git a/src/renderer.js b/src/renderer.js | |
index 6582d5d..ef9d1ac 100644 | |
--- a/src/renderer.js | |
+++ b/src/renderer.js | |
@@ -1,9 +1,16 @@ | |
// import { spawn } from "child_process"; | |
const cp = require('child_process') | |
const { spawn } = cp | |
+const fs = require('fs') |
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 -*- | |
""" | |
PoC of an interesting buggy behavior in Python. Also works in python2. | |
$ ./mutable-dict-keys.py | |
{Mutable(0): 'value'} is consistent | |
{Mutable(1): 'value'} is not consistent | |
""" |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
server_name localhost; | |
root /usr/share/nginx/html; | |
index index.html; | |
location / { | |
try_files $uri $uri/ @rewrites; |
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
# Configuration file for libinput-gestures | |
# Lines starting with '#' and blank lines are ignored. | |
# At present only gesture lines are configured in this file. | |
# | |
# Each gesture: line has 3 [or 4] arguments: |
NewerOlder