Skip to content

Instantly share code, notes, and snippets.

View brotherbigbao's full-sized avatar
💭
965ing.

Brother Big Bao brotherbigbao

💭
965ing.
View GitHub Profile
@brotherbigbao
brotherbigbao / privoxy-whitelist-forward-socks5.md
Created September 15, 2023 04:53 — forked from MarshalW/privoxy-whitelist-forward-socks5.md
privoxy设置转发socks5 proxy白名单

privoxy设置转发socks5 proxy白名单

以下步骤可在ubuntu/raspbian下执行

安装配置socks5 proxy

需要有一个可ssh访问境外节点账号。

需要创建本地账号的密钥(如果没有~/.ssh/id_rsa):

<?php
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
@brotherbigbao
brotherbigbao / Daemon4Sync.sh
Last active November 8, 2022 05:56
简单 shell 实现守护进程
#! /bin/sh
#进程名字修改成实际路径
PRO_NAME=/root/workspace/Sync4oss/Debug/Sync4oss
WLAN=ra0
while true; do
# 休息10秒以确保要看护的程序运行起来了,这个时间因实际情况而定
sleep 10
# 用ps获取$PRO_NAME进程数量
@araviaravi Thanks the issue was resolved when I add
"config": {
"process-timeout": 1800,
"fxp-asset": {
"repositories": {
"bower-asset/eve": {
"type": "bower-vcs",
"url": "https://github.com/adobe-webplatform/eve.git"
}
@brotherbigbao
brotherbigbao / homebrew old version.txt
Created November 5, 2020 02:47 — forked from sawant/homebrew old version.txt
Install older version of Formula in Homebrew
[From: http://hanxue-it.blogspot.com/2018/08/macos-homebrew-installing-older-version-of-software.html - just created a copy to keep it for long term]
Homebrew always wants to install the latest version of the Formula (software). This is by design, because every time there is an update to a formula, it wants to be tested against all the other formulas that it depends on. Mixing new and old versions of software is a recipe for incompatibility disaster.
But sometimes there are situations where you need an older version of software. In my specific case, Yarn was compiled against an older version of icu4c, and I want that older version instead of recompiling Yarn.
$ yarn install
dyld: Library not loaded: /usr/local/opt/icu4c/lib/libicui18n.61.dylib
Referenced from: /usr/local/bin/node
@brotherbigbao
brotherbigbao / GitHub Gist 指南
Created November 5, 2020 02:47 — forked from zhixingchou/GitHub Gist 指南
GitHub Gist 指南
刚才看博客的时候,发现有位童鞋(@arliang725 )在评论问 gist 是什么。于是我也试着搜索了一下,搜到了一篇译文:
Github作为代码分享平台在开发者中非常流行。此平台托管了包括游戏、书籍以至于字体在内的一千两百多万个项目(现在更多),这使其成为互联网上最大的代码库。
Github还提供另一个非常有用的功能,这就是Gist。
开 发人员常常使用Gist记录他们的代码片段,但是Gist不仅仅是为极客和码农开发的,每个人都可以用到它。如果您听说过类似Pastebin或者 Pastie这样的web应用的话,那您就可以看到它们和Gist很像,但是Gist比它们要更优雅。因为这些免费应用一般含有广告,而且带有很多其他杂 七杂八的功能。
Gist – 任何人都能用得着
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.