Skip to content

Instantly share code, notes, and snippets.

View outloudvi's full-sized avatar
🌷
…なんてね。

Outvi V outloudvi

🌷
…なんてね。
View GitHub Profile
@Xuanwo
Xuanwo / gist:a8a85439cc6c391df7ddc0b1684a1c4e
Created May 28, 2025 15:20
他现在运行的是linux我想在上面安装windows.txt
### USER
你好,我有台4卡电脑,他现在运行的是linux我想在上面安装windows,我有ssh的私钥,请知道我如何进行操作
### ASSISTANT
你好!
通过SSH在当前运行Linux的电脑上远程安装Windows是一项复杂且高风险的操作。以下是一个概述性的步骤指南,请务必谨慎操作,并确保在开始之前备份所有重要数据。
## **步骤概述**
@radiantly
radiantly / noMangleGoogle.user.js
Last active May 17, 2025 18:18
Prevent Google from mangling links on the search results when clicking or copying on Firefox
// ==UserScript==
// @name Prevent link mangling on Google
// @namespace LordBusiness.LMG
// @match https://www.google.com/search
// @grant none
// @version 1.1
// @author radiantly
// @description Prevent google from mangling the link when copying or clicking the link on Firefox
// ==/UserScript==

It appears that rasengan (Andrew Lee) of Private Internet Access believes that ownership of the company Freenode Ltd. gives him the right to unilaterally replace the current staff team.

We may have had our disagreements with staff, but freenode being run by a volunteer team, using servers provided by sponsors, is a key reason that we appreciate freenode.

As such, we do not believe that such a unilateral replacement by a corporate interest is appropriate.

If this attemped takeover by Andrew Lee continues, we will be advocating to move our communities elsewhere.

Context: Fuchs' leaked (not by him) draft resignation letter that caused Andrew Lee to come onto #freenode: https://fuchsnet.ch/privat/fn-resign-letter.txt

@sindresorhus
sindresorhus / esm-package.md
Last active May 28, 2025 00:21
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@nstarke
nstarke / netgear-private-key-disclosure.md
Last active January 23, 2025 21:42
Netgear TLS Private Key Disclosure through Device Firmware Images

Netgear Signed TLS Cert Private Key Disclosure

Overview

There are at least two valid, signed TLS certificates that are bundled with publicly available Netgear device firmware.

These certificates are trusted by browsers on all platforms, but will surely be added to revocation lists shortly.

The firmware images that contained these certificates along with their private keys were publicly available for download through Netgear's support website, without authentication; thus anyone in the world could have retrieved these keys.

@lilydjwg
lilydjwg / gh-check
Last active March 20, 2025 01:02
gh-check: speed test to known GitHub IPs
#!/usr/bin/python3
import asyncio
import time
import socket
import argparse
import aiohttp
class MyConnector(aiohttp.TCPConnector):
@lilydjwg
lilydjwg / findorphanfiles
Created August 3, 2019 07:43
Find files not managed by pacman (for Arch Linux and derivatives)
#!/usr/bin/python3
import os
def allrepofiles():
repo = '/var/lib/pacman/local'
files = set()
for dirpath, dirnames, filenames in os.walk(repo):
for file in filenames:
if file != 'files':
@matiasmorant
matiasmorant / pythonOneLiner.py
Last active July 30, 2021 01:02
Amazing Python One-Liner
This file has been truncated, but you can view the full file.
exec(''.join(chr(int(''.join(str(ord(i)-8203)for i in c),2))for c in '​​​‌​‌​‍‌‌‌​​‌‌‍‌‌​‌‌‌‌‍‌‌​‌‌‌​‍‌‌​​‌‌‌‍​‌‌‌‌​‌‍‌‌​​​‌​‍​‌​​‌‌‌‍‌​‌​​‌‌‍‌​‌​‌​‌‍‌​‌​​​‌‍‌‌‌‌​‌​‍‌​​​​​‌‍‌‌‌​‌‌‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​‌​​​​‍‌​​​‌‌​‍‌​‌​​‌​‍‌​‌‌​‌​‍‌​‌​​‌​‍‌​‌​‌‌​‍‌​​‌​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​‌‌​‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​‌‌​‌‍‌‌​‌​‌​‍‌​​​​​‌‍‌‌‌‌​​​‍‌​​‌‌‌‌‍‌​‌​‌‌​‍‌​‌​​‌​‍‌​​​‌‌​‍‌​‌​‌​​‍‌‌​‌​‌‌‍‌​​‌‌​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​‌​‌‌​‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​‌​‌​​‍‌​​​‌​‌‍‌​​​‌‌​‍‌​​‌‌‌​‍‌​‌​​‌​‍‌​‌​​‌‌‍‌​​​​‌​‍‌‌‌​​​​‍‌‌​​​‌​‍‌‌​‌​​‌‍‌​​​​‌​‍‌​​​‌‌‌‍‌​‌​‌​​‍‌​​​​‌‌‍‌​​​​‌​‍‌​‌​‌​​‍‌‌​​‌​​‍‌​​‌​​​‍‌​‌​‌‌​‍‌‌​‌​‌‌‍‌‌​​​​‌‍‌​‌​‌‌‌‍​‌‌‌​​​‍‌‌​​‌‌‌‍‌​​‌‌​‌‍‌‌​‌​‌​‍‌​​​​‌​‍‌​‌​‌​‌‍‌​‌​​​‌‍‌‌​‌‌​​‍‌​​​​‌​‍‌​​‌‌‌​‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​‌​‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​‌​​‍‌​​​‌​‌‍‌‌‌‌​​​‍‌​​‌‌‌​‍‌‌‌​‌‌​‍​‌​‌‌‌‌‍​‌‌​‌‌​‍‌​​‌​​‌‍‌​​​‌‌‌‍‌‌‌‌​‌​‍​‌‌‌​​‌‍​‌‌​‌‌​‍‌‌​​‌‌‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​​​​‌‍‌​​‌‌​​‍‌​‌‌​​‌‍‌​​​​​‌‍‌​‌​​​‌‍‌​​​​​‌‍‌​‌​‌​‌‍‌​
@rjhansen
rjhansen / keyservers.md
Last active May 27, 2025 21:31
SKS Keyserver Network Under Attack

SKS Keyserver Network Under Attack

This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.

Terminological Note

"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.

Who am I?

@bmaupin
bmaupin / en_SE
Last active May 10, 2025 12:35
en_SE locale
escape_char /
comment_char %
% This file was generated by taking the LC_TIME section from en_US and
% replacing date/time representation with that of sv_SE from the glibc
% locale sources
% (http://sourceware.org/git/?p=glibc.git;a=tree;f=localedata/locales;hb=HEAD)
% (https://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html)
% This file is part of the GNU C Library and contains locale data.