Skip to content

Instantly share code, notes, and snippets.

View Aietes's full-sized avatar

Stefan Krüger Aietes

  • floating pixels
  • Heidelberg, Germany
  • 15:20 (UTC +01:00)
  • X @StefanSays
View GitHub Profile
@motla
motla / esp-idf-vscode.md
Last active January 16, 2023 14:36
ESP-IDF 4 in VSCode : How to setup tasks and debug
@iki
iki / docker-compose.yml
Created September 15, 2019 20:12
Docker-compose nginx CORS proxy
version: '3.7'
services:
whoami:
image: jwilder/whoami
ports:
- 127.0.0.1:7000:8000
cors:
@AirBorne04
AirBorne04 / findMyPort.js
Created August 19, 2018 13:52
Find a usable port by given port-range
var netstat = require("node-netstat");
var getNextAvailablePort = function (portRangeAsString) {
var portString = portRangeAsString || process.env.USE_PORT_RANGE;
if (portString) {
var portStart, portLast;
portStart = parseInt(portString.split("-")[0]);
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 14, 2024 15:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@pauloricardomg
pauloricardomg / cors.nginxconf
Last active March 8, 2024 18:31
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
#
# Acts as a nginx HTTPS proxy server
# enabling CORS only to domains matched by regex
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/
#
# Based on:
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html
# * http://enable-cors.org/server_nginx.html
#
server {
@briancavalier
briancavalier / simple-promise-retry.js
Created February 24, 2011 18:35
A few general patterns for retries using promises
function keepTrying(otherArgs, promise) {
promise = promise||new Promise();
// try doing the important thing
if(success) {
promise.resolve(result);
} else {
setTimeout(function() {
keepTrying(otherArgs, promise);