Skip to content

Instantly share code, notes, and snippets.

View skyend's full-sized avatar
🐢
Slow and pierce the world

Skyend skyend

🐢
Slow and pierce the world
View GitHub Profile
@joepie91
joepie91 / es-modules-are-terrible-actually.md
Last active May 9, 2025 15:29
ES Modules are terrible, actually

ES Modules are terrible, actually

This post was adapted from an earlier Twitter thread.

It's incredible how many collective developer hours have been wasted on pushing through the turd that is ES Modules (often mistakenly called "ES6 Modules"). Causing a big ecosystem divide and massive tooling support issues, for... well, no reason, really. There are no actual advantages to it. At all.

It looks shiny and new and some libraries use it in their documentation without any explanation, so people assume that it's the new thing that must be used. And then I end up having to explain to them why, unlike CommonJS, it doesn't actually work everywhere yet, and may never do so. For example, you can't import ESM modules from a CommonJS file! (Update: I've released a module that works around this issue.)

And then there's Rollup, which apparently requires ESM to be u

@skyend
skyend / cloudflare.sh
Created May 17, 2020 09:09 — forked from Manouchehri/cloudflare.sh
Allow CloudFlare only
# Source:
# https://www.cloudflare.com/ips
# https://support.cloudflare.com/hc/en-us/articles/200169166-How-do-I-whitelist-CloudFlare-s-IP-addresses-in-iptables-
for i in `curl https://www.cloudflare.com/ips-v4`; do iptables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
for i in `curl https://www.cloudflare.com/ips-v6`; do ip6tables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
# Avoid racking up billing/attacks
# WARNING: If you get attacked and CloudFlare drops you, your site(s) will be unreachable.
iptables -A INPUT -p tcp -m multiport --dports http,https -j DROP
@skyend
skyend / gist:2e61a734d2a14198bd15781bf45a61f9
Last active June 21, 2018 17:46
vmware workstation player error! at windows 10 [solved]

슈밤 왜안되는거야

윈도우 10에 VMWare workstation player 설치하고 쓰다가 vm을 껏다가 켰더니 아래와 같은 에러 메시지와 함께 나를 헬파티로 초대했다.

문제의 시작 에러

VMware Player and Device/Credential Guard are not compatible. 
VMware Player can be run after disabling Device/Credential Guard. 
Please visit http://www.vmware.com/go/turnoff_CG_DG for more details.
@hotpaw2
hotpaw2 / RecordAudio.swift
Last active March 20, 2025 03:59
Swift Audio Recording class. Reads buffers of input samples from the microphone using the iOS RemoteIO Audio Unit API
//
// RecordAudio.swift
//
// This is a Swift class (updated for Swift 5)
// that uses the iOS RemoteIO Audio Unit
// to record audio input samples,
// (should be instantiated as a singleton object.)
//
// Created by Ronald Nicholson on 10/21/16.
// Copyright © 2017,2019 HotPaw Productions. All rights reserved.
@segabor
segabor / main.swift
Created September 13, 2015 06:57
An UDP Server implementation in Swift
//
// main.swift
// UDP Server example
//
// Created by Sebestyén Gábor on 2015. 09. 12..
//
// Original source: http://www.cs.ucsb.edu/~almeroth/classes/W01.176B/hw2/examples/udp-server.c
import Foundation
@Manouchehri
Manouchehri / cloudflare.sh
Last active May 21, 2025 14:03
Allow CloudFlare only
# Source:
# https://www.cloudflare.com/ips
# https://support.cloudflare.com/hc/en-us/articles/200169166-How-do-I-whitelist-CloudFlare-s-IP-addresses-in-iptables-
for i in `curl https://www.cloudflare.com/ips-v4`; do iptables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
for i in `curl https://www.cloudflare.com/ips-v6`; do ip6tables -I INPUT -p tcp -m multiport --dports http,https -s $i -j ACCEPT; done
# Avoid racking up billing/attacks
# WARNING: If you get attacked and CloudFlare drops you, your site(s) will be unreachable.
iptables -A INPUT -p tcp -m multiport --dports http,https -j DROP
@v3n
v3n / ogl_osx.md
Last active March 24, 2025 00:49
GLFW on OS X starting guide

OpenGL Development on OS X

While it's possible to download packages and install them manually, it's such a hassle. Fortunately for us, OS X has an unofficial package manager called http://brew.sh Let's install it. Open you Terminal and paste the following code:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Great. Homebrew will automatically install packages to /usr/local. Conveniently, that directory is already in your include and link paths.

@christianberg
christianberg / Dockerfile
Last active April 14, 2025 13:47
Sharing a unix socket between a Docker container and it's host
FROM ubuntu
RUN apt-get update
RUN apt-get install -y socat
VOLUME /foo
CMD socat UNIX-LISTEN:/foo/bar.sock -
Korean Perl Workshop Timetable
14:00 - 14:10 OPEN
14:10 - 14:30 Perl 101 (aer0)
14:30 - 14:50 조금 깊이 들여다보는 정규표현식 (gypark)
14:50 - 15:00 휴식
15:00 - 15:20 동아시아 문자 처리에 대한 간단한 소개 (studioego)
@rurban
rurban / blog-todo.md
Created September 17, 2012 23:04
My perl5 TODO list

My perl5 TODO list

Below is a formal list of possible optimizations, which most would agree on. We had these discussion in 2001 with damian were perl6 and perl5i took off. I'd like to work on these for perl5 core and need decisions. Most p5p hackers seem to be informed about the general possibilities and directions, but not all. We'd need this to improve general perl5 performance, and also help static compilation.[1]