Skip to content

Instantly share code, notes, and snippets.

View l3d00m's full-sized avatar

l3d00m

  • Berlin, Germany
  • 19:57 (UTC +02:00)
View GitHub Profile
AQAqgqhSGWOJ5emmt8MNa_ojjcJUB80Y9u_QA9OJTcwVwTW8DsndVOmBKfvSsGnQaUK4I-4_a-mBZg3dZ4DFxirOFfI3hsj4flV7stXV-KnYYPGCpNIiKWdjxgHxctMLoop6pA
@l3d00m
l3d00m / reddit_comment_nuke.py
Created November 5, 2017 10:18
Nukes all your reddit comments by first editing and then deleting them. It uses a workaround to fetch all comments and not just the first recent ones
# do 'pip install praw'
import praw
from praw.models import Submission
from praw.models import Redditor
from praw.models import Comment
reddit_user_agent = "reddit comment nuke"
# Create a new reddit app here https://www.reddit.com/prefs/apps/ and copy the secret & id
reddit_client_secret = ""
reddit_client_id = ""
@l3d00m
l3d00m / index.php
Last active March 26, 2017 11:16
Display the current power production and consumption of a household. (Using SUNMASTER ES4.6 (production) and ALLNET ALL3690 (consumption))
<!-- config.ini -->
; Aktualisierungsrate in ms; Sollte nicht unter 1000ms sein
refresh_rate = 3000
; Maximal erreichbare Leistung in W; dann ist die Zahl grün
max_power = 3000
; URL des Powermeters
powermeter_url = 192.168.100.51
@l3d00m
l3d00m / sidebar.py
Last active August 8, 2020 13:05
Reddit Sidebar Updater based on Twitch newer version with praw4 and oauth
# Based on https://gist.github.com/Lemonszz/c16bcf61934088e52f8faa5b501811fa, but using praw4 and some minor cleanups.
import praw
import time
from urllib.request import urlopen
import urllib.request
import json
import sys
username = "yourname"