Skip to content

Instantly share code, notes, and snippets.

View freeyoung's full-sized avatar

Eric Qian freeyoung

  • Berlin, Germany
View GitHub Profile
@freeyoung
freeyoung / ocr.sh
Created July 16, 2022 09:42 — forked from cheeaun/ocr.sh
macOCR script for Raycast. Preview https://twitter.com/cheeaun/status/1395973544983425025
#!/bin/bash
# Dependency: requires macOCR
# Download: https://github.com/schappim/macOCR
# @raycast.schemaVersion 1
# @raycast.title macOCR
# @raycast.mode silent
# @raycast.author Lim Chee Aun
# @raycast.authorURL https://github.com/cheeaun
#!/bin/bash
## License: GPL
## It can reinstall Debian, Ubuntu, CentOS system with network.
## Default root password: MoeClub.org
## Blog: https://moeclub.org
## Written By MoeClub.org
export tmpVER=''
@freeyoung
freeyoung / tmp
Created January 13, 2016 10:13 — forked from CMGS/tmp
# Generated by confd
include "bird_aggr.cfg";
include "bird_ipam.cfg";
router id {{getenv "IP"}};
{{define "LOGGING"}}
{{$node_logging_key := printf "/host/%s/loglevel" (getenv "HOSTNAME")}}{{if exists $node_logging_key}}{{$logging := getv $node_logging_key}}
{{if eq $logging "debug"}} debug all;{{else if ne $logging "none"}} debug { states };{{end}}
{{else if exists "/global/loglevel"}}{{$logging := getv "/global/loglevel"}}