Skip to content

Instantly share code, notes, and snippets.

View m0k1's full-sized avatar
👻
Hunting bugs like Ghost Buster !

Momčilo Mićanović m0k1

👻
Hunting bugs like Ghost Buster !
View GitHub Profile
@m0k1
m0k1 / testGM.pwn
Created April 24, 2015 19:14
Testing of YSI 4.0 Y_commands
#include <a_samp>
#undef MAX_PLAYERS
#define MAX_PLAYERS (1000)
#include <core>
#include <float>
#include <YSI\y_commands> // By Y_Less, 4.0: https://github.com/Misiur/YSI-Includes/
#include <YSI\y_master> // By Y_Less, 4.0: https://github.com/Misiur/YSI-Includes/
main()
{
@m0k1
m0k1 / untar.php
Created April 20, 2015 15:21
Untar php script
<?php
/**
* Simple script to extract files from a .tar archive
*
* @param string $file The .tar archive filepath
* @param string $dest [optional] The extraction destination filepath, defaults to "./"
* @return boolean Success or failure
*/
function untar($file, $dest = "./") {
#include <a_samp>
#include <streamer>
#include <zcmd>
#include <sscanf2>
#include <foreach>
// EDIT THESE DEFINES TO WHATEVER SUITS YOU
#define USE_SYNC true // respawns the vehicle after you hit the cancel/finish button so it syncs with the world, disable this if you're mapping on a hill and the vehicle accidentally drives down the hill.
#define MAX_VEHICLES_PER_PLAYER (50) // maximum amount of vehicles 1 player can spawn
#define LABEL_COLOR 0xFFFFFFFF // Vehicle's label color
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
@m0k1
m0k1 / gist:15a380962c71e6de0e91
Created January 18, 2015 04:35
Useful object streamer that streams objects realistically (the bigger the object, the farther it gets streamed from)
#include <a_samp>
#include <streamer> //by Incognito http://forum.sa-mp.com/showthread.php?t=102865
#include <modelsizes> //by Y_Less http://forum.sa-mp.com/showthread.php?t=407909
#define STREAM_CONSTANT 180
stock StreamObject(modelid, Float:x, Float:y, Float:z, Float:rx, Float:ry, Float:rz)
{
return CreateDynamicObject(modelid, x, y, z, rx, ry, rz,-1, -1, -1, STREAM_CONSTANT + GetColSphereRadius(modelid));
}
@m0k1
m0k1 / sql_dork_list
Created December 7, 2014 23:15
Google SQL dork list
trainers.php?id=
play_old.php?id=
declaration_more.php?decl_id=
Pageid=
games.php?id=
newsDetail.php?id=
staff_id=
historialeer.php?num=
product-item.php?id=
news_view.php?id=
@m0k1
m0k1 / main.cs
Last active August 29, 2015 14:10
noobot_launcher src
namespace NooBot_Launcher
{
using Microsoft.Win32;
using NooBot_Launcher.Properties;
using System;
using System.ComponentModel;
using System.Diagnostics;
using System.Drawing;
using System.IO;
@m0k1
m0k1 / makrsizam.txt
Last active August 29, 2015 14:10
SVJETSKI POVRATAK MARKSIZMU
Planeta Zemlja je stara četiri milijarde godina. Za osam milijardi godina biti će potpuno pusti i sprženi beživotni otok u svemiru, uništena od sunca koji će se pretvoriti u crvenog diva. U međuvremenu jedna pomahnitala bulumenta budala uništavaju egzistenciju svojih bližnjih, većine čovječanstva, tjerajući ih u glad, nedostatak obrazovanja, razboljevanje, umiranje i nedostatak primjerene vremenu medicinske zaštite i osnovnih uvjeta za život; dokidajući time osnove za temelje ljudskog dostojanstva pojedinaca i čitave ljudske vrste. A, sve to jer žele imati stometarske jahte s tri helikoptera na palubama, desetke kuća po Toskanama, Provansama, Maldivima...iako istovremeno ne mogu biti na svim tim mjestima niti mogu u razumnim vremenskim periodima iskoristiti sve to što će korozija i zub vremena vrlo brzo pretvoriti u prah. A ako i prodaju sve to, opet ni oni ni njihovi potomci ne mogu sav taj novac pojesti već ga moraju trošiti opet na luksuz, do prvog burzovnog kraha ili povijesnih lomova društava. Pohlepno s