Skip to content

Instantly share code, notes, and snippets.

@IanColdwater
IanColdwater / twittermute.txt
Last active September 2, 2024 06:19
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@danielribes
danielribes / moodle_versions_guide.md
Last active September 4, 2024 15:46
Survival Guide to Moodle Versions

Moodle Versions

This is a quick survival guide to Moodle principal versions and requirements.

⚠️ Please note

This gist is no longer maintained. I leave it here partly for historical reasons. Currently, Moodle documentation for different versions has improved significantly, and it is more detailed and easier to identify things like specific upgrade paths.

In general, you can find the main information about Moodle versions at the following links:

@dansimpson
dansimpson / ac_stream.rb
Created March 1, 2017 03:43
Aircraft position streaming
require 'socket'
require 'json'
class AircraftPositionStream
def initialize host, port
@host = host
@port = port
end
@nocturnalgeek
nocturnalgeek / MailinatorAliases
Last active August 21, 2024 01:58
A list of alternate domains that point to @mailinator.com
@binkmail.com
@bobmail.info
@chammy.info
@devnullmail.com
@letthemeatspam.com
@mailinater.com
@mailinator.net
@mailinator2.com
@notmailinator.com
@reallymymail.com
@amit
amit / adremover.user.js
Last active December 16, 2015 02:49
Ad remover
// ==UserScript==
// @name HQLive ad remover
// @description Version 1.2 - Remove annoying chat and ad iframes from hqlive
// @namespace http://hqlive.net/
// @include http://*hqlive.net/*
// @include http://*cricket-365.tv/*
// @include http://*cricvid.com/*
// @include http://*cricvip.com/*
// @include http://*live365.tv/*
@abhishek77in
abhishek77in / backup.rake
Last active April 13, 2021 00:09 — forked from rantoniuk/backup.rake
Rake task for backing up MySQL database to AWS-S3 in Rails Application
namespace :db do desc "Backup database to AWS-S3"
task :backup => [:environment] do
datestamp = Time.now.strftime("%Y-%m-%d_%H-%M-%S")
backup_filename = "#{Rails.root.basename}-#{datestamp}.sql"
db_config = ActiveRecord::Base.configurations[Rails.env]
# process backup
`mysqldump -u #{db_config['username']} -p#{db_config['password']} -i -c -q #{db_config['database']} > tmp/#{backup_filename}`
`gzip -9 tmp/#{backup_filename}`
puts "Created backup: #{backup_filename}"