Skip to content

Instantly share code, notes, and snippets.

@nicbou
nicbou / Immigration notes - 2023-12-18.md
Created December 18, 2023 12:01
Immigration notes - 2023-12-18

Untätigkeitsklage

  • The speed and effect of an Untätigkeitsklage are location-specific
    • In Berlin, they're not petty about it. If there is a credible threat of legal action, it will usually speed things up and not go to court.
    • In other places it can bes perceived as hostile and make things worse.
  • If it does not go to court, you bear your own legal costs.
  • If it goes to court, it can take a few months (~9 months for a PR) and up to 2-3 years. You might still have to bear the costs.
  • If you file the lawsuit yourself, without a lawyer, it won't be perceived as a credible threat and it will likely go to court.

"I do wonder if at some point the courts are like naja"

const countryCodeData = [
{
"country": "Afghanistan",
"abbreviation": "AF"
},
{
"country": "Albania",
"abbreviation": "AL"
},
{
@nicbou
nicbou / search.php
Created July 4, 2020 11:28
Trly.gd
<?php
//Disable magic quotes, hassle-free
if (get_magic_quotes_gpc()) {
$process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
while (list($key, $val) = each($process)) {
foreach ($val as $k => $v) {
unset($process[$key][$k]);
if (is_array($v)) {
$process[$key][stripslashes($k)] = $v;
$process[] = &$process[$key][stripslashes($k)];
@nicbou
nicbou / ChromeCastService.js
Created November 20, 2017 22:04
[JS] How to send videos with subtitles to a ChromeCast device
class ChromeCastService {
constructor() {
this.castSession = null;
this.sessionRequest = new chrome.cast.SessionRequest(chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID);
const apiConfig = new chrome.cast.ApiConfig(
this.sessionRequest,
(session) => { // sessionListener
console.log('Received ChromeCast session', session)
this.castSession = session;
@nicbou
nicbou / update-all.js
Created July 25, 2017 08:12
Check all Jenkins plugins on the plugin update page
// Instead of manually clicking every checkbox on the plugins page, enter this in the JavaScript console:
document.querySelectorAll('#plugins .plugin .pane>input[type=checkbox]').forEach(c => c.checked = true)
@nicbou
nicbou / exportObject.js
Created September 16, 2016 11:05
Pretty print JavaScript objects in Chrome Developer Tools
// Paste this in your console
Object.prototype.export=function(){e=JSON.stringify(this,0,2).replace(/\"([^(\")"]+)\":/g,"$1:");copy(e);console.log(e);console.warn('Copied to clipboard') };
// Then do this for any object you want to copy
myObject.export();
// And you will get a nicely formatted version of your object in the clipboard,
// properly spaced, without the properties wrapped in quotes.
const myObject = {a: 1, b: 'bee', c: [1,2,3]};