Skip to content

Instantly share code, notes, and snippets.

View Webkadabra's full-sized avatar
🏠
Working from your mom's house

WEBKADABRA Webkadabra

🏠
Working from your mom's house
  • (independent developer)
  • Ukraine
View GitHub Profile
@Webkadabra
Webkadabra / resize.ts
Created August 27, 2021 15:02 — forked from IsaiahByDayah/resize.ts
Example express endpoint that resizes an image from B2 Cloud Storage
import * as admin from "firebase-admin"
import express from "express"
import sharp, { ResizeOptions, OutputOptions } from "sharp"
import fetch from "cross-fetch"
import FileType from "file-type"
import { parseQueryNumber, parseQueryString } from "../some/extra/util/functions"
import { Photo } from "../some/custom/types"
const router = express.Router()
@Webkadabra
Webkadabra / brand_names_list.txt
Last active April 9, 2019 06:56
A list of randomly generated brand names (PHP)
setuzi
golaci
cobisy
ruzajy
dubevi
gikicy
gisuxy
sotypi
loxela
kugaxa
@Webkadabra
Webkadabra / gist:07e7d6029d1f820f69f56d21326905a8
Created November 4, 2017 01:31 — forked from taylor/gist:2968566
fix ca cert on centos 5

this sucks, but it works. centos should really just build the damn ca-certificates package for centos5 found on centos6

cp /etc/pki/tls/certs/ca-bundle.crt /root/ca-bundle.crt-old
curl http://curl.haxx.se/ca/cacert.pem -o /etc/pki/tls/certs/ca-bundle.crt