Skip to content

Instantly share code, notes, and snippets.

View kapraran's full-sized avatar

Nikos Kapraras kapraran

View GitHub Profile
@Mobius1
Mobius1 / __init__.lua
Last active January 10, 2021 19:40
Spawn a dropped weapon with attachments in Venice Unleashed
-- Spawns dropped weapons and adds random attachments.
-- List of weapons to add
local weapons = {
{
name = "M98B",
container = "Weapons/Model98B/U_M98B",
slot = WeaponSlot.WeaponSlot_0,
attachments = {
optics = {
@premek
premek / mv.sh
Last active March 5, 2024 17:43
Rename files in linux / bash using mv command without typing the full name two times
# Put this function to your .bashrc file.
# Usage: mv oldfilename
# If you call mv without the second parameter it will prompt you to edit the filename on command line.
# Original mv is called when it's called with more than one argument.
# It's useful when you want to change just a few letters in a long name.
#
# Also see:
# - imv from renameutils
# - Ctrl-W Ctrl-Y Ctrl-Y (cut last word, paste, paste)
@nmussy
nmussy / twitchplayspokemon-controller.js
Last active August 29, 2015 13:56
Just a quick set of keyboard shortcuts used for http://www.twitch.tv/twitchplayspokemon
var a = {
"37": "left",
"38": "up",
"39": "right",
"40": "down",
"65": "a",
"66": "b"
};
$(document).on('keypress', function(e) {
if(a[e.which])
@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007