Skip to content

Instantly share code, notes, and snippets.

@cabb
cabb / nintento switch privacy policy DE
Last active September 20, 2023 15:34
privacy policy DE - use git to get diff
Nintendo-Account-Datenschutzrichtlinie
Version: 09.2023 (DE-EU)
Die Nintendo Co., Ltd., 11-1 Hokotate-cho, Kamitoba, Minami-ku, Kyoto, 601-8501, Japan („NCL“) und die Nintendo of Europe GmbH, Goldsteinstraße 235, 60528 Frankfurt am Main, Deutschland („NOE“) respektieren die Datenschutzrechte ihrer Nutzer und erkennen die Wichtigkeit des Schutzes ihrer personenbezogenen Daten an.
Diese Nintendo-Account-Datenschutzrichtlinie (die „Datenschutzrichtlinie“) ist dazu bestimmt, Sie über die Erhebung, die Verarbeitung, die Nutzung und den Schutz der von Ihnen über den Nintendo-Account zur Verfügung gestellten Daten zu informieren. Die Daten werden vornehmlich von NCL erhoben. Sollten Sie in Kontakt mit NOE kommen, insbesondere wenn Sie die Nintendo-Shop-Services zum Erwerb Digitaler Produkte von NOE oder zur Registrierung von Lizenzen für Digitale Produkte nutzen, werden Daten von NOE erhoben. NCL und NOE sind jeweils ausschließlich für ihre eigenen Datenverarbeitungsprozesse nach dieser Datenschutzrichtlinie veran
@cabb
cabb / gist:eac497f4596b32e0d0fb3ca2207b4a99
Created August 24, 2022 12:36
Regex to add thousand separators to long numbers
# Regex
\d(?=(?:\d{3})+(?!\d))
# replace
$0.
@cabb
cabb / cve-2022-30190.md
Created June 3, 2022 08:31
CVE-2022-30190 Microsoft Support Diagnostic Tool Vulnerability
@cabb
cabb / svg_processing.rb
Created May 10, 2022 08:12 — forked from botanicus/svg_processing.rb
Change colours of a SVG image with Nokogiri.
#!/usr/bin/env ruby
# encoding: utf-8
require "nokogiri"
require "fileutils"
# setup
required_colors = ["ff000", "006600", "003399"]
# main
@cabb
cabb / authentication.rb
Created March 18, 2022 09:26 — forked from adhrinae/authentication.rb
Hanami User Authentication with session
# web/controllers/authentication.rb
module Web
module Authentication
module Skip
def authenticate!
end
end
def self.included(action)
action.class_eval do
@cabb
cabb / thread_pool.rb
Created October 6, 2021 15:25 — forked from ik5/thread_pool.rb
example on how to do threadpool in ruby
require 'thread'
queue = Queue.new
threads = []
1.step(1000) do |i|
queue << i
end
8.times do
@cabb
cabb / git-list-branches.sh
Created October 4, 2021 08:50
Git list of all branches including the creator
git for-each-ref --format='%(color:cyan)%(authordate:format:%m/%d/%Y %I:%M %p) %(align:35,left)%(color:yellow)%(authorname)%(end) %(color:reset)%(refname:strip=3)' --sort=authordate refs/remotes
organization_obj = []
10.times.each do |_i|
organization_obj <<
{ :name => 'names.sample',
:title => 'title.sample',
:salary => rand(50000..100000)
}
end
@cabb
cabb / gist:57d3c22ec9a250d841f8
Created March 29, 2016 07:19
ExtJS Dom Analysis for memory leaks. This function should be called after every action to see if the number of divs increases without any bounds
Ext.getBody().select('div').getCount()