Instantly share code, notes, and snippets.

View CIS Controls
# CIS Controls
from: https://www.cisecurity.org/controls/
## Basic CIS Controls
1. Inventory and Control of Hardware Assets
2. Inventory and Control of Software Assets
3. Continuous Vulnerability Management
4. Controlled Use of Administrative Privileges
5. Secure Configuration for Hardware and Software on Mobile Devices, Laptops, Workstations and Servers
View newsphrases.py
from textblob import TextBlob, Word
import sys
import random
from newspaper import Article
from fuzzywuzzy import fuzz
from nltk.stem import WordNetLemmatizer
def nphra(text):
# Extract Noun Phrases from text input
blob = TextBlob(text)
View how to auth python flickr-api
Hi,
Just a snippet of code to demonstrate the solution to people who arrive here and are still scratching their heads:
import flickr_api
flickr_api.set_keys(api_key = 'my_api_key', api_secret = 'my_secret')
a = flickr_api.auth.AuthHandler()
url = a.get_authorization_url("read")
print url
View my_podcasts.opml
<?xml version="1.0" encoding="UTF-8"?>
<opml version="1.0">
<head>
<title>Overcast Podcast Subscriptions</title>
</head>
<body>
<outline type="rss" text="Benjamen Walker's Theory of Everything" title="Benjamen Walker's Theory of Everything" xmlUrl="http://feeds.prx.org/toe" htmlUrl="https://toe.prx.org/" />
<outline type="rss" text="DevOps Cafe Podcast" title="DevOps Cafe Podcast" xmlUrl="http://devopscafe.libsyn.com/rss" htmlUrl="http://devopscafe.org/" />
<outline type="rss" text="Invisibilia" title="Invisibilia" xmlUrl="http://www.npr.org/rss/podcast.php?id=510307" htmlUrl="http://www.npr.org/programs/invisibilia" />
<outline type="rss" text="Web Equity Show with Justin Cooke and Ace Chapman" title="Web Equity Show with Justin Cooke and Ace Chapman" xmlUrl="http://webequityshow.libsyn.com/rss" htmlUrl="http://webequityshow.libsyn.com/podcast" />
View Exp. God Chapter Summaries.md

Unit 1: God's Will and Your Life

"I am the vine; You are the branches. If a man remains in me and I in him, he will bear much fruit; apart from me you can do nothing." -John 15:5

Day 1: Jesus Is Your Way

  • As I follow Jesus one day at a time, He will keep me in the center of God's will.
  • Jesus is my Way. I don't need any other road map.

Day 2: Jesus is Your Model

  • The Bible is my guide for faith and practice
  • The right question is, What is God's will?
View transfer.fish
function transfer
if test (count $argv) -eq 0
echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
return 1
end
## get temporarily filename, output is written to this file show progress can be showed
set tmpfile ( mktemp -t transferXXX )
## upload stdin or file
View CUDA (NVidia GPU) on Centos 7
#########
# Steps to enable CUDA (NVIDIA GPU) on a Centos7 box
# (This is not a script, just some notes)
#########
# setup chroot sftp user for workers to be able to drop files:
# http://www.thegeekstuff.com/2012/03/chroot-sftp-setup/
#########
# CUDA
View worm_cardio.js
function onGLC(glc) {
glc.loop();
// glc.playOnce();
// glc.size(400, 400);
glc.setDuration(2);
glc.setFPS(28);
// glc.setMode("single");
// glc.setEasing(false);
glc.setMaxColors(22);
var list = glc.renderList,
View four_looper.js
function onGLC(glc) {
glc.loop();
// glc.playOnce();
// glc.size(400, 400);
glc.setDuration(1);
glc.setFPS(22);
// glc.setMode("single");
// glc.setEasing(false);
glc.setMaxColors(25);
glc.styles.backgroundColor = "#101010";
View love_explosion.js
function onGLC(glc) {
glc.loop();
// glc.playOnce();
// glc.size(400, 400);
glc.setDuration(3.5);
glc.setFPS(24);
// glc.setMode("single");
// glc.setEasing(false);
glc.setMaxColors(32);
glc.styles.backgroundColor = "rgba(0,0,90,.3)";