Skip to content

Instantly share code, notes, and snippets.

View pokulo's full-sized avatar

Heinrich Kießling pokulo

  • Scale GmbH
  • Dresden
View GitHub Profile
@pokulo
pokulo / gist:4a8056f58018a252d8e115dbb2995078
Last active December 6, 2024 12:21
shutil.rmtree may fail deleting folder inside NFS mount with: OSError: [Errno 39] Directory not empty:
import logging
import os
import psutil
import shutil
# inspired by https://stackoverflow.com/a/58943527/2894081 and https://github.com/iterative/dvc/issues/5641
directory = "/nfs-mount/some-random-working-directory/"
os.mkdir(directory)
@joshschmelzle
joshschmelzle / remove-gamebar-powershell-win10.md
Last active April 8, 2025 18:15
How to Remove the Xbox Game Bar with Powershell on Windows 10. Scroll to the end of the gist for Windows 11.

You've probably stumbled upon this researching how to remove the Xbox Game Bar. This gist includes a few different methods you can try. Please note that some of these first options are probably not be available unless you are running an older version of Windows 10.

EDIT: make sure to check out the comment below from @nmhung1985 which seems to be working for most folks.

Uninstalling/Removing the Game Bar (old Windows 10 build GUI options)

(this is no longer an option on any recent Windows 10 build)

  1. Press Windows Key or click on the Start menu.
  2. Start typing Xbox or Game Bar, until you get the Xbox Game Bar app to appear in the results.
@jtilly
jtilly / install.sh
Last active May 23, 2024 10:36
Install qcachegrind on Ubuntu
#!/bin/bash
sudo apt-get install qt5-default
wget http://kcachegrind.sourceforge.net/kcachegrind-0.7.4.tar.gz
tar xvf kcachegrind-0.7.4.tar.gz
cd kcachegrind-0.7.4
qmake && make
sudo install -m 755 qcachegrind/qcachegrind /usr/local/bin
sudo install -m 644 qcachegrind/qcachegrind.desktop \
/usr/local/share/applications/