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 -e | |
echo "Désactiver le forwarding vers syslog" | |
sudo sed -i '/ForwardToSyslog/ s/.*/ForwardToSyslog=no/g' /etc/systemd/journald.conf | |
echo "Redémmarrage de systemd" | |
sudo systemctl restart systemd-journald | |
echo "Désactiver syslog" | |
sudo systemctl stop rsyslog |
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 -e | |
REPO_DIR="$(realpath ${1:-.})" | |
for repo in $(find "$REPO_DIR" -mindepth 1 -maxdepth 1 -type d) | |
do | |
if [ ! -d "$repo/.git" ] | |
then | |
echo "Skipping $repo. Not a git repo" | |
continue |
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
/** | |
* @OnlyCurrentDoc Adds progress bars to a presentation. | |
*/ | |
var BAR_ID = 'PROGRESS_BAR_ID'; | |
var BAR_HEIGHT = 5; // px | |
var presentation = SlidesApp.getActivePresentation(); | |
/** | |
* Runs when the add-on is installed. | |
* @param {object} e The event parameter for a simple onInstall trigger. To |
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
# Get image ubuntu:16.04 from Docker's registry | |
docker pull ubuntu:16.04 | |
# Run "cat /etc/os-release" into container spawned from image ubuntu:16.04 | |
docker run ubuntu:16.04 cat /etc/os-release | |
cat /etc/os-release | |
# Show all containers | |
docker ps -a |
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 -*- | |
import os | |
import sys | |
import operator | |
from subprocess import check_output, check_call, STDOUT | |
from datetime import timedelta | |
from time import time |
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 | |
# Tested with Python 3 | |
# Needs boto3 installed (pip install --user boto3) | |
import optparse | |
import sys | |
import boto3 | |
def sign(bucket, path, expiry): | |
s3 = boto3.client('s3') |
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
ACTION=="add", ATTR{idProduct}=="2030", RUN+="/usr/bin/set_typematrix_dvorak_mapping" |
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
Copyright (c) 2015, Shahar Evron | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, | |
are permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this | |
list of conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, |