Skip to content

Instantly share code, notes, and snippets.

View rumblefrog's full-sized avatar
💭
I may be slow to respond.

rumblefrog rumblefrog

💭
I may be slow to respond.
  • United States
  • 04:11 (UTC -04:00)
View GitHub Profile
@nasirkhan
nasirkhan / comand.markdown
Last active April 10, 2024 16:56
Git, Github -- Keep a file in the project but do not track the changes.

Sometimes we need to keep a file in the project but do not want to track the changes, for example the config/configuration file or other setting file.

git has a solution to do this. First change the file you do not want to be tracked and use the following command.

git update-index --assume-unchanged FILE_NAME

and if you want to track the changes again use this command,

@tedmiston
tedmiston / nodejs-tcp-example.js
Last active May 20, 2024 11:27
Node.js TCP client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@tristanwietsma
tristanwietsma / auth.go
Created May 15, 2014 04:15
Golang web server example
package main
import (
"encoding/base64"
"net/http"
"strings"
)
type handler func(w http.ResponseWriter, r *http.Request)
@yesvods
yesvods / gist:51af798dd1e7058625f4
Created August 15, 2015 11:13
Merge Arrays in one with ES6 Array spread
const arr1 = [1,2,3]
const arr2 = [4,5,6]
const arr3 = [...arr1, ...arr2] //arr3 ==> [1,2,3,4,5,6]
@parmentf
parmentf / GitCommitEmoji.md
Last active July 23, 2024 11:27
Git Commit message Emoji
@sigsegv-mvm
sigsegv-mvm / set_weapon_mode.txt
Last active January 31, 2023 12:50
Documentation for attribute class "set_weapon_mode"
"set_weapon_mode" attribute documentation
accurate as of TF2 version ~20160327 (updated for ~20190501)
reverse engineering by sigsegv
General Notes
=============
There are many attributes in the game that map to attribute class "set_weapon_mode", with many different names:
- "fists have radial buff"
- "set cloak is feign death"
@cleverca22
cleverca22 / 32bit-simple-test.nix
Last active September 8, 2019 12:43
patchelf util
with import <nixpkgs> { system = "i686-linux"; };
runCommandCC "filename" { buildInputs = [ gcc ]; } ''
cat <<EOF > $out
#!${stdenv.shell}
patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" --set-rpath ${lib.makeLibraryPath [ zlib ]} \$1
EOF
chmod +x $out
''
@rsKliPPy
rsKliPPy / am-night.user.js
Last active March 2, 2018 02:23
ViolentMonkey script to add a night theme to AlliedModders Forums.
// ==UserScript==
// @name AlliedModders Night Theme
// @namespace github.com/rsKliPPy/
// @match https://forums.alliedmods.net/*
// @version 1.3.0
// @downloadURL https://gist.githubusercontent.com/rsKliPPy/4d4281e6ac447b601958d2e6c4971c30/raw
// @homepageURL https://github.com/rsKliPPy
// @grant none
// @run-at document-start
// ==/UserScript==
@Bara
Bara / User settings
Last active April 26, 2018 18:05
My settings for sourcepawn highlighting and autocompletion in combination with 2 extensions and 1 theme
{
"files.autoSave": "onFocusChange",
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": true,
// https://marketplace.visualstudio.com/items?itemName=robertohuertasm.vscode-icons
"workbench.iconTheme": "vscode-icons",
"vsicons.associations.files": [
@Danktuary
Danktuary / index.js
Last active May 13, 2022 09:43
Raw event reaction add example
const { Client } = require('discord.js');
const client = new Client();
client.on('ready', () => {
console.log('Ready!');
});
const events = {
MESSAGE_REACTION_ADD: 'messageReactionAdd',
MESSAGE_REACTION_REMOVE: 'messageReactionRemove',