Skip to content

Instantly share code, notes, and snippets.

@dwf
dwf / resize_videos.py
Created November 29, 2011 19:41
A batch video-resizing script.
#!/usr/bin/env python
# Copyright (c) 2009, David Warde-Farley
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
@minhajuddin
minhajuddin / README.md
Created December 21, 2011 03:29
Script to retrieve content from google cache

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@lopes
lopes / puck.sh
Last active August 28, 2024 00:51
A DNS propagation checker in Shell Script. #shell #shellscript #dns
#!/bin/bash
#puck.sh
# A DNS propagation checker. Fetches in many DNS servers around
# the world for IPs assigned to a given domain.
#
# Author: José Lopes de Oliveira Júnior <http://joselop.es>
#
#
@yanofsky
yanofsky / LICENSE
Last active October 17, 2024 22:49
A script to download all of a user's tweets into a csv
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@cdfmr
cdfmr / panoramio.sh
Last active January 25, 2018 10:43
Download Panoramio pictures via user id
#!/bin/sh
delay=0
timeout=10
retry=2
usage()
{
echo "Usage: `basename $0` userid"
exit 1
@zmwangx
zmwangx / fb-dl.py
Last active November 28, 2023 20:29
Scrape all photos from a public Facebook page.
#!/usr/bin/env python
############################### README ###############################
# External dependencies:
# * libmagic
# * python-dateutil
# * python-magic
# * requests
#
# The shell command call at the end was tested with GNU date from GNU
@BretFisher
BretFisher / repair-windows-update.bat
Last active May 9, 2024 04:16
Reset Windows Update components RE: KB971058
@echo off
REM Automation of Steps to Reset Windows Updates
REM Tested on Server 2012 R2, likely works on everything Win7/2008R2 and up
REM by Bret Fisher [email protected]
REM also find this info and more in a blog article at http://www.fishbrains.com/2015/01/29/untitled/
REM Origional Steps (identical to this): http://support.microsoft.com/kb/971058
REM This file Copyright MIT License
REM Stop Services
@StigNygaard
StigNygaard / Stigs_Art_Grabr.user.js
Last active October 7, 2017 19:13
Grabbing high(er) resolution album cover-art from allmusic, bandcamp, google play, itunes, last.fm, soundcloud, amazon, cdbaby, jamendo, magnatune and more...
/********************************************************************/
/* Stig's Art Grabr development has moved to a GitHub repository: */
/* https://github.com/StigNygaard/Stigs_Art_Grabr */
/********************************************************************/
@M0r13n
M0r13n / doh
Last active November 16, 2024 17:08
Setup Cloudflare as a DoH (DNS over HTTPS) resolver on Mikrotik devices (RouterOS v7.0.2+)
# Temporarily add a normal upstream DNS resolver
/ip dns set servers=1.1.1.1,1.0.0.1
# CA certificates extracted from Mozilla
/tool fetch url=https://curl.se/ca/cacert.pem
# Import the downloaded ca-store (127 certificates)
/certificate import file-name=cacert.pem passphrase=""
# Set the DoH resolver to cloudflare