Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Cactus erbanku

🎯
Focusing
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
erbanku / Readme.md
Created Aug 22, 2022 — forked from OlivierLDff/Readme.md
🚀 Git Bash Emojis (Windows)
View Readme.md

Open git bash with admin privilege.

cd "C:/Program Files/Git/usr/share/mintty"
mkdir -p emojis
cd emojis
curl https://raw.githubusercontent.com/wiki/mintty/mintty/getemojis > getemojis
./getemojis -d
@erbanku
erbanku / extensions.json
Last active Jul 9, 2022
⚠️ VS CODE INSIDERS SETTINGS - SYNCING
View extensions.json
[
{
"id": "aaravb.chrome-extension-developer-tools",
"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 https://github.com/mloskot/archlinux-config
# Mateusz Loskot <mateusz@loskot.net>
#
# References:
# - https://wiki.archlinux.org/index.php/Color_Bash_Prompt
# - Debian standard ~/.bashrc
#
@erbanku
erbanku / unblock_all.py
Created Jun 20, 2022 — forked from kristopherjohnson/unblock_all.py
Unblock all blocked Twitter accounts
View unblock_all.py
#!/usr/bin/env python3
# Dependency: pip3 install twitter
import twitter
# Go to http://apps.twitter.com/, create an app, and fill in these values:
consumer_key = 'www'
consumer_secret = 'xxx'
access_token = 'yyy'
access_token_secret = 'zzz'
@erbanku
erbanku / gitBash_windows.md
Created Apr 28, 2022 — forked from evanwill/gitBash_windows.md
how to add more utilities to git bash for windows, wget, make
View gitBash_windows.md

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
erbanku / install-docker.sh
Created Apr 21, 2022 — forked from ColetteContreras/install-docker.sh
使用 docker 安装各种面板
View install-docker.sh
curl -fsSL https://get.docker.com | bash
curl -L "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(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
erbanku / My Awessome Repositories.md
Created Apr 18, 2022
Created by Cactus with using GitHub-CLI at Monday 04/18/2022 08:47 +08:00
@erbanku
erbanku / Ubuntu_source.sh
Created Apr 13, 2022
Ubuntu 一键换源脚本
View Ubuntu_source.sh
#!/bin/bash
#1.确定系统版本代号
Codename=$(cat /etc/os-release | grep VERSION_CODENAME |awk -F'=' '{print $2}')
echo "检测到您的Ubuntu系统版本为:$Codename"
#2.选择镜像源
echo "**********************************"
echo "请选择镜像源:"
echo "
View ubuntu18.04 - editsource2aliyun.sh
#!/bin/bash
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 http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse" >> /etc/apt/sources.list
sudo echo "deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse" >> /etc/apt/sources.list