Skip to content

Instantly share code, notes, and snippets.

View deoren's full-sized avatar
💭
I may be slow to respond.

Deoren Moor deoren

💭
I may be slow to respond.
View GitHub Profile
@jhamilton09
jhamilton09 / UninstallQuickTime.ps1
Created April 19, 2016 15:15
PowerShell script to uninstall QuickTime for Windows
<#
Name of the script: UninstallQuickTime.ps1
Author of the script: Jason Hamilton
Author contact information: https://www.404techsupport.com/
Version of the script: 0.1
Where you got the idea: QuickTime deprecated by Apple
Version of PowerShell required: 3.0
If Elevated permissions required: Yes
If specific modules are required: No
Comments about new types of constructions:
@vstakhov
vstakhov / rmilter.md
Created September 8, 2015 14:38
rmilter plans

Plans for rmilter

What's wrong

Rmilter had been created some years before rspamd development started. Unfortunately, it wasn't actively developed for many years so far. It has several design flaws, it uses archaic configuration system, it uses threads, it contains a lot of duplicated functions with rspamd and, finally, it has a lot of code shared with rspamd (but it's not always up-to-date however). I hasn't found anybody willing to support this code as a separate project, so I think it's a good point to stop and think of what to do afterwards.

What's proposed to do

After some thinking I've decided to reorganize rmilter project and to integrate it to the rspamd meta-project.

@stupidpupil
stupidpupil / gist:83be3a5d0daf3db17b2b
Created April 16, 2015 23:59
FreeOTP Tokens.xml Exporter
#!/usr/bin/env ruby
module GoogleBase32
Alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567" #RFC4648
Digits = Alphabet.chars
Mask = Digits.length - 1
Shift = Digits.length.to_s(2).match(/0*\Z/)[0].length
def self.encode_array(array)
@mweisel
mweisel / Get-DiskFree.ps1
Last active December 6, 2023 00:39
PowerShell advanced function (script cmdlet) to query, retrieve, and display local drive/disk information. (https://binarynature.blogspot.com/2010/04/powershell-version-of-df-command.html)
function Get-DiskFree
{
[CmdletBinding()]
param
(
[Parameter(Position=0,
ValueFromPipeline=$true,
ValueFromPipelineByPropertyName=$true)]
[Alias('hostname')]
[Alias('cn')]
@alanorth
alanorth / default.conf
Last active July 25, 2019 04:58
TLS configuration for nginx, reverse proxying to DSpace in Tomcat.
# Handle {{ nginx_server_name }} http -> https
#
server {
listen 80;
server_name {{ nginx_server_name }};
# feedburner doesn't support https :(
location ~ /(feed|open-search/discover) {
# Send requests to Tomcat
proxy_pass http://127.0.0.1:8443;
#!/bin/sh
# Echo all commands to stdout
set -x
# Fail on non-zero exit status
set -e
# Install puppet and passenger
gem install puppet passenger --no-ri --no-rdoc
@jheidt
jheidt / add-pidgin-smiley.sh
Last active August 29, 2015 14:01
Create a pidgin smily from an image file
#!/bin/bash
#- add-pidgin-smily 0.1
#- Copyright (C) 2014 Jake Heidt [email protected]
##
##
## :D :D :D CREATES PIDGIN SMILIES :D :D :D
##
##
@kyledrake
kyledrake / ferengi-plan.txt
Last active January 10, 2025 14:02
How to throttle the FCC to dial up modem speeds on your website using Nginx
# The blog post that started it all: https://neocities.org/blog/the-fcc-is-now-rate-limited
#
# Current known FCC address ranges:
# https://news.ycombinator.com/item?id=7716915
#
# Confirm/locate FCC IP ranges with this: http://whois.arin.net/rest/net/NET-165-135-0-0-1/pft
#
# In your nginx.conf:
location / {
@rothgar
rothgar / main.yml
Last active April 28, 2025 04:18
Generate /etc/hosts with Ansible
# Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source.
# Will include all hosts the playbook is run on.
# Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html
- name: "Build hosts file"
lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present
when: hostvars[item].ansible_default_ipv4.address is defined
with_items: groups['all']
@bradmontgomery
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active March 20, 2025 17:17
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert