Skip to content

Instantly share code, notes, and snippets.

@osler
osler / SW_taxi.lua
Last active June 13, 2020 15:43
Stormwind taxi
--[[
Stormwind Taxi
TODO:
-Generate buttons from teleports table
Known bugs:
-UI doesn't show up after /reload
]]
local AIO = AIO or require("AIO")
local MyHandlers = AIO.AddHandlers("MallGUI", {})
@osler
osler / gist:d3c6aa5d7bd40af7f2b5
Created August 28, 2015 09:56
Parche G3D trinitycore FreeBSD
suggested patch __for_FeeBSD__ only
diff -r 2ec7317da7e3 dep/g3dlite/source/FileSystem.cpp
--- a/dep/g3dlite/source/FileSystem.cpp Sun Aug 29 20:28:14 2010 -0700
+++ b/dep/g3dlite/source/FileSystem.cpp Mon Aug 30 12:13:47 2010 +0600
@@ -27,6 +27,14 @@
# include <io.h>
#define stat64 _stat64
+#elif defined(__FreeBSD__)
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
typedef unsigned int uint32;
typedef int int32;
typedef unsigned short uint16;
@osler
osler / AccountLogin.lua
Created March 21, 2015 18:47
Nuevo trailer
FADE_IN_TIME = 2;
DEFAULT_TOOLTIP_COLOR = {0.8, 0.8, 0.8, 0.09, 0.09, 0.09};
MAX_PIN_LENGTH = 10;
function AccountLogin_OnLoad(self)
TOSFrame.noticeType = "EULA";
self:RegisterEvent("SHOW_SERVER_ALERT");
self:RegisterEvent("SHOW_SURVEY_NOTIFICATION");
self:RegisterEvent("CLIENT_ACCOUNT_MISMATCH");
FADE_IN_TIME = 2;
DEFAULT_TOOLTIP_COLOR = {0.8, 0.8, 0.8, 0.09, 0.09, 0.09};
MAX_PIN_LENGTH = 10;
HTML_TITLE = "Test";
function AccountLogin_OnLoad(self)
TOSFrame.noticeType = "EULA";
self:RegisterEvent("SHOW_SERVER_ALERT");
@osler
osler / tox.sh
Created February 16, 2014 15:43 — forked from urras/tox.sh
#!/bin/bash
## wget -O tox.sh https://gist.github.com/fr0stycl34r/6690783/raw && chmod +x ./tox.sh && ./tox.sh
# By cl34r and notadecent
rootcheck() {
if [ "id -u $USERNAME" = "0" ]; then
echo "Please do not run this script as root"
exit 1
fi
}
# Check if script is being run as root
extract()
{
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.tar.xz) tar xJf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
@osler
osler / overwow.css
Created January 15, 2014 20:57
Escritorio V3
/*
theme.bg_normal = "#d9e6f2"
theme.bg_focus = "#8AC0F2"
*/
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("overwow.com") {
#ipbwrapper{
background-image: none !important;
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("overwow.com") {
#ipbwrapper{
background-image: none !important;
background-color: #242627 !important;
}
body{
margin-top:40px !important;
background-color: #242627 !important;
@osler
osler / sly.css
Last active January 2, 2016 04:08
Series.ly mejorado
Instalacion: http://userstyles.org/help/stylish