Skip to content

Instantly share code, notes, and snippets.

View byeblogs's full-sized avatar

Iam ByeBlog`s byeblogs

View GitHub Profile
#/bin/zsh
brew install privoxy
echo -n "<- Enter your http/https PORT ->"
read PORT
echo "PORT = $PORT"
echo "function proxy_off(){" >> ~/.bash_profile
echo " unset http_proxy" >> ~/.bash_profile
echo " unset https_proxy" >> ~/.bash_profile
echo " echo -e "已关闭代理"" ~/.bash_profile
echo "}\n" >> ~/.bash_profile
@byeblogs
byeblogs / sketch-never-ending.md
Created December 12, 2017 08:08 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@byeblogs
byeblogs / .bash_profile
Created April 12, 2016 03:39 — forked from stephenll/.bash_profile
.bash_profile file on Mac OS X
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# http://natelandau.com/my-mac-osx-bash_profile/
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
@byeblogs
byeblogs / FileToByteArr.java
Last active May 25, 2021 11:43 — forked from dreamkidd/FileToByteArr.java
File To ByteArray in Java
package com.baimes.utils;
import java.io.*;
/**
* Created by Ds_Kidd on 2015/4/3 0003.
* 将文件转换为byte数组,一般用于图片,视屏,及音频
*/
public class FileToByteArr {