Skip to content

Instantly share code, notes, and snippets.

View arifer612's full-sized avatar

Arif Er arifer612

View GitHub Profile
@arifer612
arifer612 / gitea_readme_org_500_server_error.log
Created January 29, 2024 13:46
Logs for README.org casuing 500 internal server error
01/29/2024 9:16:00 PM 2024/01/29 21:16:00 ...es/charset/escape.go:41:EscapeControlReader() [E] Error whilst escaping: orgmode.Render failed: could not write output: interface conversion: org.Node is org.Text, not org.RegularLink
01/29/2024 9:16:00 PM 2024/01/29 21:16:00 ...ers/web/repo/view.go:324:renderReadmeFile() [E] Render failed for README.org in <Repository 152:reponame>: orgmode.Render failed: could not write output: interface conversion: org.Node is org.Text, not org.RegularLink Falling back to rendering source
01/29/2024 9:16:05 PM 2024/01/29 21:16:05 ...es/charset/escape.go:41:EscapeControlReader() [E] Error whilst escaping: orgmode.Render failed: could not write output: interface conversion: org.Node is org.Text, not org.RegularLink
01/29/2024 9:16:05 PM 2024/01/29 21:16:05 ...ers/web/repo/view.go:491:renderFile() [E] Render: orgmode.Render failed: could not write output: interface conversion: org.Node is org.Text, not org.RegularLink
01/29/2024 9:17:04 PM 2024/01/29 21:17:04 ...es/charset/escape.g
@arifer612
arifer612 / mullvad-updater.sh
Last active April 27, 2021 08:36
Checks for new updates for MullvadVPN and installs it if is officially signed
#! /bin/bash
#
# Description:
# A script to check for the latest Mullvad update an installs it after
# verifying its GPG signature.
# This script works only for Debian based Linux distributions using a bash
# shell and with at least Python 3.6 installed on it.
#
#
# Author: Arif Er 2021
@arifer612
arifer612 / readQSettings.py
Last active September 15, 2020 16:07
Reads QSettings file and recursively navigates the whole hierarchy to return a navigable Python dictionary type.
'''
readQSettings.py is a gist that reads a QSettings file and outputs a navigable dictionary in Python with the same hierachy.
The user may navigate through the dictionary and update the QSettings file much easier this way. This was built for editing
the configuration file for QBitTorrent but it should work for any QtApps that uses the QSettings structure.
'''
from PyQt5.QtCore import QSettings`
configSettings = QSettings(settingsDir, QSettings.IniFormat) # Change the format appropriately
@arifer612
arifer612 / dlAttachments.py
Created May 7, 2020 08:16 — forked from baali/dlAttachments.py
Python script to download all gmail attachments.
# Something in lines of http://stackoverflow.com/questions/348630/how-can-i-download-all-emails-with-attachments-from-gmail
# Make sure you have IMAP enabled in your gmail settings.
# Right now it won't download same file name twice even if their contents are different.
import email
import getpass, imaplib
import os
import sys
detach_dir = '.'