Skip to content

Instantly share code, notes, and snippets.

View necenzurat's full-sized avatar
🥺
I still hate JS

Costin Moise necenzurat

🥺
I still hate JS
View GitHub Profile
@necenzurat
necenzurat / gist:3697610
Created September 11, 2012 11:03
shop.ff article
A venit momentu cand ne-am gandit sa incercam sa face niste venituri cu ForeverFolk, si cum nu vrem sa va stricam lectura cu reclama, ne-am gandit ca ar fi mult mai fain sa facem un mic magazin de carti, muzica si altele.
Așa ca va prezint shop.foreverfolk.com un magazin bazat pe alte magazine, adica noi nu vindem nimic ci doar ne luam un procent mic din ce cumparati voi prin intermediul lui.
@necenzurat
necenzurat / mta_Model.php
Created September 24, 2012 01:16
mta_model.php
<?php
/*in acest fisier sunt funciile generale
*mta_model extinde fisierul predefinit al codeigniterului ci_model
*/
class mta_Model extends CI_Model {
var $table = false;
var $list_fields = "";
function load_form_validation() {
$this->load->library('form_validation');
@necenzurat
necenzurat / google_translate.py
Created September 27, 2012 05:55 — forked from jugyo/google_translate.py
Sublime Google Translate Plugin
# Preferences.sublime-settings
#
# {
# ...
# "google_translate_mode": "en>ja",
# "google_translate_api_key": "API-KEY"
# }
#
# Default.sublime-keymap
#
@necenzurat
necenzurat / rand.php
Created October 1, 2012 07:49
rand shit
<?php
class zetoken{
const ALPHA = 'abcdefghijklmnopqrstvwxyz';
const NUMERIC = '0123456789';
public static function make( $length = 10, $chars = "" ){
if ($chars == "" ) {
$chars .= self::NUMERIC . strtoupper( self::ALPHA );
}
$token = "";
{
"name": "hubot",
"version": "2.3.4",
"author": "hubot",
"keywords": "github hubot campfire bot",
"description": "A simple helpful Robot for your Company",
"engines": {
"node": "0.8.12",
"npm": "1.1.49"
},
@necenzurat
necenzurat / robot.php
Created October 19, 2012 06:09
robot.php
<?php
// activate full error reporting
//error_reporting(E_ALL & E_STRICT);
include 'XMPPHP/XMPP.php';
#Use XMPPHP_Log::LEVEL_VERBOSE to get more logging for error reports
#If this doesn't work, are you running 64-bit PHP with < 5.2.6?
$conn = new XMPPHP_XMPP('talk.google.com', 5222, 'user', 'parola', 'xmpphp', 'gmail.com', $printlog=true, $loglevel=XMPPHP_Log::LEVEL_INFO);
*** eroarea:
FacebookApiException Object
(
[result:protected] => Array
(
[error] => Array
(
[message] => Error validating access token: Session does not match current stored session. This may be because the user changed the password since the time the session was created or Facebook has changed the session for security reasons.
[type] => OAuthException
[code] => 190
NOUL LAPTOP APPLE MacBook PRO RETINA SIGILAT.
Ultima aparitie !
NOUL MODEL iulie 2012 !
CARCASA UNIBODY ALUMINIU !
CAP DE SERIE !
Pana la 7 ore autonomie !
Numai 2 kg ! 1.8 cm grosime !
Generatie noua de procesor
NEW Intel QUAD Core i7 2.6 GHz - 3.6 GHz (6 MB cache) cu Turbo Boost
8 GB DDRAM 3 1600 MHz !
@necenzurat
necenzurat / emag.php
Created November 23, 2012 04:11
emag black friday check
<?php
while (true) {
$remoteFile = 'http://www.emag.ro';
$ch = curl_init($remoteFile);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
$data = curl_exec($ch);
<?php
/*
Name: Reverse MD5
Description: decode md5
Usage: md5 <string>
Author: necenzurat
Author URI: http://necenzurat.com
*/
if($cmd[0] == 'md5') {