Skip to content

Instantly share code, notes, and snippets.


Cactus erbanku

View GitHub Profile
View Bing Daily Wallpapers (4K).md

Bing Wallpapers

Since 2021-02-01

2022-11-20 | Virgin River in Zion National Park, Utah (© Jonathan Ross/Getty Images)

2022-11-19 | The gates of the Royal Palace (Dar al-Makhzen) in Fez, Morocco (© Adam Smigielski/Getty Images)

erbanku /
Created Aug 22, 2022 — forked from OlivierLDff/
🚀 Git Bash Emojis (Windows)

Open git bash with admin privilege.

cd "C:/Program Files/Git/usr/share/mintty"
mkdir -p emojis
cd emojis
curl > getemojis
./getemojis -d
erbanku / extensions.json
Last active Jul 9, 2022
View extensions.json
"id": "",
"name": "chrome-extension-developer-tools",
"publisher": "aaravb",
"version": "2.0.2"
"id": "aaron-bond.better-comments",
"name": "better-comments",
View arch.bashrc
# ~/.bashrc - startup file for Bash interactive shell
# Part of
# Mateusz Loskot <>
# References:
# -
# - Debian standard ~/.bashrc
erbanku /
Created Jun 20, 2022 — forked from kristopherjohnson/
Unblock all blocked Twitter accounts
#!/usr/bin/env python3
# Dependency: pip3 install twitter
import twitter
# Go to, create an app, and fill in these values:
consumer_key = 'www'
consumer_secret = 'xxx'
access_token = 'yyy'
access_token_secret = 'zzz'
erbanku /
Created Apr 28, 2022 — forked from evanwill/
how to add more utilities to git bash for windows, wget, make

How to add more to Git Bash on Windows

Git for Windows comes bundled with the "Git Bash" terminal which is incredibly handy for unix-like commands on a windows machine. It is missing a few standard linux utilities, but it is easy to add ones that have a windows binary available.

The basic idea is that C:\Program Files\Git\mingw64\ is your / directory according to Git Bash (note: depending on how you installed it, the directory might be different. from the start menu, right click on the Git Bash icon and open file location. It might be something like C:\Users\name\AppData\Local\Programs\Git, the mingw64 in this directory is your root. Find it by using pwd -W). If you go to that directory, you will find the typical linux root folder structure (bin, etc, lib and so on).

If you are missing a utility, such as wget, track down a binary for windows and copy the files to the corresponding directories. Sometimes the windows binary have funny prefixes, so

erbanku /
Created Apr 21, 2022 — forked from ColetteContreras/
使用 docker 安装各种面板
curl -fsSL | bash
curl -L "$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod a+x /usr/local/bin/docker-compose
# 创建个软链接,以后用 dc 命令来代替 docker-compose
rm -rf `which dc` # 若系统中存在 dc 则删除,这个 dc 就是个计算器,完全没有用
ln -s /usr/local/bin/docker-compose /usr/bin/dc
erbanku / My Awessome
Created Apr 18, 2022
Created by Cactus with using GitHub-CLI at Monday 04/18/2022 08:47 +08:00
erbanku /
Created Apr 13, 2022
Ubuntu 一键换源脚本
Codename=$(cat /etc/os-release | grep VERSION_CODENAME |awk -F'=' '{print $2}')
echo "检测到您的Ubuntu系统版本为:$Codename"
echo "**********************************"
echo "请选择镜像源:"
echo "
View ubuntu18.04 -
sudo echo "[*] 将原sources.list 备份为 sources.list.bak"
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo echo "[*] 正在将 aliyun镜像源 覆盖到/etc/apt/sources.list..."
sudo echo "# aliyun镜像源" >> /etc/apt/sources.list
sudo echo "deb bionic main restricted universe multiverse" >> /etc/apt/sources.list
sudo echo "deb-src bionic main restricted universe multiverse" >> /etc/apt/sources.list