Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Computers help us solve problems we didn't have before.

Daniel Tharp pxdnbluesoul

💭
Computers help us solve problems we didn't have before.
View GitHub Profile
@pxdnbluesoul
pxdnbluesoul / wikidot-clone.py
Created Jul 1, 2020
A quick way to clone Wikidot sites larger than 100 Pages with an API key.
View wikidot-clone.py
# You will need to be a member of both sites.
# Both sites need to enable API Reads for members, and the new site needs to allow writes via the API.
# If you're an admin of the sites you can restrict the API to admins only.
# If you don't have a Wikidot API Key, unfortunately you can no longer get one.
# TODO: Handle files above the 6MB size limit the API imposes, although you also can't write files back of that size.
# They could be retrieved via files.get_meta, there's an attribute called download_url.
# E.g.,
# import requests
# for idx, file in enumerate(files):
View scpotw.py
from xmlrpclib import ServerProxy
import datetime
from time import sleep
from collections import OrderedDict
today = datetime.datetime.now()
DD = datetime.timedelta(days=7)
earlier = today - DD
idate = earlier.strftime("%Y-%m-%d")
@pxdnbluesoul
pxdnbluesoul / tabview
Last active Jul 21, 2018
Example tabview for Wikidot
View tabview
[[tabview]]
[[tab Tab 1]]
This is the content of Tab 1.
[[/tab]]
[[tab Tab 2]]
This is the content of Tab 2.
[[/tab]]
[[tab Tab 3]]
This is the content of Tab 3.
[[/tab]]
View font-face override
[[module CSS]]
@import url('https://fonts.googleapis.com/css?family=Roboto');
.customtext { font-family: 'Roboto', sans-serif; }
[[/module]]
Then you'd use [[div class="customtext"]]Text with a custom font face goes here.[[/div]]
@pxdnbluesoul
pxdnbluesoul / one_year_on.py
Created Dec 31, 2016
Source for the script to remind people of their new years resolution
View one_year_on.py
import praw
reddit = praw.Reddit(client_id='',
client_secret='',
password='',
user_agent='',
username='')
readingfrom = reddit.submission('3ywu0b') # Last year's thread.
body = author = []
@pxdnbluesoul
pxdnbluesoul / DangItBobby.ps1
Created Apr 6, 2016
PowerShell script to find where a user is logged into on the network and disable their NIC.
View DangItBobby.ps1
# ********************************************************************************
#
# Script Name: DangItBobby.ps1
# Version: 1.0.0
# Author: bluesoul <https://bluesoul.me>
# Date: 2016-04-06
# Applies to: Domain Environments
#
# Description: This script searches for a specific, logged on user on all or
# specific Computers by checking the process "explorer.exe" and its owner. It