- 🎨 when improving the format/structure of the code
- 🚀 when improving performance
- ✏️ when writing docs
- 💡 new idea
- 🚧 work in progress
- ➕ when adding feature
- ➖ when removing feature
- 🔈 when adding logging
- 🔇 when reducing logging
- 🐛 when fixing a bug
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
dnf list installed | grep -i gdal | |
# ... | |
gdal30-libs.x86_64 3.0.1-4.f29 @pgdg11 | |
# .... | |
dnf history | |
# ... | |
Ident. | Wiersz poleceń | Data i czas | Działania | Zmien. | |
------------------------------------------------------------------------------- | |
297 | update | 2019-11-07 07:49 | Upgrade | 7 EE | |
296 | update | 2019-11-06 06:51 | I, U | 8 EE |
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
dist: xenial | |
notifications: | |
email: false | |
sudo: required | |
language: python | |
python: | |
- "3.7" | |
cache: | |
pip: true | |
addons: |
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
before_install: | |
# ... | |
-sudo service xvfb stop | |
-sudo sed -i 's/1024x768/1280x1024/g' /etc/systemd/system/xvfb.service | |
-sudo service xvfb start | |
# ... |
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
[alias] | |
st = status | |
ci = commit | |
br = branch -v | |
co = checkout | |
df = diff | |
lg = log -p | |
up = pull | |
who = shortlog -s -- | |
diff = diff --no-prefix |
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
grep "email" file.json | gawk '{print $2}' |
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
""" | |
1. Go to https://youtube-playlist-analyzer.appspot.com/ | |
2. Enter playlist URL | |
3. Copy playlist table and paste to text editor | |
4. Search and Replace with Regex (notice XX is the playlist size) | |
SEARCH: ^(\d+)\s+(.*)\t([-_A-Za-z0-9]+)\t(\d{2}:\d{2}:\d{2}) | |
REPLACE: **$1/XX** [$2](https://www.youtube.com/watch?v=$3) _$4_ | |
""" |
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
"\+\n" -> "" | |
"\d+ lectures\n" => "" | |
"^(\d+:\d+(:\d+)?)" -> "_$1_" | |
"([^\d_])\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
class Celsius: | |
__multiplier = 1.8 | |
def __init__(self, temperature = 0): | |
self._temperature = temperature | |
def to_fahrenheit(self): | |
return (self._temperature * 1.8) + 32 | |
def get_temperature(self): |
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
# Just a simple tool to convert mp4 files to avi. | |
import os | |
import subprocess | |
import glob | |
path = '.' | |
files = glob.glob('*.mp4') | |
files_count = len(files) | |
for index, name in enumerate(files, start=1): |