Skip to content

Instantly share code, notes, and snippets.

View whjvenyl's full-sized avatar

whjvenyl whjvenyl

  • Bison Schweiz AG
  • Lucerne, Switzerland
View GitHub Profile
@whjvenyl
whjvenyl / package.json
Created November 6, 2023 20:18 — forked from kentcdodds/package.json
setup script for my workshops
{
"name": "workshop-setup",
"version": "1.0.0",
"description": "This is the common setup script for most of my workshops",
"bin": "./setup.js"
}
@whjvenyl
whjvenyl / angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Created February 23, 2023 10:16 — forked from LayZeeDK/angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Angular CLI, Angular, Node.js, TypeScript, and RxJS version compatibility matrix. Based on changelogs, metadata, and hands-on experience. Major Node.js and RxJS versions above officially supported versions are not listed. Note that both major and minor TypeScript versions contain breaking changes. Please upvote https://github.com/angular/angular…
Angular CLI version Angular version Node.js version TypeScript version RxJS version
~15.1.0 ~15.1.0 ^14.20.0 || ^16.13.0 || ^18.10.0 >=4.8.4 <5.0.0 ^6.5.5 || ^7.4.0
~15.0.5 ~15.0.4 ^14.20.0 || ^16.13.0 || ^18.10.0 ~4.8.4 ^6.5.5 || ^7.4.0
~14.2.0 ~14.2.0 ^14.15.0 || ^16.10.0 >=4.6.4 <4.9.0 ^6.5.5 || ^7.4.0
~14.1.3 ~14.1.3 ^14.15.0 || ^16.10.0 >=4.6.4 <4.8.0 ^6.5.5 || ^7.4.0
~14.0.7 ~14.0.7 ^14.15.0 || ^16.10.0 >=4.6.4 <4.8.0 ^6.5.5 || ^7.4.0
~13.3.0 ~13.3.0 ^12.20.2 || ^14.15.0 || ^16.10.0 >=4.4.4 <4.7.0 ^6.5.5 || ^7.4.0
~13.2.6 ~13.2.7 ^12.20.2 || ^14.15.0 || ^16.10.0 >=4.4.4 <4.6.0 ^6.5.5 || ^7.4.0
~13.1.4 ~13.1.3 ^12.20.2 || ^14.15.0 || ^16.10.0 >=4.4.4 <4.6.0 ^6.5.5 || ^7.4.0
~13.0.4 ~13.0.3 ^12.20.2 || ^14.15.0 || ^16.10.0 ~4.4.4 ^6.5.5 || ^7.4.0
@whjvenyl
whjvenyl / proxy-toggle.sh
Created January 23, 2023 23:35 — forked from dgoguerra/proxy-toggle.sh
Script to toggle Mac OS X SOCKS proxy, and setup a SOCKS server with SSH
#!/bin/sh
PROXY_INTERFACE="Wi-Fi"
PROXY_HOST=127.0.0.1
PROXY_PORT=1080
# A host where ssh can login without interaction, with a key-based
# authentication.
SOCKS_PROC_USER="username"
SOCKS_PROC_HOST="example.com"
@whjvenyl
whjvenyl / ipsec_ikev2.md
Created July 5, 2022 11:37 — forked from ianchen06/ipsec_ikev2.md
ikev2 ipsec vpn with letsencrypt certificate and ios/macOS native vpn compatibility
@whjvenyl
whjvenyl / GoPro-HerobusPinout.md
Created October 15, 2021 14:37 — forked from orangkucing/GoPro-HerobusPinout.md
Herobus pinout of GoPro Hero 3+ Black
pin I/O label description remark
1 - GND ground
2 I/O I2CSCL I²C clock (pulled up by camera)
3 I/O I2CSDA I²C data (pulled up by camera)
4 - GND ground
5 I BATTIN battery input
6 I BATTIN battery input
7 O 3V8OUT unregulated power out 3.8V 0V when camera is off.
8 O 3V8STBY unregulated power out 3.8V always keep 3.8V unless battery is out.
@whjvenyl
whjvenyl / Altcoin Watcher.md
Created August 29, 2021 22:42 — forked from b1nary/Altcoin Watcher.md
Altcoin watcher is a Cryptocoin watcher written in Ruby utilizing the Cryptsy API

Altcoin Watcher (Cryptsy)

Version 0.1.2

This script allows you to keep an process running which shows you current prices for the Altcoins you like. Also it shows % and revenue in BTC or $ if configured. Feel free to use or modify the script. If you make some nice changes i would be happy if you send them back to me too.

Made with love

I created this options friendly because i think others might need it too. Show me your support with a little tip!

  • Cryptsy Trading key: 26b13a60f5cd3aa78e4c29328fb9980bef963e9e
@whjvenyl
whjvenyl / fec21.md
Created August 26, 2021 14:18 — forked from meodai/fec21.md
Designing Systems FEC21 talk notes

optimising-unifi-performance

Below are the key settings that I apply on any unifi installation for optimal performance.

Settings

Settings > Site

  • Ensure Enable Advanced Features is enabled
    This allows you to follow along with the guide in it's entirety.

  • Ensure Automatically Optimise Network and WiFi performance is disabled
    These settings will do a better job.

import Cocoa
import CoreBluetooth
import PlaygroundSupport
public class BTHelper: NSObject, CBCentralManagerDelegate, CBPeripheralDelegate {
// BLE Access
var centralManager: CBCentralManager
override init() {
self.centralManager = CBCentralManager(delegate: nil, queue: nil)

How to close CustomTab

When using CustomTab, it has no close method. To close CustomTab, should use Braodcast and call the activity which opened CustomTab again.

Good Example from Facebook SDK

I have fixed some of codes for essential behavior.

gradle setting

Add a library below.

dependencies {