aboutsummaryrefslogtreecommitdiffstats
path: root/git
diff options
context:
space:
mode:
Diffstat (limited to 'git')
-rw-r--r--git/.gitconfig6
-rwxr-xr-xgit/wipe_irssi_passwords16
2 files changed, 22 insertions, 0 deletions
diff --git a/git/.gitconfig b/git/.gitconfig
new file mode 100644
index 0000000..91a0f30
--- /dev/null
+++ b/git/.gitconfig
@@ -0,0 +1,6 @@
+[user]
+ email = thabogre@gmail.com
+ name = terminaldweller
+[http]
+ postBuffer = 157286400
+ version = HTTP/2
diff --git a/git/wipe_irssi_passwords b/git/wipe_irssi_passwords
new file mode 100755
index 0000000..26e9d58
--- /dev/null
+++ b/git/wipe_irssi_passwords
@@ -0,0 +1,16 @@
+#!/usr/bin/env python3
+# _*_ coding=utf-8 _*_
+
+import re
+
+
+def main():
+ with open("./config", "r") as config_file:
+ lines = config_file.readlines()
+ for line in lines:
+ print(re.sub("password\\s*=\\s*\"(.*)\"",
+ "password=\"\"", line), end="")
+
+
+if __name__ == "__main__":
+ main()