Skip to content

Instantly share code, notes, and snippets.

@salmanmorshed
salmanmorshed / PatchWebDriver.sh
Created October 31, 2015 12:02
Execute script inside the directory containing Nvidia Web Driver installer to create a patched copy
#!/bin/bash
# =========================================================================
# Patches Nvidia Web Driver installers for installing on non-MacPro devices
# By: Md. Salman Morshed - [email protected]
# =========================================================================
PKG_FILE="$(ls | grep WebDriver | head -1)"
TMP_DIR="$PKG_FILE.temp"
@salmanmorshed
salmanmorshed / autoexec_cfg
Last active October 4, 2016 00:03
Zed's UrT Config
// ==================================== //
// ZED'S PERSONAL KEYBINDS AND SETTINGS //
// ------------------------------------ //
// *** Last updated @ 4 Oct 2016 *** //
// ==================================== //
//Personal
//set m_filter "0"
//set sensitivity 2.20 // 2400 CPI & OS X 0.0 mouse scaling
@salmanmorshed
salmanmorshed / urtscore.py
Last active December 30, 2015 18:49
Module to calculate the individual scores of all players from a games.log file generated by Urban Terror.
#!/usr/bin/env python
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@aniruddha-adhikary
aniruddha-adhikary / ubuntu-release-checker.py
Last active March 21, 2016 16:45
ubuntu release checker
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import urllib
import json
version = "15.10"
arch = "i386" # i386 or amd64
mirrorlist = ["http://ubuntu.mirror.mendoza-conicet.gob.ar/", "http://releases.ubuntu.unc.edu.ar/", "http://ftp.iinet.net.au/pub/ubuntu-releases/", "http://mirror.aarnet.edu.au/pub/ubuntu/releases/", "http://mirror.netspace.net.au/pub/ubuntu-releases/", "http://ubuntu.mirror.serversaustralia.com.au/ubuntu-releases/", "http://ubuntu.mirror.uber.com.au/releases/", "http://mirror.internode.on.net/pub/ubuntu/releases/", "http://ubuntu.lagis.at/releases/", "http://mirrors.ispros.com.bd/ubuntu-release/", "http://by.releases.ubuntu.com/", "http://ubuntu-releases.mirror.nucleus.be/", "http://ubuntu.mirrors.skynet.be/pub/ubuntu.com/releases/", "http://bw.releases.ubuntu.com/", "http://ubuntu.c3sl.ufpr.br/releases/", "http://mirror.globo.com/ubuntu/releases/", "http://mirror.pop-sc.rnp.br/mirror/ubuntu/", "http://ubuntu.mirror.pop-sc.rnp.br/mirror/ubuntu-releases/", "http://mirror.unesp.br/ubuntu
@seungwon0
seungwon0 / Whatthecommit
Created January 30, 2011 02:56
Random commit message generator
#! /bin/sh
#
# whatthecommit - Random commit message generator
#
# Show random commit message from http://whatthecommit.com/.
#
# Seungwon Jeong <[email protected]>
#
# Copyright 2011 by Seungwon Jeong