Cartouche | ---------------------|----- ZEP | 13 Titre | Tribune libre Révision | 2 Date de création | 2014-08-06 Dernière révision| 2015-11-25 Type | Feature Statut | Rédaction
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 | |
#-*- encoding: utf-8 -*- | |
# ircbot_url_title.py | |
# Simple bot which displays urls titles | |
# | |
# Copyright (c) 2010 Mick@el and Zopieux | |
# Copyright (c) 2014 gustavi | |
# | |
# This program is free software: you can redistribute it and/or modify |
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
# SCRIPT POUR DÉPLOYER UN ENV DE QA POUR ZDS | |
##### VAR ##### | |
PYTHON_DIR='/usr/bin/python2.7' | |
VIRTUALENV_DIR='/home/augustin/.virtualenvs' | |
QA_ID='3224' | |
QA_REPO='https://github.com/gustavi/zds-site.git' | |
QA_BRANCH='fix-872' |
- Changer la milestone « Version de développement » en « Version 19 » (sur GitHub)
- Créer une nouvelle milestone « Version de développement » (sur GitHub)
- Créer la banche « release-v19 »
- Merger la branche « dev » dans « release-v19 » en forçant la création d'un commit de merge
- Tagger le commit qui vient d'être créé : « v19-RC1 »
Créer une RC-n avec n>1
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 | |
# Script pour lancer le proxy à l'EFREI | |
# Fonctionne avec bash et zsh | |
# Penser à utiliser `sudo -E` si besoin | |
assignProxy(){ | |
export http_proxy=$1 | |
export https_proxy=$1 | |
export ftp_proxy=$1 |
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 | |
for img in *.{psd,PSD} | |
do | |
imgname=`echo $img|cut -f1 -d.` | |
echo $imgname | |
mkdir $imgname | |
mkdir $imgname/png | |
mkdir $imgname/jpg | |
convert $img $imgname/jpg/$imgname.jpg |
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
# SSH | |
sudo ufw allow out 22/tcp | |
sudo ufw allow in 22/tcp | |
# HTTP/HTTPS | |
sudo ufw allow out 80/tcp | |
sudo ufw allow in 80/tcp | |
sudo ufw allow out 443/tcp | |
sudo ufw allow in 443/tcp |
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
Error : | |
- Partial upgrade of system that contains openssl 1.1 | |
- pacman: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory | |
- Network is unreachable | |
Fix : | |
- On other device : | |
- Download previous package (1.0 in this case) at https://archive.archlinux.org/packages/o/openssl/ |
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 get_first_day_of_week(day): | |
""" | |
Get the first day of week of a datetime (similar with a date). | |
"""" | |
day.replace(hour=0, minute=0, second=0, microsecond=0) - timedelta(days=day.weekday()) |
OlderNewer