Skip to content

Instantly share code, notes, and snippets.

@hellosteadman
hellosteadman / twopy.py
Created March 4, 2014 09:59
Add your Twitter friends' RSS feeds to a single OPML file
"""
This script requires the following Packages
1: Twitter: https://pypi.python.org/pypi/twitter
2: PyQuery: https://pypi.python.org/pypi/pyquery
3: Jinja2: https://pypi.python.org/pypi/Jinja2
It's fairly primitive but works. It uses a Jinja2 template to create an OPML
file from the RSS feeds of the websites run by the people you follow on
Twitter.
@techslides
techslides / golang-prettyurl.go
Created February 13, 2014 16:38
Generating Pretty Urls for SEO in GoLang using string and regex packages
type Post struct {
// db tag lets you specify the column name if it differs from the struct field
Id int64 `db:"post_id"`
Created int64
Title string `form:"Title" binding:"required"`
Body string `form:"Body"`
UserId int64 `form:"UserId"`
Url string
}
@lelandbatey
lelandbatey / whiteboardCleaner.md
Last active November 26, 2025 06:24
Whiteboard Picture Cleaner - Shell one-liner/script to clean up and beautify photos of whiteboards!

Description

This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.

The script is here:

#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"

Results

@debasishg
debasishg / gist:8172796
Last active November 16, 2025 01:54
A collection of links for streaming algorithms and data structures

General Background and Overview

  1. Probabilistic Data Structures for Web Analytics and Data Mining : A great overview of the space of probabilistic data structures and how they are used in approximation algorithm implementation.
  2. Models and Issues in Data Stream Systems
  3. Philippe Flajolet’s contribution to streaming algorithms : A presentation by Jérémie Lumbroso that visits some of the hostorical perspectives and how it all began with Flajolet
  4. Approximate Frequency Counts over Data Streams by Gurmeet Singh Manku & Rajeev Motwani : One of the early papers on the subject.
  5. [Methods for Finding Frequent Items in Data Streams](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.9800&rep=rep1&t
@maxfenton
maxfenton / a-new-mac-setup.md
Last active April 17, 2024 10:55
System setup stuff for a new OLD mac (a/o 2020)

New computer setup

a/o 2020-05-29

--

Format the drive

  1. Restart with Cmd-R or Cmd-D
  2. Erase drive / 3x if second-hand
  3. Reinstall MacOS
@ryanwi
ryanwi / software-terms.dic
Last active March 11, 2025 17:24
Dictionary of software technology terms
.NET
.NET Core
Agile
AI/alias[AI|Artificial Intelligence]
Airflow
Android
Ansible
Angular 2/alias[Angular2|Angular 2]
AngularJS/js[Angular]
API
@leommoore
leommoore / linux_rootkit_security.md
Last active December 20, 2015 12:48
Linux Rootkit Security

#Linux Rootkit Security

It is important to use a rootkit checker to ensure that you system is not compromised. These work by looking for code sequences from known rootkits and comparing various files against MD5 checksums when the system is known to be clean (ie after initial installation).

Two such programs are:

These should be run regularly, preferably from Cron. It also helps to run them when the computer is online so that they can automatically update their database of known rootkits.

@leommoore
leommoore / linux_running_a_node_service_pm2.md
Last active March 23, 2019 11:29
Linux - Running a Node Service (PM2)
@leommoore
leommoore / dns_basics.md
Last active January 30, 2021 03:34
DNS Basics

#DNS Basics Domain names are a core feature of the internet. It is simply a mechanism to give a friendly name to remove the need to use ip addresses directly. It also has a number of advantages, such as:

  1. It allows you to have more than one domain name pointing at the same ip address (ie same website).
  2. It allows you to host more than one website on a specific ip address (ie shared hosting, the website shown in the one associated with the domain name)
Record Type
@leommoore
leommoore / linux_cron_basics.md
Last active September 8, 2025 08:50
Linux - Cron Basics

#Linux - Cron Basics

Cron is a linux scheduling service which is used primarly on servers. It works by waking up each minute and checking its configuration files (known as crontabs) to see if there is anything to run. Cron is normally started at boot time.

###Typical uses:

  • Rotating log files
  • Summarising log files (ie Logwatch and Webalizer)
  • Autochecking for Distro updates
  • Performing Backups