Skip to content

Instantly share code, notes, and snippets.

View EricZhang456's full-sized avatar
:atom:
bloated text editor very slow, i use vim btw

Eric Zhang EricZhang456

:atom:
bloated text editor very slow, i use vim btw
View GitHub Profile
@EricZhang456
EricZhang456 / keybase.md
Created December 2, 2022 11:00
Keybase Proof

Keybase proof

I hereby claim:

  • I am ericzhang456 on github.
  • I am ericzhang456 (https://keybase.io/ericzhang456) on keybase.
  • I have a public key ASCNXIrHQ1bsJuAsMEHtao4X3RGTOSMvkXz0KrnZX2tGnAo

To claim this, I am signing this object:

@EricZhang456
EricZhang456 / .zshrc
Last active July 19, 2022 06:44
Zsh Configuration
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _list _ignored _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' max-errors 3
zstyle ':completion:*' menu select
zstyle ':completion:*' prompt '%e errors found'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle :compinstall filename '/home/eric/.zshrc'
@EricZhang456
EricZhang456 / cde-debian.sh
Last active July 3, 2022 02:47
A quick and dirty script for installing CDE on Debian.
#!/bin/bash
if [ "$(id -u)" == "0" ]; then
echo "Do not run this script as root. You will be asked for your password when needed." 1>&2
exit 1
fi
if ! command -v sudo &> /dev/null
then
echo "Please install and configure sudo."
exit 1
fi
@EricZhang456
EricZhang456 / docker-compose.yaml
Created July 26, 2021 02:51
docker-compose for WordPress installation inside Docker with phpMyAdmin
version: '3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
@EricZhang456
EricZhang456 / passgen.py
Last active August 19, 2020 10:29
PassGen Source Code
import asyncio
import random
import discord
from discord.ext import commands
from discord.ext.commands import bot
bot = discord.ext.commands.Bot(command_prefix = "pass@!")
vol = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ', '. ', ', ']
@EricZhang456
EricZhang456 / vidlii-ugly-plus.css
Created May 23, 2020 04:07
VidLii Ugly™ PLUS!
@-moz-document domain("vidlii.com") {
@-webkit-keyframes bg-color {
0% { background-color: #e74c3c; }
20% { background-color: #f1c40f; }
40% { background-color: #1abc9c; }
60% { background-color: #3498db; }
80% { background-color: #9b59b6; }
100% { background-color: #e74c3c; }
}
@EricZhang456
EricZhang456 / vidlii-ugli.css
Created May 23, 2020 02:36
an ugly theme for vidlii
@-moz-document domain("vidlii.com") {
/**/
body {
overflow-y: scroll;
background: #607D8B;
margin: 0;
font-family: "Comic Sans MS", cursive, sans-serif;
font-size: 16px;
min-width: 1000px;
}
// very complicated, huh?
#include<iostream>
#include<string>
using namespace std;
int main () {
string sub, verb;
cout << "input a subject xd\n";