This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set PATH=%PATH%;"%ProgramFiles%\Microsoft Visual Studio 10.0\VC\bin" | |
call vcvars32 | |
cl plugin.c /FAc /c | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project(gamemode) | |
cmake_minimum_required(VERSION 2.8) | |
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Modules) | |
include(AmxConfig) | |
include(SampPlugin) | |
find_package(SampGdk3 REQUIRED) | |
include_directories(${SampGdk3_INCLUDE_DIRS}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module rdtsc; | |
import std.stdio; | |
import std.stdint; | |
int64_t ReadTimeStampCounter() { | |
version (X86_64) { | |
asm { | |
naked; | |
rdtsc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#include <netdb.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <arpa/inet.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
me=`basename $0` | |
if [ $# -ne 1 ] | |
then | |
echo Usage: $me remote | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import subprocess | |
command = 'git log --oneline | grep "^[0-9a-f]\{1,7\} v[0-9\.]*$"' | |
output = subprocess.check_output(command, shell=True).decode('utf-8') | |
for line in output.splitlines(): | |
commit, tag = line.split() | |
subprocess.call('git tag -a %s -m %s %s' % (tag, tag, commit), shell=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
samp-server-cli --output --timestamp --query --rcon --rcon-password debug \ | |
--plugin $SAMP_GDB_PLUGIN \ | |
--gamemode $SAMP_GDB_GAMEMODE \ | |
$SAMP_GDB_EXTRA_OPTIONS \ | |
--debug $* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SciTE settings for the Pawn language | |
file.patterns.pawn=*.pwn;*.inc | |
filter.pawn=Pawn (pwn inc)|$(file.patterns.pawn)| | |
lexer.$(file.patterns.pawn)=cpp | |
keywords.$(file.patterns.pawn)=assert break case char const continue \ | |
default do else enum exit false for forward goto if native new operator \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maximize the window on program startup | |
position.maximize=1 | |
# Do not minimize to tray | |
minimize.to.tray=0 | |
# Do not place output pane at the right (shows it at the bottom instead) | |
split.vertical=0 | |
# Enable edit window's horizontal scrollbar | |
horizontal.scrollbar=1 | |
# Output pane settings |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\shell\cmd_shell] | |
@="Open command prompt here" | |
"Icon"=hex(2):63,00,6d,00,64,00,2e,00,65,00,78,00,65,00,00,00 | |
[HKEY_CLASSES_ROOT\Directory\shell\cmd_shell\command] | |
@="cmd.exe" | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd_shell] |