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
Index: cgame/cg_crash.c | |
=================================================================== | |
--- cgame/cg_crash.c (revision 535) | |
+++ cgame/cg_crash.c (working copy) | |
@@ -151,11 +151,19 @@ | |
//If we don't do this stack traces are less accurate. | |
#ifdef GLIBC_21 | |
Crash_Printf("Stack frames: %Zd entries\n", size-1); | |
+#ifndef __x86_64__ | |
array[1] = (void *)ctx->uc_mcontext.gregs[EIP]; |
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/perl -w | |
# Author: Konrad "morsik" Mosoń <mosonkonrad@gmail.com> | |
# linked here: http://wiki.libvirt.org/page/Networking#Applying_modifications_to_the_network | |
use strict; | |
use warnings; | |
my $net = $ARGV[0]; |
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 python2 | |
import select | |
import sys | |
import socket | |
import Request | |
TCP_IP = "0.0.0.0" | |
TCP_PORT = 1234 | |
BUFFER_SIZE = 4 |
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/bash | |
MAKEOPTS="-j8" | |
RUBYDIR=${HOME}/ruby | |
einfo() { | |
echo -e "\033[1;32m * \033[1;37m${1}\033[0m" | |
} | |
rm -rf ~/tmp |
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 | |
# Author: Konrad Mosoń <morsik@darkserver.it> | |
# Description: Simple Enemy Territory: Legacy installer | |
function m { | |
echo -e " \033[1;31m:\033[38;5;33m:\033[1;37m $1\033[0m" | |
} | |
if [ ! -n "$1" ]; then |
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 bash | |
e="echo -e" | |
en="echo -en" | |
function i { | |
if [[ $1 == "ok" ]] | |
then | |
$e "\033[1;32mok\033[G * \033[0m" | |
elif [[ $1 == "fail" ]] |
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/bash | |
# Author: Konrad (morsik) Mosoń | |
# Usage: ./calcram.sh chromium | |
SUM=0 | |
OUT=`ps aux | grep $1 | awk '{print $4}'` | |
for n in $OUT | |
do |
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
-- | |
-- autosettings.lua | |
-- Author: morsik | |
-- | |
-- this mod allows to autoset panzerwar or sniperwar | |
-- on specified map | |
-- | |
-- CONFIG BEGIN |
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/bash | |
# Author: Konrad 'morsik' Mosoń | |
# usage: | |
# - open terminal | |
# - go to your icons directory (eg. ~/.icons/my_oxygen_copy - don't forget to change icon theme name in index.theme) | |
# - run this script (yes, from icons directory, eg. ~/.icons/my_oxygen_copy) | |
# stupid add_symlink fixed :D - thanks to PovAddict |
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 | |
msg() { | |
echo -e "\033[1;32m >> \033[1;37m$1\033[0m..." | |
} | |
msg "Creating zroot" | |
zpool create -f zroot mirror /dev/gpt/disk0 /dev/gpt/disk1 | |
msg "Configuring zroot" |