This file contains hidden or 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 to download the content of all etherpads listed on https://ptg.opendev.org/etherpads.html | |
| # This script uses photonos because the pages are built with JavaScript | |
| # Default configuration | |
| DEFAULT_PHOTONOS_BIN="photonos" # Default path assumes photonos is in PATH | |
| PHOTONOS_BIN="$DEFAULT_PHOTONOS_BIN" # Path to photonos executable | |
| DEFAULT_OUTPUT_DIR="etherpads_content" | |
| ETHERPADS_INDEX="etherpads_index.html" |
This file contains hidden or 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
| # First export manualy your google bookmarks in place exported file in the same directory of this script | |
| # After launch this script (python google-bookmarks-to-markdown-format.py) and have fun ! | |
| def run(): | |
| output = [] | |
| with open('GoogleBookmarks.html') as export: | |
| html = export.readlines() | |
| for line in html: | |
| if 'H3' in line: | |
| output.append('## {0}'.format(line[36:-6].capitalize())) | |
| if 'A HREF' in line: |
This file contains hidden or 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
| # remap prefix from 'C-b' to 'C-a' | |
| unbind C-b | |
| set-option -g prefix C-a | |
| bind-key C-a send-prefix |
This file contains hidden or 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 -*- | |
| import asyncio | |
| async def init_socket (loop): | |
| reader, writer = await asyncio.open_connection('127.0.0.1', 3000, loop=loop) | |
| return reader, writer |
This file contains hidden or 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
| import string #fixed typo was using | |
| text = str(input('tip your text to convert: ', )) | |
| rot13 = string.maketrans( | |
| "ABCDEFGHIJKLMabcdefghijklmNOPQRSTUVWXYZnopqrstuvwxyz", | |
| "NOPQRSTUVWXYZnopqrstuvwxyzABCDEFGHIJKLMabcdefghijklm") | |
| string.translate(text, rot13) | |
| # Example | |
| # 'Hello World! | |
| # 'Uryyb Jbeyq! |
This file contains hidden or 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
| From 6eb68519a9e917169e7285df14c7ea20d0ff58a5 Mon Sep 17 00:00:00 2001 | |
| From: =?UTF-8?q?Herv=C3=A9=20Beraud?= <hberaud@redhat.com> | |
| Date: Tue, 7 Jul 2020 11:33:55 +0200 | |
| Subject: [PATCH] Introducing usage of pre-commit | |
| MIME-Version: 1.0 | |
| Content-Type: text/plain; charset=UTF-8 | |
| Content-Transfer-Encoding: 8bit | |
| Adding pre-commit |
This file contains hidden or 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
| │13:22:49 hberaud | smcginnis, fungi: o/ any idea what's the problem here or how to identify him? => https://review.opendev.org/#/c/743972/1 | |
| │13:23:39 hberaud | CI logs are not really verbose so we can't find the issue, and locally everything works fine. | |
| │14:23:46 smcginnis | hberaud: tox isn't in the default PATH, so https://opendev.org/openstack/oslo-cookiecutter/src/branch/master/tools/test_tox_targets.sh#L33 | |
| │ | fails to find it. | |
| │14:24:11 smcginnis | I think that script needs to be updated to take the environment variable that gets set, or else the zuul configuration needs to add tox to | |
| │ |
This file contains hidden or 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
| $ isort --multi-line=3 --trailing-comma --force-grid-wrap=0 --use-parentheses --line-width=88 -rc openstack |
This file contains hidden or 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
| !$ # last used path | |
| $@ # positional parameters | |
| # https://mywiki.wooledge.org/Bashism |
This file contains hidden or 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
| # rebase from the first commit included | |
| git rebase -i --root | |
| # generate a tiny changelog | |
| git log --no-merges <tag or commit-id>.. --oneline | |
| # search if a branch contains a specific commit | |
| git branch --contains <commit-id> | |
| ################## |
NewerOlder