Skip to content

Instantly share code, notes, and snippets.

View YiweiShen's full-sized avatar
👨‍💻

Yiwei Shen YiweiShen

👨‍💻
View GitHub Profile
@YiweiShen
YiweiShen / ESD to ISO on macOS.txt
Created July 29, 2023 15:52 — forked from b0gdanw/ESD to ISO on macOS.txt
Converting ESD files to ISO images on macOS
ESD to ISO on macOS
https://gist.github.com/b0gdanw/e36ea84828dbd19e03eff6158f1fc77c
Converting ESD files to ISO images on macOS
- download Parallels Desktop 18 for Mac Image from https://www.parallels.com/products/desktop/download/
- at the moment https://download.parallels.com/desktop/v18/18.2.0-53488/ParallelsDesktop-18.2.0-53488.dmg
- open/mount the dmg
- copy prl_esd2iso and libwimlib.1.dylib from /Volumes/Parallels\ Desktop\ 18/Parallels\ Desktop.app/Contents/ to /usr/local/bin/ and /usr/local/lib/
sudo ditto /Volumes/Parallels\ Desktop\ 18/Parallels\ Desktop.app/Contents/MacOS/prl_esd2iso /usr/local/bin/prl_esd2iso
@YiweiShen
YiweiShen / Calculating with Functions.py
Created August 26, 2021 10:47
Calculating with Functions Python Solution
# Codewars
# https://www.codewars.com/kata/525f3eda17c7cd9f9e000b39
def e(n, f):
if not f:
return n
return f(n)
def zero(f=False):
return e(0, f)
@YiweiShen
YiweiShen / BBC.m3u
Created March 6, 2021 08:28 — forked from random-robbie/BBC.m3u
BBC HLS Streams - let me know if i missed any
#EXTM3U
#EXTINF:-1 tvg-id="BBC One HD" tvg-name="BBC One HD" tvg-logo="https://s4.postimg.org/k5xl5dmf1/bbc_one.png" group-title="BBC",BBC One HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_hd.m3u8
#EXTINF:-1 tvg-id="BBC One London" tvg-name="BBC One London" tvg-logo="https://s4.postimg.org/z61nj8qd9/Bbc_london_logo.jpg" group-title="BBC",BBC One London
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/hls_tablet/ak/bbc_one_london.m3u8
#EXTINF:-1 tvg-id="BBC One Northern Ireland HD" tvg-name="BBC One Northern Ireland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Northern Ireland HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_northern_ireland_hd.m3u8
#EXTINF:-1 tvg-id="BBC One Scotland HD" tvg-name="BBC One Scotland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Scotland HD
http://a.fi
@YiweiShen
YiweiShen / remoteDataTableView.swift
Created October 13, 2015 07:48 — forked from Starefossen/remoteDataTableView.swift
Remote JSON Data to tableView in iOS 8.0 (Swift)
import UIKit
import Foundation
import XCPlayground
XCPSetExecutionShouldContinueIndefinitely()
class RemoteAPI {
func getData(completionHandler: ((NSArray!, NSError!) -> Void)!) -> Void {
let url: NSURL = NSURL(string: "http://itunes.apple.com/search?term=Turistforeningen&media=software")
let ses = NSURLSession.sharedSession()
@YiweiShen
YiweiShen / sketch-plugins.md
Created October 12, 2015 11:14 — forked from bomberstudios/sketch-plugins.md
A list of Sketch plugins hosted at GitHub, in no particular order.
@YiweiShen
YiweiShen / surge.conf
Created October 5, 2015 11:30 — forked from janlay/README.md
Yet another config for Surge.app
# This config file was created for myself (@janlay). You may want to add or remove some rules to make efficient use of the Internet.
[General]
# warning, notify, info, verbose
loglevel = notify
# bypass HTTP persistent connections
bypass = e.crashlytics.com
[Proxy]
# http, https, socks5
@YiweiShen
YiweiShen / surge.conf
Created October 5, 2015 11:29
Yet another config for Surge.app
[General]
# warning, notify, info, verbose
loglevel = notify
[Proxy]
# http, https, socks5
# SSLedge 代理推荐使用 TLS_RSA_WITH_AES_128_GCM_SHA256 Ciphers
Proxy = custom, 1.2.3.4, 443, rc4-md5, password, http://server/custom.module
[Rule]
@YiweiShen
YiweiShen / surge.conf
Created October 5, 2015 11:29 — forked from netputer/surge-multi-proxy.url
Surge config for SSLedge (Sample)
[Proxy]
# 为了方便将来修改,将可用服务器写成 Proxy 形式
US = protocol, us.server.com, port1, username, password
JP = protocol, jp.server.com, port2, username, password
# 要用美服,就把美服那行复制到下面,然后改叫 SSLEDGE
SSLEDGE = protocol, us.server.com, port1, username, password
# 要换日服,就把日服那行复制到下面,然后改叫 SSLEDGE
# 同名 Proxy,Surge 只保留最后一个