Skip to content

Instantly share code, notes, and snippets.

View JulianBerger's full-sized avatar

Julian Berger JulianBerger

View GitHub Profile
@kmanadkat
kmanadkat / Nginx-reverse-proxy.md
Created February 22, 2023 12:39
Setting Up NGINX Reverse Proxy For Local Development

Setup Hosts File

This is very straight forward process and involves editing a single file. You will need sudo privileges for this.

  1. Open Terminal and execute below to open hosts file

    sudo nano /etc/hosts
@AidasK
AidasK / HowToDeleteAllCloudflareRecors.md
Last active March 31, 2026 16:39
Cloudflare delete all DNS records. Just go to cloudflare dns zones, open your browers developer console and paste this javascript code.

image

Real developers are not used to clicking, it's allways easier to write a script to do it for you.
@samjmck
samjmck / supreme-captcha-harvester.js
Last active March 12, 2022 12:59
Captcha harvesting for Supreme example
'use strict';
const {Harvester} = require('captcha-manager');
const request = require('request-promise-native');
const harvester = new Harvester();
const availableCaptchaResponseTokens = [];
const siteKey = '6LeWwRkUAAAAAOBsau7KpuC9AV-6J8mhw4AjC3Xz';
# Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install Homebrew packages
brew install git
brew install java
brew install mackup
@dcollien
dcollien / ImageTools.es6
Last active April 30, 2026 15:31
Resize Images in the Browser
let hasBlobConstructor = typeof(Blob) !== 'undefined' && (function () {
try {
return Boolean(new Blob());
} catch (e) {
return false;
}
}());
let hasArrayBufferViewSupport = hasBlobConstructor && typeof(Uint8Array) !== 'undefined' && (function () {
try {
@CMCDragonkai
CMCDragonkai / http_streaming.md
Last active December 24, 2025 06:08
HTTP Streaming (or Chunked vs Store & Forward)

HTTP Streaming (or Chunked vs Store & Forward)

The standard way of understanding the HTTP protocol is via the request reply pattern. Each HTTP transaction consists of a finitely bounded HTTP request and a finitely bounded HTTP response.

However it's also possible for both parts of an HTTP 1.1 transaction to stream their possibly infinitely bounded data. The advantages is that the sender can send data that is beyond the sender's memory limit, and the receiver can act on