Skip to content

Instantly share code, notes, and snippets.

View zhenwusw's full-sized avatar
🎯
Focusing

JZ zhenwusw

🎯
Focusing
View GitHub Profile
@AvdLee
AvdLee / DarwinNotificationCenter.swift
Last active March 25, 2025 19:09
A notification center for Darwin Notifications. MIT License applies.
//
// DarwinNotificationCenter.swift
//
// Copyright © 2017 WeTransfer. All rights reserved.
//
import Foundation
/// A Darwin notification payload. It does not contain any userInfo, a Darwin notification is purely event handling.
public struct DarwinNotification {
@kaichen
kaichen / allocate.json
Created February 22, 2016 02:09
雪球抓包结果
/* GET /allocate.json HTTP/1.1 */
{
"api": ["124.250.3.102", "124.250.3.103", "101.201.175.228", "182.92.251.113"],
"expires": 300,
"fund": ["124.250.3.84", "124.250.3.85"],
"https": true,
"im": ["124.250.3.78:8080", "124.250.3.78:80", "124.250.3.78:8400", "124.250.3.79:8080", "124.250.3.78:443", "124.250.3.79:443", "124.250.3.78:8443", "124.250.3.79:8400", "124.250.3.79:8443", "124.250.3.79:80"],
"pingan": ["124.250.3.102", "124.250.3.101"],
"promo": ["124.250.3.102", "124.250.3.103"],
"stock": ["182.92.251.113", "101.201.175.228", "124.250.3.102", "124.250.3.103"],
@evanscottgray
evanscottgray / docker_kill.sh
Last active November 7, 2023 03:40
kill all docker containers at once...
docker ps | awk {' print $1 '} | tail -n+2 > tmp.txt; for line in $(cat tmp.txt); do docker kill $line; done; rm tmp.txt
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active April 21, 2025 14:57
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k