Skip to content

Instantly share code, notes, and snippets.

View 4U6U57's full-sized avatar

August Valera 4U6U57

View GitHub Profile
// ==UserScript==
// @name @chaoticvibing Twitter Blue Nerd - twitter.com
// @namespace Violentmonkey Scripts
// @match *://*.twitter.com/*
// @match *://*.x.com/*
// @grant none
// @version 1.9.2
// @author @chaoticvibing - GH @busybox11
// @description 11/9/2022, 11:45:28 PM
// @updateURL https://gist.githubusercontent.com/busybox11/53c76f57a577a47a19fab649a76f18e3/raw
@aras-p
aras-p / preprocessor_fun.h
Last active July 16, 2024 02:50
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,
@miceno
miceno / sample-getopts.bash
Created December 17, 2010 12:58
How to combine getopts options with (-) and non-options. After processing all options, variable OPTIND contains the value of the first non-option (commandline argument that doesn't start with (-)). Shift command will clean previous commandline optio
#!/bin/bash
while getopts "u:p:" opt; do
case $opt in
u)
echo "-u was triggered, Parameter: $OPTARG"
dbuser="$OPTARG"
;;
p)