Skip to content

Instantly share code, notes, and snippets.

View geoffreyvanwyk's full-sized avatar

Geoffrey van Wyk geoffreyvanwyk

View GitHub Profile
@geoffreyvanwyk
geoffreyvanwyk / post_gen_project.py
Created August 14, 2023 09:27
Remove Jinja file extension after creating project from Cookiecutter
# Create a "hooks" directory at the root of your Cookiecutter project, then add this file to it.
import os
for path, subdirs, files in os.walk("."):
for name in files:
if name.endswith(".j2"):
os.rename(os.path.join(path, name), os.path.join(path, name.rstrip(".j2")))
~
➔ sudo zypper dup --no-allow-vendor-change
Warning: You are about to do a distribution upgrade with all enabled repositories. Make sure these repositories are compatible before you continue. See 'man zypper' for more information about this command.
Loading repository data...
Reading installed packages...
Computing distribution upgrade...
7 Problems:
Problem: problem with installed package gstreamer-0_10-0.10.36-20.3.x86_64
Problem: problem with installed package gstreamer-0_10-lang-0.10.36-20.3.noarch
Problem: problem with installed package gstreamer-0_10-plugins-base-0.10.36-16.3.x86_64