Skip to content

Instantly share code, notes, and snippets.

View alexanderjeurissen's full-sized avatar

Alexander Jeurissen alexanderjeurissen

View GitHub Profile
@alexanderjeurissen
alexanderjeurissen / openapi.json
Created January 16, 2025 14:02
gitlab openapi V3.0 schema
{
"openapi": "3.0.1",
"info": {
"title": "GitLab API",
"version": "v4",
"description": "An OpenAPI definition for the GitLab REST API.\nFew API resources or endpoints are currently included.\nThe intent is to expand this to match the entire Markdown documentation of the API:\n<https://docs.gitlab.com/ee/api/>. Contributions are welcome.\n\nWhen viewing this on gitlab.com, you can test API calls directly from the browser\nagainst the `gitlab.com` instance, if you are logged in.\nThe feature uses the current [GitLab session cookie](https://docs.gitlab.com/ee/api/index.html#session-cookie),\nso each request is made using your account.\n\nInstructions for using this tool can be found in [Interactive API Documentation](https://docs.gitlab.com/ee/api/openapi/openapi_interactive.html)\n",
"termsOfService": "https://about.gitlab.com/terms/",
"license": {
"name": "CC BY-SA 4.0",
"url": "https://gitlab.com/gitlab-org/gitlab/-/blob/master/LICENSE"
@alexanderjeurissen
alexanderjeurissen / h1_hacker_api.json
Created January 15, 2025 13:54
HackerOne Hacker API OpenAPI schema
{
"openapi": "3.0.1",
"info": {
"title": "HackerOne Hacker API",
"version": "v1"
},
"servers": [
{
"url": "https://api.hackerone.com/v1"
}
@alexanderjeurissen
alexanderjeurissen / ynab_openapi_v3_1_spec.json
Created January 11, 2025 16:59
ynab OPENAPI spec as of 11-01-2025
This file has been truncated, but you can view the full file.
{
"openapi": "3.1.0",
"info": {
"title": "YNAB API Endpoints",
"description": "Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.ynab.com",
"version": "1.72.1"
},
"servers": [
{
"url": "https://api.ynab.com/v1"
@alexanderjeurissen
alexanderjeurissen / main.go
Created August 13, 2023 12:24
json deserialisation in Go
package main
import (
"encoding/json"
"fmt"
)
type Person struct {
Name string `json:"naam"`
Age int `json:"leeftijd"`
t.prefs_.set('color-palette-overrides',[
"#073642",
"#dc322f",
"#859900",
"#b58900",
"#268bd2",
"#d33682",
"#2aa198",
"#eee8d5",
"#002b36",

Keybase proof

I hereby claim:

  • I am alexanderjeurissen on github.
  • I am alexanderjeuriss (https://keybase.io/alexanderjeuriss) on keybase.
  • I have a public key ASCpEx-csHMHh317Z0S8DS3yk0HfFgXLjSXyhobgQiWc6go

To claim this, I am signing this object:

@alexanderjeurissen
alexanderjeurissen / rename_master_to_main
Last active June 19, 2020 23:46
Rename github master branch to main, change default github branch automatically using `hub. invoke as: rename_master_to_main username/repo
#!/usr/bin/env zsh
set -e
function echoStep {
export __TOTAL_START="${__TOTAL_START:-$(date +'%s')}"
__STEP=$1
__STEP_START=$(date +'%s')
printf $'\e[37;44m\033[1m'"$1"
echo $'\033[0m'
@alexanderjeurissen
alexanderjeurissen / vimiumsettings.vim
Last active March 25, 2017 13:11
Vimium settings
" Scroll down with C-d, and up with <c-u>
map <c-d> scrollPageDown
map <c-u> scrollPageUp
" close tab with d
unmap d
unmap x
map d removeTab
" Use u to undo tab close instead of X
### Keybase proof
I hereby claim:
* I am alexanderjeurissen on github.
* I am ajeurissen (https://keybase.io/ajeurissen) on keybase.
* I have a public key ASAql6KYoz33wF0zCCJlU7xmzMJ3aeGQts2GG3SXjwT65Ao
To claim this, I am signing this object:
#!/bin/bash
# original author of this snippet: Esjee
monitor=`xrandr | grep -i edp | cut -d " " -f 1`
xrandr --newmode "1440x900_60.00" 106.50 1440 1528 1672 1904 900 903 909 934 -hsync +vsync
xrandr --addmode $monitor 1440x900_60.00
xrandr --output $monitor --mode 1440x900_60.00