https://github.com/r-darwish/topgrade
# install Rust
curl https://sh.rustup.rs -sSf | sh
| """ListCtrl with Natural sorting capability""" | |
| import re | |
| import wx | |
| import wx.lib.mixins.listctrl as listmix | |
| class NaturalSortedListCtrl(wx.ListCtrl, listmix.ColumnSorterMixin): | |
| """ListCtrl with Natural sorting capability""" |
| import sys | |
| import codecs | |
| import contextlib | |
| import csv | |
| import os | |
| import re | |
| import sqlite3 | |
| import zipfile | |
| from datetime import datetime as dt |
| import datetime | |
| import getpass | |
| from fints.client import FinTS3PinTanClient, NeedTANResponse | |
| from fints.hhd.flicker import terminal_flicker_unix | |
| print("Please enter your login (same as online banking)") | |
| login = input("Login: ").strip() |
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "palette": { | |
| "git-foreground": "#193549", | |
| "git": "#179299", | |
| "git-modified": "#fe640b", | |
| "git-diverged": "#e64553", | |
| "git-ahead": "#7287fd", | |
| "git-behind": "#7287fd" | |
| }, |
| Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Where-Object {$_.Publisher -notlike "Microsoft*" -and $_.Publisher -ne $Null} | Sort-Object -Property Publisher | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize |
https://github.com/r-darwish/topgrade
# install Rust
curl https://sh.rustup.rs -sSf | sh
| import datetime | |
| import winreg | |
| # Script from here: https://gist.github.com/psatler/010b26cd57e758278823d7027c40e2a6 | |
| # Slightly modified | |
| dt = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") | |
| def foo(hive, flag): |
| import json | |
| import os | |
| import re | |
| appdata = os.getenv("appdata") | |
| basepath = os.path.join(appdata, "kicad", "6.99") | |
| jsonpath = os.path.join(basepath, "kicad_common.json") | |
| fplibpath = os.path.join(basepath, "fp-lib-table") |
| gitea: | |
| image: gitea/gitea:1.16.4 | |
| container_name: gitea | |
| environment: | |
| - USER_UID=1000 | |
| - USER_GID=1000 | |
| - GITEA__database__DB_TYPE=postgres | |
| - GITEA__database__HOST=giteadb:5432 | |
| - GITEA__database__NAME=gitea | |
| - GITEA__database__USER=gitea |
| import os | |
| import socket | |
| from flask import Flask, render_template_string, request | |
| from werkzeug.utils import secure_filename | |
| app = Flask(__name__) | |
| app.config["UPLOAD_FOLDER"] = "." |