Skip to content

Instantly share code, notes, and snippets.

View mkoertgen's full-sized avatar
💭
Mostly working on DevOps stuff (#azuredevops, #k8s)

Marcel Körtgen mkoertgen

💭
Mostly working on DevOps stuff (#azuredevops, #k8s)
View GitHub Profile

Did you know chat rooms are still a thing? They didn't die with AOL. IRC has been around since before the world wide web. IRC has been and continues to be popular for technical communities. There are channels for many frameworks, languages, and conferences.

That Conference's offical channel is #ThatConference on the FreeNode Network. To join us, just go here: https://kiwiirc.com/client/irc.freenode.net/thatconference/, type in a nick and hit start.

But what is it?

IRC stands for Internet Relay Chat. IRC is an open standard. No one person or company "owns" it. An IRC network is a decentralised cluster of servers. Servers are typically disturbed around the world. IRC clients connects to one of the servers in the cluster and joins channels (chat rooms) to communicate. Users send messages to each other in channels, send private messages to others users, send files, and create new channels.

Let's get started

@mamund
mamund / gist:794419
Created January 25, 2011 02:39
JSON Link Standardization Examples
/* some suggestions on implementing hyperlinks in json */
// 5988-style (http://tools.ietf.org/html/rfc5988)
{ "link" :
{
"href" : "...",
"rel" : "...",
"hreflang" : "...",
"media" : "...",
"title" : "...",
@bbrowning
bbrowning / config.ru
Created November 8, 2013 21:49
Poor Puma performance with keepalives enabled on JRuby. For both 'ab' runs, Puma was warmed up before running the actual test shown.
run lambda { |env|
[200, { 'Content-Type' => 'text/plain' }, ["hello world\n"]]
}
@darioblanco
darioblanco / TransactionMockFuckTest.java
Last active August 31, 2020 09:46
Mock a Jedis transaction with mockito
import redis.clients.jedis.Client;
import redis.clients.jedis.Jedis;
import redis.clients.jedis.Transaction;
import org.testng.annotations.*;
import static org.mockito.Mockito.*;
public class TransactionMockFuckTest {
/**
* Let's say we want to test the following method
@bf4
bf4 / bin-squash_migrations
Created November 12, 2015 16:07
Squash Rails migrations in this one easy step
#!/usr/bin/env bash
git ls-files db/migrate/*.rb | sort | tail -1 | \
ruby -e "schema_version=STDIN.read[/\d+/]; init_schema=%(db/migrate/#{schema_version}_init_schema.rb);
%x(git rm -f db/migrate/*.rb;
mkdir db/migrate;
git mv db/schema.rb #{init_schema};
rake db:migrate;
git add db/schema.rb; git commit -m 'Squashed migrations')"
@brianburridge
brianburridge / gist:8d2755a73dd5b4f0332b
Created December 10, 2014 19:47
Export local db to JSON
namespace :json do
desc "Export all data to JSON files"
task :export => :environment do
Rails.application.eager_load!
ActiveRecord::Base.descendants.each do |model|
file = File.open(File.join(Rails.root, "db", "export", "#{model.table_name}.json"), 'w')
file.write model.all.to_json
file.close
end
@haacked
haacked / download-nuget-licenses.ps1
Last active September 5, 2022 16:35
A PowerShell script to download your NuGet package licenses as first seen in http://haacked.com/archive/2015/03/28/download-nuget-package-licenses/
Split-Path -parent $dte.Solution.FileName | cd
New-Item -ItemType Directory -Force -Path ".\licenses"
@( Get-Project -All | ? { $_.ProjectName } | % { Get-Package -ProjectName $_.ProjectName } ) | Sort -Unique Id | % { $pkg = $_ ; Try { (New-Object System.Net.WebClient).DownloadFile($pkg.LicenseUrl, (Join-Path (pwd) 'licenses\') + $pkg.Id + ".html") } Catch [system.exception] { Write-Host "Could not download license for $($pkg.Id)" } }
@cgudea
cgudea / geodesy_regex.py
Created August 28, 2014 19:38
regular expressions for verifying common coordinate systems
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
@mkoertgen
mkoertgen / batch-merge-prs.md
Last active October 13, 2023 09:09
Accept all dependabot pull requests using GitHub CLI
@sevennineteen
sevennineteen / example.json
Created December 28, 2012 18:16
Example using Jinja2 to populate a JSON payload template
{ "path": "/content/geometrixx/my-first-jinja-page",
"properties": [
{ "name": "jcr:primaryType",
"value": "cq:Page" }],
"nodes": [
{ "path": "jcr:content",
"properties": [
{ "name": "jcr:primaryType",
"value": "cq:PageContent"},