Skip to content

Instantly share code, notes, and snippets.

@wozulong
wozulong / issues_baipiao_checker.py
Last active May 7, 2024 13:26
检查issues里的白嫖者,自动关闭+加标签+锁定
import requests
issue_labels = ['no respect']
github_repo = '<owner>/<repo>'
github_token = '<github token>'
headers = {
'Authorization': 'Bearer ' + github_token,
'Accept': 'application/vnd.github+json',
'X-GitHub-Api-Version': '2022-11-28',
}
@chroming
chroming / 软件备忘.md
Created March 18, 2019 13:41
个人对于(开源)软件的评价列表

软件备忘

Linux桌面发行版

根据多年(也不多)的折腾经验,考虑发行版

  • 首先考虑对软件包管理的喜好,与健壮的软件仓库
  • 其次考虑默认的桌面环境(默认的桌面环境往往优化、整合得更好)
  • 作为桌面系统,尽可能地不折腾

在此基础上,个人喜好为:

@AndersonFirmino
AndersonFirmino / velocity-plus.sh
Last active May 7, 2024 13:26
Programas que ajudam a melhorar desempenho Linux/Pc modestos
#!/bin/sh
# script para instalar programas que ajudam no desempenho.
echo "Esta de acordo em fazer o upgrade? (digite: ok e tecle enter se sim) "
read certeza
if [ "$certeza" = "ok" ]
then
sudo apt-get install zram-config -y
sudo apt-get install preload -y
sudo apt-get install prelink -y
@truemogician
truemogician / upgrading_postgresql_in_windows.md
Last active May 7, 2024 13:26
Upgrading PostgreSQL in Windows

Upgrading PostgreSQL in Windows

The official documentation for PostgreSQL provides a guide to upgrading using pg_upgrade. However, it can be a bit like a treasure hunt with hidden traps. This gist will walk you through a clear and robust method for upgrading PostgreSQL on Windows, using the upgrade from version 14 to 16 as an example.

1. Install the New Version of PostgreSQL

Before you embark on the upgrade journey, make sure you have the new version installed. This is because the pg_upgrade utility used during the upgrade process belongs to the newer version.

To get started, visit the official download page, download the installer, and run it. A word of caution: do not overwrite the old installation, as you'll need its binaries and data for the upgrade.

@MichaelSimons
MichaelSimons / RetrievingDockerImageSizes.md
Last active May 7, 2024 13:26
Retrieving Docker Image Sizes

Retrieving Docker Image Sizes

There are two metrics that are important to consider when discussing the size of Docker images.

  1. Compressed size - This is often referred to as the wire size. This affects how fast/slow images can be pulled from a registry. This impacts the first run experience on machines where images are not cached.
  2. Uncompressed size - This is often referred to as the size on disk. This affects how much local storage is required to support your Docker workloads.

The example commands shown below will work on Windows, MacOS, and Linux.

How to Measure the Compressed Size

@out0xb2
out0xb2 / Check-Dbx.ps1
Last active May 7, 2024 13:25 — forked from mattifestation/UEFISecDatabaseParser.ps1
Parses signature data from the pk, kek, db, and dbx UEFI variables.
Write-Host "Checking for Administrator permission..."
if (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
Write-Warning "Insufficient permissions to run this script. Open the PowerShell console as administrator and run this script again."
Break
} else {
Write-Host "Running as administrator — continuing execution..." -ForegroundColor Green
}
$patchfile = $args[0]
@denbur2
denbur2 / web-servers.md
Created April 26, 2024 12:46 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@koshigoe
koshigoe / mount-ram.sh
Created February 11, 2011 14:57
Like tmpfs in Mac OSX
#!/bin/sh
# This program has two feature.
#
# 1. Create a disk image on RAM.
# 2. Mount that disk image.
#
# Usage:
# $0 <dir> <size>
#
@robrich
robrich / README.md
Last active May 7, 2024 13:24
the definitive deep dive into the .git folder

the definitive deep dive into the .git folder

Thanks for joining us for "the definitive deep dive into the .git folder". It's an incredible live-demo where we open every file in the .git folder and show what it does.

Links

Here's the links we saw:

@richardgaywood
richardgaywood / vnv_on_steam_deck.md
Last active May 7, 2024 13:24
An incomplete guide to installing Fallout: Viva New Vegas on the Steam Deck

Intro & Disclaimers

I am not an expert, I am just Some Guy who happened to (a) get Viva New Vegas working on Steam Deck and (b) kept notes. These are those notes. I love Fallout and I love the Steam Deck and I want other people to experience those things, but I am also unable to promise to support you through every question you may have.

This is not a guide in the way that Viva New Vegas is a guide. VNV is incredibly well written and has your back every step of the way. These are just scribbles. Please set your expectations! Also, please tell me what doesn't work or is confusing! I would like us to work together to improve this process for others.

Who did this

This doc was written by docg/penllawen. Come say hi on the Viva New Vegas Discord or [this reddit thread]https://www.reddit.com/r/SteamDeck/comments/1c8uihm/an_incomplete_guide_to_installing_modded_fallout/).