Skip to content

Instantly share code, notes, and snippets.

View nikoncode's full-sized avatar

Mikita Karaliou nikoncode

  • Poland
View GitHub Profile
@nikoncode
nikoncode / brut.php
Created January 18, 2015 23:13
123321
function getmicrotime() {
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec + (float)$sec);
}
$time_start = getmicrotime();
$charset = 'abcdefghijklmnopqrstuvwxyz';
$str_length = strlen($charset);
@nikoncode
nikoncode / depack.js
Created January 2, 2015 23:52
depacker
function depack(p) {
if (p != "") {
c = unescape(p);
var _e = eval,
s = "eval=function(v){c=v;};" + c + ";eval=_e;";
eval(s)
} else {
c = p
};
return c
@nikoncode
nikoncode / 1.c
Created September 16, 2014 06:05
#include <stdio.h>
#include <windows.h>
int main() {
//Set windows-1251 codepage
SetConsoleCP(1251);
SetConsoleOutputCP(1251);
//Memory init
char * str = new char[100];
SELECT routes.name,
CONCAT(fname,' ',lname) AS fio
FROM routes
LEFT JOIN comp_riders ON routes.id = comp_riders.rid
LEFT JOIN users ON comp_riders.uid = users.id
WHERE routes.cid = 4
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
typedef struct node_container {
char element;
int count;
struct node_container * left;
struct node_container * right;
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Хост: 127.0.0.1
-- Время создания: Май 12 2014 г., 01:40
-- Версия сервера: 5.5.25
-- Версия PHP: 5.3.13
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
#include <stdio.h>
#include <stdlib.h>
typedef struct teams {
char team[20];
struct teams * next;
struct comp * down;
} teams_list;
typedef struct {
@nikoncode
nikoncode / list.c
Created April 4, 2014 04:07
123123
#include <stdio.h>
#include <stdlib.h>
typedef struct {
char last_name[20];
char first_name[20];
char team[20];
char sports_type[20];
int all_pts;
int penalty_pts;
searchd
{
listen = 1337:mysql41
pid_file = /var/run/searchd.pid
log = /var/log/sphinxsearch/log.txt
query_log = /var/log/sphinxsearch/query_log.txt
}
source users
{
@nikoncode
nikoncode / sphinx.conf
Created March 23, 2014 11:12
sphinx indexes
searchd
{
listen = 1337:mysql41
pid_file = /var/run/searchd.pid
log = /var/log/sphinxsearch/log.txt
query_log = /var/log/sphinxsearch/query_log.txt
}
source users
{