Skip to content

Instantly share code, notes, and snippets.

View yfdyh000's full-sized avatar

YFdyh000 yfdyh000

View GitHub Profile
@banyudu
banyudu / free-docker-space-in-wsl2.blog.md
Last active July 19, 2024 07:02
WSL2 Docker释放磁盘空间

WSL2 Docker释放磁盘空间

Docker使用久了,会残留很多中间生成的镜像,占用磁盘空间。

要清理Docker镜像,本来是挺简单的,一条命令就搞定了:

@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active July 18, 2024 22:51
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@imba-tjd
imba-tjd / .Cloud.md
Last active July 23, 2024 07:11
☁️ 一些免费的云资源

IaaS指提供系统(可以自己选)或者储存空间之类的硬件,软件要自己手动装;PaaS提供语言环境和框架(可以自己选);SaaS只能使用开发好的软件(卖软件本身);BaaS一般类似于非关系数据库,但各家不通用,有时还有一些其它东西。

其他人的集合

@bagder
bagder / trrprefs.md
Last active December 27, 2022 05:17
This once held TRR prefs. Now it has moved.

NOTE

This content has moved.

Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!

@baymaxium
baymaxium / content.md
Created October 18, 2017 08:49
18 个开源的项目本地化翻译工具

原文:Linux中国

本地化(Localization,L10N)在适应项目方面为世界各地的用户发挥着关键作用。

-- Jeff Beatty

本文导航

@brahimmachkouri
brahimmachkouri / uninstall_ajenti.sh
Last active August 2, 2022 19:34
Uninstall Ajenti
#!/bin/bash
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
DISTRO=
OS=
if grep 'Debian' /etc/issue > /dev/null 2>&1 ; then
@TJYSunset
TJYSunset / UnrecycleThem.cs
Last active February 12, 2022 15:23
This program restores all files in your recycle bin. I wrote this because explorer failed to restore too many files. It's tested on Windows 10, Chinese Simplified and must be edited to run properly on Windows of other languages.
using System;
using System.Runtime.InteropServices;
using Shell32;
namespace UnrecycleThem
{
public class UnrecycleThem
{
public static void Main(string[] args)
{
@muink
muink / SSD-write-optimize-and-cache-user-data-path-custom-for-chrome.md
Last active May 25, 2023 07:07
SSD写入优化与Chrome 自定义缓存/用户数据路径

SSD写入优化与Chrome 自定义缓存/用户数据路径

随着大容量消费级SSD的普及,更多的用户选择使用SSD作为系统盘或程序盘 而在享受急速体验的同时,一小部分人认识到了SSD的寿命=容量*P/E次数=总可写入量 于是各种减少写入优化SSD的文章也如雨后春笋后冒了出来,虽有一定借鉴意义,可过于极端的配置却导致一定的易用性缺失 用户应该根据自己SSD的实际情况,有选择的进行优化

1. 首先了解自己SSD的容量颗粒介质可写入总量(TBW)

  • 通常SSD的总可写入量(TBW)=容量*可P/E总数,也有些厂商会标注出产品的TBW以方便用户查询
  • 对于使用SLC介质的SSD(例如Intel企业级)通常其P/E总数在100000次以上,即使64G的容量也有6250TBW的可写入量
@Tblue
Tblue / mozlz4a.py
Last active July 16, 2024 09:50
MozLz4a compression/decompression utility
#!/usr/bin/env python3
# vim: sw=4 ts=4 et tw=100 cc=+1
#
####################################################################################################
# DESCRIPTION #
####################################################################################################
#
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to
# compress e. g. bookmark backups (*.jsonlz4).
#
@timdream
timdream / gist:5968469
Last active May 25, 2024 16:56
Github 發 Pull Request & 貢獻流程速查

Github 發 Pull Request & 貢獻流程速查

前言

此文目標讀者需先自行學會

  • 開 Github 帳號
  • 會 fork 程式 repository
  • 會在自己的電腦使用命令列 git
  • 會 clone 自己的 repository