Skip to content

Instantly share code, notes, and snippets.

View twocolors's full-sized avatar
🔥
Fire in the Hole!

D twocolors

🔥
Fire in the Hole!
View GitHub Profile
@twocolors
twocolors / .zshrc
Last active November 30, 2022 18:06
# https://github.com/superbrothers/dotfiles/blob/master/zshrc
# https://gist.github.com/tz4678/f72009ee78c4d2517c097f2483c55b9d
### Zinit ###
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit.git "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
let table = env.get('table');
let add = env.get('add');
if (table && msg.payload) {
if (typeof msg.payload === 'string') {
msg.payload = JSON.parse(msg.payload);
}
if (typeof msg.payload === 'object') {
// support value
@twocolors
twocolors / remote.conf
Last active August 9, 2020 17:40
LibreELEC remote Control for VONTAR X96 Mini Amlogic S905W
factory_code = 0xfe010001
work_mode = 0
repeat_enable = 1
repeat_delay = 130
repeat_peroid = 120
release_delay = 20
debug_enable = 0
key_begin
0x40 116 #POWER
@twocolors
twocolors / vpnc.rb
Last active March 20, 2020 09:53
vpnc homebrew formulas , vpnc Cisco VPN Client use macOS native user tunnels (Yosemite, El Capitan, Sierra)
class Vpnc < Formula
desc "Cisco VPN concentrator client"
homepage "https://brianreiter.org/2014/12/03/i-modified-vpnc-cisco-vpn-client-to-use-os-x-user-native-tunnels/"
url "https://github.com/breiter/vpnc/archive/0.5.3-xnu-2015-07-03.tar.gz"
version "0.5.3-xnu-2015-07-03"
sha256 "1419d6cf4e7c3ea5409fb6bf524f88d6b2752578b001c9ba4b68599d745f3a69"
revision 4
option "with-hybrid", "Use vpnc hybrid authentication"