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") |
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]] |
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 = [] |
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 |