Skip to content

Instantly share code, notes, and snippets.

View b19g3r's full-sized avatar
:octocat:

b19g3r b19g3r

:octocat:
  • 山东青岛
View GitHub Profile
@jinjier
jinjier / javdb-top250.md
Last active November 3, 2025 03:03
JavDB top 250 movies list. [Updated on 2025/10]
@sts10
sts10 / rust-command-line-utilities.markdown
Last active October 30, 2025 03:46
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note: I have moved this list to a proper repository. I'll leave this gist up, but it won't be updated. To submit an idea, open a PR on the repo.

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, fd, fend, hyperfine, miniserve, ripgrep, just, cargo-audit and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool

Refactoring by Martin Fowler

Steps

  1. Test, change in small and repeat
  2. Class methods should use data from itself and not other classes(Extract method and move method)
  3. Avoid local temporary variables - it tends to increase compexity and long code
  4. Instead of conditions use polymorphism(Replace conditional with polymorphism)

Avoid refactor

  1. When close to deadline
@aymericbeaumet
aymericbeaumet / delete-likes-from-twitter.md
Last active October 22, 2025 05:42
[Recipe] Delete all your likes/favorites from Twitter

Ever wanted to delete all your likes/favorites from Twitter but only found broken/expensive tools? You are in the right place.

  1. Go to: https://twitter.com/{username}/likes
  2. Open the console and run the following JavaScript code:
setInterval(() => {
  for (const d of document.querySelectorAll('div[data-testid="unlike"]')) {
    d.click()
 }
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active November 2, 2025 02:29
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@sgur
sgur / .dircolors.wsl
Last active February 11, 2022 15:21
Dircolors for WSL
# dircolors for WSL
# Usage: eval `dircolors ~/.dircolors.wsl` (bash)
# http://www.bigsoft.co.uk/blog/index.php/2008/04/11/configuring-ls_colors
TERM Eterm
TERM ansi
TERM color-xterm
TERM con[0-9]*x[0-9]*
TERM cons25
@ba11b0y
ba11b0y / installing-postman.md
Last active September 27, 2025 02:40
Installing Postman on Ubuntu/Gnome

Since Chrome apps are now being deprecated. Download postman from https://dl.pstmn.io/download/latest/linux

Although I highly recommend using a snap

sudo snap install postman

Installing Postman

tar -xzf Postman-linux-x64-5.3.2.tar.gz
@ashenwgt
ashenwgt / logback.xml
Created July 31, 2017 05:24
Logback - logback.xml
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<logger name="com.ashenlive" level="ALL"/>
<!-- Console Appender -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<layout class="ch.qos.logback.classic.PatternLayout">
<pattern>%d{yyyy.MM.dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{36}:%L) - %msg%n</pattern>
</layout>
<withJansi>true</withJansi>
@joyrexus
joyrexus / README.md
Last active June 12, 2025 20:55
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
@HardenedArray
HardenedArray / Efficient Encrypted UEFI-Booting Arch Installation
Last active March 18, 2025 17:50
An effcient method to install Arch Linux with encrypted root and swap filesystems and boot from UEFI. Multi-OS, and VirtualBox, UEFI-booting are also supported.
# OBJECTIVE: Install Arch Linux with encrypted root and swap filesystems and boot from UEFI.
# Note this encrypted installation method, while perfectly correct and highly secure, CANNOT support encrypted /boot and
# also CANNOT be subsequently converted to support an encrypted /boot!!! A CLEAN INSTALL will be required!
# Therefore, if you want to have an encrypted /boot or will want an encrypted /boot system at some point in the future,
# please ONLY follow my encrypted /boot installation guide, which lives here: