Skip to content

Instantly share code, notes, and snippets.

@amanjuman
amanjuman / derper
Last active June 24, 2025 08:41
TailScale Derper Install on Linux
## Download Go
sudo wget --output-document /opt/go.tar.gz https://go.dev/dl/go1.23.2.linux-amd64.tar.gz
## Remove Existing Go and Extract Downloaded Go
sudo rm -rf /usr/local/go && sudo tar --directory /usr/local --extract --gzip --file /opt/go.tar.gz && sudo rm /opt/go.tar.gz
## Delete & Recreate user for Derper
id -u derp &>/dev/null || sudo useradd --system --create-home --home-dir /opt/derp --shell /bin/bash derp
## Export Profile path
@aras-p
aras-p / preprocessor_fun.h
Last active June 24, 2025 08:18
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@jinjier
jinjier / javdb-top250.md
Last active June 24, 2025 08:05
JavDB top 250 movies list. [Updated on 2025/06]
@fuzzmz
fuzzmz / redirect.html
Created December 4, 2012 11:06
HTML redirect
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">
</head>
<body>
Optional page text here.
</body>
</html>
@cablej
cablej / default.md
Created June 21, 2025 18:46
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@njh
njh / house.example.net.conf
Created January 21, 2016 13:09
Proxying Node-Red through Nginx
server {
server_name house.example.net;
listen 1.2.3.4:80 default_server;
listen [2001:1234:ffff::1]:80 default_server;
add_header Cache-Control "public,max-age=31536000";
return 301 https://$server_name$request_uri;
}
map $ssl_client_s_dn $ssl_username {
@NTT123
NTT123 / mfa-ljspeech.ipynb
Last active June 24, 2025 07:38
MFA LJSpeech.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kunteinzo
kunteinzo / Windows Activation Script.bat
Last active June 24, 2025 07:29
Windows Activation Bat file
@ECHO OFF
title Windows Activation Script
setlocal EnableDelayedEXpansion
::echo Note: To eXecute this script with Run As Administrator
net session >nul 2>&1
if %errorlevel% == 0 (
::echo Success: Administrative permissions confirmed.
call :Main
@machida
machida / html_practice.html
Last active June 24, 2025 07:27 — forked from horaotoko/for wiki
HTMLの練習(このレシピにマークアップをしてみましょう)
カレーのレシピ
誰でもできる、美味しいカレーの作り方です。旦那も息子もこのカレーが大好物。
ポイントは玉ねぎと人参はミキサーで細かくしてしまうところ。逆にコクのある美味しいカレーになります。
レシピの作者
山田サチ子さん
材料 ( 8皿分 )