Skip to content

Instantly share code, notes, and snippets.

author: @sleepyfox
title: Expertise and interviews
date: 23-Apr-2023

Expertise and interviews

In 2001 Paul Graham, founder of Startup Incubator Y Combinator wrote a blog post about LISP called 'Beating the averages'. I don't want to talk about LISP, or startups, not today anyway.

HP LaserJet P1102 Drivers for macOS Sequoia

This instructions provides a solution for installing HP LaserJet P1102 drivers on macOS Sequoia (15.0+). The official HP drivers don't install on the latest macOS versions, but with a simple modification to bypass the operating system version check, you can get your printer working again.

Supported Printer Models

  • HP LaserJet P1102
  • HP LaserJet Pro P1102
  • HP LaserJet Pro P1102w
@krypton-byte
krypton-byte / bypass_byethost5.py
Last active May 18, 2025 08:54
Bypass javascript Byethost 5
import re
import requests
import js2py
def getContent(url):
javascript=js2py.EvalJs()
javascript.eval(requests.get(re.search("(https?://.*?\.[a-zA-Z0-9.]{0,20})",url).group(1)+"/aes.js").text)
return requests.get(url, headers={"Cookie":javascript.eval(re.search("\<script\>(fu.*?;)\<", requests.get(url).text).group(1).replace("document.cookie", "cookie").replace("location.", "")+"cookie")})
print(getContent("http://krypton-byte.byethost5.com/"))
@korya
korya / Subfolder to git repo.md
Last active May 18, 2025 08:50
Convert subfolder into Git submodule
# DD Windows Server 2008 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2008R2_sp1_64_Administrator_nat.ee.gz'
# DD Windows Server 2012 R2 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2012R2_64_Administrator_nat.ee.gz'
# DD Windows Server 2016 64位 精简版 [账户Administrator密码nat.ee]
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://oss.sunpma.com/Windows/Win_Server2016_64_Administrator_nat.ee.gz'
@yifanzz
yifanzz / code-editor-rules.md
Created December 17, 2024 00:01
EP12 - The One File to Rule Them All

[Project Name]

Every time you choose to apply a rule(s), explicitly state the rule(s) in the output. You can abbreviate the rule description to a single word or phrase.

Project Context

[Brief description ]

  • [more description]
  • [more description]
  • [more description]
@bytexenon
bytexenon / Make Discord Server With a Tag.md
Last active May 18, 2025 08:21
Make Discord Server With a Tag

Automation Script for Getting Discord Server with a Tag

Caution

TAGS HALTED FOR NEW SERVERS & ACCOUNTS BANNED


Due to widespread abuse of automation scripts, Discord has:

  1. STOPPED granting the experimental server tags for newly created servers.
  2. Started ACTIVELY BANNING accounts (temporarily and permanently) that used such scripts.
@pletcher
pletcher / prog-hist-word-freq.py
Created March 11, 2025 18:47
A rewrite of the Programming Historian Word Frequencies lesson to use the Old Bailey API instead of requesting the web page
#html-to-freq.py
# original lesson: https://programminghistorian.org/en/lessons/counting-frequencies
# We've added json to the list of imports — you don't need to install anything,
# json is part of the Python standard library.
import urllib.request, urllib.error, urllib.parse, json, obo
# Notice that instead of requesting the HTML directly, we're now
# making a request to the backend API — meaning a server that returns
@codinginflow
codinginflow / next-self-hosting-instructions.md
Last active May 18, 2025 07:56
Deploy & secure a Next.js app + Postgres DB on a VPS

Self-Hosting Next.js Tutorial

Follow the instructions below to deploy a Next.js app with a local PostgreSQL database to a VPS, secure it, and connect it to a custom domain with free SSL. Watch the accompanying tutorial on YouTube: https://www.youtube.com/watch?v=2T_Dx7YgBFw

Instructions & commands:

  1. Get your VPS server on Hostinger (Use code CODINGINFLOW for 10% off). Install Ubuntu 24 as the OS and set a root password.
  2. Log into your server as root: ssh root@<your-server-ip>
  3. Update Linux packages: apt update && apt upgrade -y
  4. Create a new user: adduser