Skip to content

Instantly share code, notes, and snippets.

View Tenrys's full-sized avatar

Bell Tenrys

View GitHub Profile
@wontoncc
wontoncc / balloontip.py
Last active July 6, 2024 19:59
Balloon tip module, Python, using win32gui.
# -- coding: utf-8 --
from win32api import *
from win32gui import *
import win32con
import sys, os
import struct
import time
class WindowsBalloonTip:
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active July 27, 2024 16:01
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@samuelmaddock
samuelmaddock / gm_sublime_glass.lua
Last active May 14, 2016 05:59
Glass effect for Garry's Mod; save in lua/autorun.
---
-- Sublime Glass - Garry's Mod
--
-- Use with the 'Sublime Text Trans' package.
-- https://github.com/vhanla/SublimeTextTrans
--
if SERVER then
AddCSLuaFile()
return
@Python1320
Python1320 / try_fix_spazz.lua
Last active December 18, 2015 15:09
Try to fix crouch spazzing in gmod
-- Still spazzes
--- when pushing against roof
--- When getting off grund
local ppos = Vector()
local view = { }
if GetConVar "developer":GetInt() > 0 then
RunConsoleCommand("contimes", "55")
end
@JohnnyonFlame
JohnnyonFlame / good_water.kc
Last active March 5, 2016 02:36
Software water rendering in EVALDRAW
()
{
sleep(33);
cls(0);
Double p[3] = {-128, 0, 32};
proj = (xres/2) / tan(rad(70/2));
ang = 0;
for (i=0; i<yres/2 + 100; i++)
{
@bmwalters
bmwalters / Facepunch_GLua_Wiki_Tokenizer.user.js
Last active August 30, 2016 23:29
Get the power of the GLua Wiki Tokenizer in your Facepunch [lua] tags!
// ==UserScript==
// @name Facepunch GLua Wiki Tokenizer
// @namespace zerf
// @description Get the power of the GLua Wiki Tokenizer in your Facepunch [lua] tags!
// @version 1.5
// @include https://facepunch.com/showthread.php*
// @downloadURL https://gist.github.com/bmwalters/6d4cc5499378711de0f46028e565cc8d/raw/master/Facepunch_GLua_Wiki_Tokenizer.user.js
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
// @run-at document-start
// @grant GM_xmlhttpRequest
@meepen
meepen / materialmeepen.lua
Last active February 5, 2017 04:38
A Derma skin for Garry's Mod. Mimics Windows 10 a bit.
local surface = surface
local draw = draw
local Color = Color
surface.CreateFont("MaterialMeepen", {
font = "Tahoma",
size = 13,
weight = 500,
antialias = true,
extended = true
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active July 20, 2024 23:50
Hyperlinks in Terminal Emulators
@meepen
meepen / hook.lua
Last active January 2, 2022 13:55
NEW GMOD HOOKS 70,000% FASTER - new LINKED LIST version available now for purchase (FREE PRIORITIZATION INCLUDED)
hook = include "newhook.lua"