This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""This script is an example of simple read and write functions to a spreadsheet. One may import these features | |
into their own programs or use them as an example for using the COM interface in Python. | |
This is quite possibly the most useful code I have ever written to facilitate automated testing or code | |
generation in a windows environment. Please let me know where this code gets used so I can keep a small | |
record of other people it has helped =D. | |
Writen by William Christensen, wirewc@gmail.com | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 | |
"""This reads the news for google news.""" | |
import feedparser,requests,json,urllib,urllib2 | |
tech = """https://news.google.com/news/section?pz=1&cf=all&ned=us&hl=en&topic=tc&output=rss""" | |
archNewsUrl = """https://www.archlinux.org/feeds/news/""" | |
hadUrl = """http://feeds2.feedburner.com/hackaday/LgoM""" | |
mlvUrl= """http://makelehighvalley.com/blog/feed/""" | |
h76Url = """http://feeds.feedburner.com/Hive76""" | |
crackedUrl = """http://feeds.feedburner.com/CrackedRSS""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 | |
"""This reads the news for google news.""" | |
import feedparser,requests,json,urllib,urllib2 | |
tech = """https://news.google.com/news/section?pz=1&cf=all&ned=us&hl=en&topic=tc&output=rss""" | |
archNewsUrl = """https://www.archlinux.org/feeds/news/""" | |
hadUrl = """http://feeds2.feedburner.com/hackaday/LgoM""" | |
mlvUrl= """http://makelehighvalley.com/blog/feed/""" | |
h76Url = """http://feeds.feedburner.com/Hive76""" | |
crackedUrl = """http://feeds.feedburner.com/CrackedRSS""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
void copy_string(char *target, char *source) | |
{ | |
while(*source) | |
{ | |
*target = *source; | |
source++; target++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = g++ | |
CFLAGS = -std=c++14 -Wall -fPIC -g | |
LDFLAGS = -std=c++14 -Wall -fPIC -g | |
TARGET = stuff | |
all: $(TARGET) | |
$(TARGET): $(TARGET).o | |
$(CC) -o $@ $^ $(LDFLAGS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
""" | |
# Summary: Created by request for a project involving looping through videos on a Raspberry Pi. | |
# | |
# Inside Joke: Created for the New Biebs on the Block | |
# | |
# | |
#Copyright (c) 2016 Will Christensen<wirewc@gmail.com> | |
# | |
#Permission is hereby granted, free of charge, to any person obtaining a copy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Name of Container as the argument to the script. | |
CNAME=$1 | |
mkdir -p /srv/nspawns/$CNAME/var/lib/rpm; rpm --rebuilddb --root=/srv/nspawns/$CNAME | |
mkdir /srv/nspawns/isos; cd /srv/nspawns/isos; | |
wget http://mirror.centos.org/centos-7/7/os/x86_64/Packages/centos-release-7-3.1611.el7.centos.x86_64.rpm | |
rpm -i --root=/srv/nspawns/$CNAME --nodeps /srv/nspawns/isos/centos-release-7-3.1611.el7.centos.x86_64.rpm | |
yum --installroot=/srv/nspawns/$CNAME install -y rpm-build yum net-tools openssh-server vim systemd-networkd iproute hostname screen iputils dhclient passwd | |
echo $CNAME > /srv/nspawns/$CNAME/etc/hostname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Written for Python 3.5, works on 2.7.3 + | |
Pip install the following moduels: | |
psycopg2==2.7.1 | |
PyYAML==3.12 | |
Copyright (C) 2017 William Christensen | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
LIMIT_DAYS=7 | |
TIME_ZONE=$(date +%Z) | |
DEBUG=false | |
for session in $(x2golistsessions_root); do | |
#Get state | |
state=$(echo $session|awk -F \| '{print $5}') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1Dm17dxjmg4YZZbgN4E3YALgaHUf5GyZPA https://explorer.blockstack.org/address/1Dm17dxjmg4YZZbgN4E3YALgaHUf5GyZPA |
OlderNewer