Skip to content

Instantly share code, notes, and snippets.

<?php
#!/usr/bin/php
/*
* Script: lgaetz-tctoggle.php (Modified)
* Original Author: lgaetz - https://gist.github.com/lgaetz/28d41cf0ff5af1179d7840d67aae971c
* Modifications by: Eugene Robertus, 2025
*
* License: GNU GPL v3+
* This script and its modifications are distributed under the same GPL license.
@ericbn
ericbn / .vimrc
Last active June 30, 2025 23:48
Vim Powerline-like status line without the need of any plugin
" Statusline (requires Powerline font)
set statusline=
set statusline+=%(%{&buflisted?bufnr('%'):''}\ \ %)
set statusline+=%< " Truncate line here
set statusline+=%f\ " File path, as typed or relative to current directory
set statusline+=%{&modified?'+\ ':''}
set statusline+=%{&readonly?'\ ':''}
set statusline+=%= " Separation point between left and right aligned items
set statusline+=\ %{&filetype!=#''?&filetype:'none'}
set statusline+=%(\ %{(&bomb\|\|&fileencoding!~#'^$\\\|utf-8'?'\ '.&fileencoding.(&bomb?'-bom':''):'')
@mzabriskie
mzabriskie / README.md
Last active June 30, 2025 23:47
Check git status of multiple repos

If you're like me you have a dir like ~/Workspace/Github where all your git repos live. I often find myself making a change in a repo, getting side tracked and ending up in another repo, or off doing something else all together. After a while I end up with several repos with modifications. This script helps me pick up where I left off by checking the status of all my repos, instead of having to check each one individually.

Usage:

git-status [directory]

This will run git status on each repo under the directory specified. If called with no directory provided it will default to the current directory.

@k-amin07
k-amin07 / VFIO.md
Last active June 30, 2025 23:43
VFIO Guide for GPU Passthrough

Introduction:

This guide is for achieving PCI-Passthrough with Intel 7700k and AMD RX 580. My host OS is Manjaro KDE edition, and guest is Windows 10.

Hardware:

Device Type Device
CPU Intel Core i7-7700K
Motherboard ASUS Prime Z270P
RAM Corsair Vengeance (DDR4 3000 MHz)
GPU (Host) Intel HD Graphics
@bradtraversy
bradtraversy / terminal-commands.md
Last active June 30, 2025 23:41
Common Terminal Commands

Common Terminal Commands

Key Commands & Navigation

Before we look at some common commands, I just want to note a few keyboard commands that are very helpful:

  • Up Arrow: Will show your last command
  • Down Arrow: Will show your next command
  • Tab: Will auto-complete your command
  • Ctrl + L: Will clear the screen
@intellectronica
intellectronica / ArtiGist.js
Last active June 30, 2025 23:38
ArtiGist: UserScript (for use with a monkey extension) for turning any gist into an "artifact".
// ==UserScript==
// @name ArtiGist
// @version 0.5
// @description Launch single-page HTML apps from GitHub Gists.
// @author Eleanor Berger <eleanor@intellectronica.net> with Gemini CLI
// @match https://gist.github.com/*/*
// @match https://gist.githubusercontent.com/*/*
// @grant GM_xmlhttpRequest
// @grant GM_openInTab
// ==/UserScript==
@zhujunsan
zhujunsan / Using Github Deploy Key.md
Last active June 30, 2025 23:37
Using Github Deploy Key

What / Why

Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.

As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.

How to

  1. Generate a ssh key
@KN4CK3R
KN4CK3R / CSGOFont.cpp
Last active June 30, 2025 23:34
OSHGui::Drawing::Renderer implementation with Source Engine
#include "CSGOFont.hpp"
using namespace OSHGui;
using namespace OSHGui::Drawing;
//---------------------------------------------------------------------------
//Constructor Test
//---------------------------------------------------------------------------
CSGOFont::CSGOFont(Classes::IMatSystemSurface *surface_, const Misc::AnsiString &name, int size)
: surface(surface_),
@Randall71
Randall71 / WithAbiFilters.js
Created June 20, 2025 18:08
Config Plugin to just build expo app for specific architectures of processor (armeabi-v7a, arm64-v8a, x86, x86-64)
const { withGradleProperties, withAppBuildGradle } = require('@expo/config-plugins');
const withAbiFilters = (config, { abiFilters = ['arm64-v8a'] } = {}) => {
console.log('🔧 ABI Filter plugin is running!', abiFilters);
// Set gradle.properties
config = withGradleProperties(config, (config) => {
// Convert array to comma-separated string for gradle.properties
const architecturesString = abiFilters.join(',');
@liuran001
liuran001 / config.yaml
Last active June 30, 2025 23:28
mihomo (Clash Meta) 懒人配置
# AFF
# 如果你想支持我,可以通过我的邀请链接购买机场
# 感谢支持
# 1. 倾城极速 邀请码: 0jiB5uAA https://qcjs.ovh/#/register?code=0jiB5uAA
# 2. superbiu 邀请码: fACfjKC8 https://superbiu.com/#/register?code=fACfjKC8
# 一定要填我的邀请码,不填我哭给你看😭
# mihomo (Clash Meta) 懒人配置
# 版本 V1.21-250619
# https://gist.github.com/liuran001/5ca84f7def53c70b554d3f765ff86a33