Skip to content

Instantly share code, notes, and snippets.

View srustagi's full-sized avatar
🅿️
pushin

Shiv Rustagi srustagi

🅿️
pushin
View GitHub Profile

Keybase proof

I hereby claim:

  • I am srustagi on github.
  • I am srustagi (https://keybase.io/srustagi) on keybase.
  • I have a public key whose fingerprint is 036F EA79 9D1E 1D11 2217 E187 2B56 FF7C E3C4 6D22

To claim this, I am signing this object:

@srustagi
srustagi / fix_fhb.py
Created June 16, 2020 22:27
Remove UTC timestamp from Windows File History Backup for all files in folder recursively, skip over duplicates.
import re
from os.path import join
from os import walk, rename
FOLDER_PATH = join('shivr-hdd')
for path, subdirs, files in walk(FOLDER_PATH):
for i, name in enumerate(files):
fixed = re.sub(r' \(.+\)\.', '.', name)
print('{} / {}'.format(i + 1, len(files)))
@srustagi
srustagi / fix_fhb.py
Last active November 27, 2022 20:30
Remove UTC timestamp from Windows File History Backup for all files in folder recursively, skip over duplicates.
import re
from os.path import join
from os import walk, rename
FOLDER_PATH = join('PATH_TO', 'DIR_NAME')
for path, subdirs, files in walk(FOLDER_PATH):
for i, name in enumerate(files):
fixed = re.sub(r' \(.+\)', '', name)
print('{} / {}'.format(i + 1, len(files)))
@srustagi
srustagi / Preferences.sublime-settings
Created June 16, 2020 22:08
Predawn Sublime Text Config
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Predawn/predawn.tmTheme",
"font_face": "Inconsolata",
"font_options":
[
"gray_antialias"
],
"font_size": 9,