Skip to content

Instantly share code, notes, and snippets.

View PenguinOfWar's full-sized avatar
🐴
[deranged neighing]

Darryl Walker PenguinOfWar

🐴
[deranged neighing]
View GitHub Profile
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: ObjectivePGP
Comment: https://www.objectivepgp.com
Charset: UTF-8
xsFNBGBKQJcBEACpcqHL+fJ5qnTDabBuRw9v391lyhc7tsbi49NRI9+GqAOCK/LB/y89QZGluq5P
S+ISSaZhW+rxvsyQMVfMW36LcCP8hTzFv0+YNrJGf3oSXzrkBA00fp3Jm/M9rz/YbJYpSpAWx1oD
k4UjOK3jLpLFphto6BFrArINcx2QJQGjNCTNWtiVvlt3uuLm/lp/YP4PdsPUlfc9aolzYQQgEYyA
MWRkPYs3n/9XPK+DMlD91P6PO51SYF7i45g5kg978Bq1q0Zo0boXcscPMGqzgNRfTbfHJLvZNvFh
LUBVIFxchiQeIn/LJgfCea/FOIF7j3TZKWk4/Dfn2SauqpVy7mzLbH77NO9IT/WVj9th7Phwu0X4
@hanayashiki
hanayashiki / patch-arrayBuffer.js
Created December 16, 2019 04:08
Safari 13.0.4: Blob.arrayBuffer is not a function
(function () {
File.prototype.arrayBuffer = File.prototype.arrayBuffer || myArrayBuffer;
Blob.prototype.arrayBuffer = Blob.prototype.arrayBuffer || myArrayBuffer;
function myArrayBuffer() {
// this: File or Blob
return new Promise((resolve) => {
let fr = new FileReader();
fr.onload = () => {
resolve(fr.result);
@bwangila
bwangila / Download and Organize Lynda.com Courses with Authentication.md
Last active April 4, 2022 02:07
Lynda.com unfortunately does not allow one to easily download course videos even with a premium subscription. Here, I show you how to easily do that with the open source youtube-dl utility.

youtube-dl INSTALLATION

youtube-dl is a handy little command-line utility that, with the right command, automagically downloads videos from Youtube as well as other platforms such as Vimeo, Lynda.com, BBC, CNN etc..(Full list of supported websites)

Kindly proceed to youtube-dl's Github repo for detailed installation instructions for your respective OS

In case of an error, make sure you have Python 2.6, 2.7 or 3.2+ installed as youtube-dl needs it to run.

USAGE

@NickMcSweeney
NickMcSweeney / postgresql_plus_arch-linux.md
Last active May 8, 2025 16:52
Getting postgresql running on Arch Linux

Setup Postgresql

run postgresql with systemctl

Install postgres

latest

sudo pacman -S postgresql

specific version

find version & build from source

@swalkinshaw
swalkinshaw / tutorial.md
Last active February 26, 2025 21:15
Designing a GraphQL API
@gricard
gricard / webpack4upgrade.md
Last active April 20, 2025 23:06
Just some notes about my attempt to upgrade to webpack 4

If you enjoyed reading this, I'm intending to do more blogging like this over here: https://cdgd.tech

This is not a complaint about Webpack or v4 in any way. This is just a record of my process trying it out so I could provide feedback to the webpack team

Hmm... I don't see any docs for 4.0 on https://webpack.js.org. I guess I'll just wing it. All I need to do is npm i -D webpack@next, right?

+ [email protected]
@bradwestfall
bradwestfall / S3-Static-Sites.md
Last active October 14, 2024 15:38
Use S3 and CloudFront to host Static Single Page Apps (SPAs) with HTTPs and www-redirects. Also covers deployments.

S3 Static Sites

⚠ This post is fairly old. I don't keep it up to date. Be sure to see comments where some people have posted updates

What this will cover

  • Host a static website at S3
  • Redirect www.website.com to website.com
  • Website can be an SPA (requiring all requests to return index.html)
  • Free AWS SSL certs
  • Deployment with CDN invalidation
@davidbgk
davidbgk / server.py
Created April 11, 2017 15:39
An attempt to create the simplest HTTP Hello world in Python3
import http.server
import socketserver
from http import HTTPStatus
class Handler(http.server.SimpleHTTPRequestHandler):
def do_GET(self):
self.send_response(HTTPStatus.OK)
self.end_headers()
self.wfile.write(b'Hello world')
@jamesbar2
jamesbar2 / postal-codes.json
Last active March 29, 2025 19:30 — forked from matthewbednarski/postal-codes.json
Global postal codes regex formats
[{
"Note": "The first two digits (ranging from 10–43) correspond to the province, while the last two digits correspond either to the city/delivery zone (range 01–50) or to the district/delivery zone (range 51–99). Afghanistan Postal code lookup",
"Country": "Afghanistan",
"ISO": "AF",
"Format": "NNNN",
"Regex": "^\\d{4}$"
}, {
"Note": "With Finland, first two numbers are 22.",
"Country": "Åland Islands",
"ISO": "AX",
@DianaEromosele
DianaEromosele / Change "origin" of your GIT repository
Created August 7, 2016 00:31
Change "origin" of your GIT repository
$ git remote rm origin
$ git remote add origin [email protected]:aplikacjainfo/proj1.git
$ git config master.remote origin
$ git config master.merge refs/heads/master