Skip to content

Instantly share code, notes, and snippets.

View wouterds's full-sized avatar
:octocat:
Hello world!

Wouter De Schuyter wouterds

:octocat:
Hello world!
View GitHub Profile
@wouterds
wouterds / convert-mapstylejson-to-urlargs.php
Created January 27, 2015 14:42
Convert google maps style json to url arguments to use for google maps static images.
<?php
public function mapStylesUrlArgs($mapStyleJson)
{
$params = [];
foreach (json_decode($mapStyleJson, true) as $style) {
$styleString = '';
if (isset($style['stylers']) && count($style['stylers']) > 0) {
@wouterds
wouterds / docker-compose.yml
Last active January 27, 2024 10:24
Umbrel behind (traefik) reverse proxy
version: '3.7'
x-logging: &default-logging
driver: journald
options:
tag: "{{.Name}}"
services:
tor:
container_name: tor
image: lncm/tor:0.4.4.7@sha256:48094db3afff76472b20cd7b6a41151ef5e380e5ec5e6042c36b0f861236c45f
/*
* sixpair.c version 2007-04-18
* Modified to run on Mac OSX by
* Erlend Cleveland 2011-09-04
*
* Compile with: gcc -o sixpair sixpair.c -lusb
*/
#include <string.h>
#include <unistd.h>
openapi: 3.0.3
info:
description: Endpoints used by the Mobile App.
version: 3.0.0
title: Mobile API
servers:
- url: https://mobile.api.prd.itsme.services/v3
description: Production
- url: https://mobile.api.e2e.itsme.services/v3
description: E2E
{
"name": "gewoon-genieten-met-play7",
"items": [
{
"id": "tag:telenet.be:paramedics",
"title": "Paramedics",
"synopsis": "",
"seasons": [],
"images": {
"cover": "https://i.imgur.com/QxbZJrl.jpg",
{
"name": "voorproefje-streamz",
"items": [
{
"id": "tag:telenet.be:demo:big-little-lies",
"title": "Big Little Lies",
"synopsis": "",
"seasons": [],
"images": {
"cover": "https://i.imgur.com/FWeCvON.jpg",
{
"name": "nu-op-play5",
"items": [
{
"id": "tag:telenet.be:demo:the-rookie-feds",
"title": "The Rookie: Feds",
"synopsis": "",
"seasons": [],
"images": {
"cover": "https://i.imgur.com/ymUul4f.jpg",
{
"name": "moet-je-zien",
"items": [
{
"id": "tag:telenet.be:demo:de-mol",
"title": "De Mol",
"synopsis": "",
"seasons": [],
"images": {
"cover": "https://i.imgur.com/GTFHSYN.jpg",
sudo chown -R code:code /home/code
sudo chmod 600 /home/code/.ssh/id_rsa
sudo chmod 600 /home/code/.ssh/id_rsa.pub
sudo chmod 600 /home/code/.ssh/id_rsa.pem
sudo chmod 600 /home/code/.ssh/authorized_keys
sudo chmod 700 /home/code/.ssh