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 / fatc.html
Created May 21, 2011 21:00 — forked from tomger/fatc.html
a twitter client in stratified javascript ( http://fatc.onilabs.com )
<!DOCTYPE html>
<html><head>
<title>Fork-A-Twitter-Client</title>
<!--
Basic OniApollo/StratifiedJS Twitter Client application scaffold.
See http://fatc.onilabs.com/
THIS FILE IS IN THE PUBLIC DOMAIN.
@necenzurat
necenzurat / miniuploader.html
Created August 26, 2011 17:55 — forked from andreaseger/miniuploader.html
a very compact drag and drop image uploader written in html5 an javascript
<!DOCTYPE html>
<!-- This is the shortest Image Uploader ever :)
And you can even make it shorter if you don't
want all the drag'n drop thing. -->
<!--
AUTHOR: @paulrouget <paul@mozilla.com>
LICENSE:
@necenzurat
necenzurat / samairProxy.sh
Created September 15, 2011 22:50
Samair.ru Proxy Parser and Checker
#!/bin/bash
#Crawl www.samair.ru/proxy/proxy-$pagenum.htm for proxy list
echo -e -n "Crawling www.samair.ru for proxy list \nDoing Page: "
rm proxylist.txt &> /dev/null
for pagenum in {1..99}
do
echo -n "$pagenum "
@necenzurat
necenzurat / googleplus.php
Last active September 27, 2015 20:57
Get Google Plus Followers and Following, yea is messy but it does the job done :)
<?php
/*
* © WTFPL
* by necenzurat
* Updated: 19 May 2013
*/
$id = @$_GET["id"];
//$id = "108520002754793822340";
@necenzurat
necenzurat / get_the_fucking_linkedin
Created November 2, 2011 09:31
Scrape Linkedin Connection number
<?php
/* i hate haotik
LICENSE:
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
@necenzurat
necenzurat / dloader.php
Created December 27, 2011 14:31 — forked from mihneawalker/dloader.php
downloader
<?php
$fsource = fopen('x.txt','r');
function save_image($img,$fullpath){
$ch = curl_init ($img);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
$rawdata=curl_exec($ch);
curl_close ($ch);
@necenzurat
necenzurat / cache.php
Created March 27, 2012 12:25
php cache curl
<?php
/*
* Caching something with just one function
* Licensed under WTFPL
*/
function open($url){
// settings
$cachetime = (60 * 60 * 24 * 7); //one week
$where = "cache";
@necenzurat
necenzurat / .gitignore
Created March 27, 2012 20:31 — forked from SaltwaterC/.gitignore
php cache curl
/cache/
@necenzurat
necenzurat / gist:2312544
Created April 5, 2012 17:04 — forked from anonymous/gist:2309745
Track Client-Side Errors with Google Analytics
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-12345678-1']);
_gaq.push(['_setDomainName', 'yoursite.com']);
_gaq.push(['_addIgnoredRef', 'yoursite.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
@necenzurat
necenzurat / .gitignore
Created April 5, 2012 17:15 — forked from SaltwaterC/.gitignore
php cache curl
/cache/