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 / 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 / .gitignore
Created April 5, 2012 17:15 — forked from SaltwaterC/.gitignore
php cache curl
/cache/
@necenzurat
necenzurat / speedtest-installer.sh
Last active May 24, 2020 11:25
oficial speedtest installer
#!/bin/bash
#
# A speedtest agnostic(ish) install script
#
# @version 0.1.0
# @license DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
#
# uncomment this for debugging
# set -x
# Set environment
echo "$(tail -1000 /tmp/cron.log)" > /tmp/cron.log
@necenzurat
necenzurat / os_arch.sh
Created January 6, 2019 00:42
get os_arch
#!/bin/bash
function os_arch ()
{
echo $($(command -v file) /bin/bash | grep -o -m 1 '32\|64' | head -1);
}
@necenzurat
necenzurat / notify.php
Last active December 13, 2018 02:35
simple prowl app notifier
<?php
$url = 'https://api.prowlapp.com/publicapi/add';
$fields = array(
'apikey' => 'API_KEY',
'application' => 'APP',
'event' => "jobs done",
'description' => "TeXT",
// https://www.prowlapp.com/api.php
// meh
<!-- Async Tracking Code - http://code.google.com/intl/en-US/apis/analytics/docs/tracking/asyncTracking.html -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'YOUR ANALYTICS ID GOES HERE']);
_gaq.push(['_trackPageview']);
//*******************
// Trick #1: Track page load time in Google Analytics
// (note: only works for HTML5 browsers)
//*******************
@necenzurat
necenzurat / gist:2691845
Created May 14, 2012 04:55
Upload Media in WordPress Meta Boxes shamesly copied from http://www.wproots.com/upload-media-in-meta-boxes/
<?php
add_action('admin_menu', 'addMetaBox');
add_action('save_post', 'saveMetaData', 10, 2);
add_action('admin_head', 'embedUploaderCode');
//Define the metabox attributes.
$metaBox = array(
'id' => 'my-meta-box',
'title' => 'My Meta Box',
'page' => 'page',
@necenzurat
necenzurat / code.php
Created September 25, 2017 21:50
code
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use \App\Friend;
use \App\Presence;
use \DB;
use \Carbon;
### Keybase proof
I hereby claim:
* I am necenzurat on github.
* I am nece (https://keybase.io/nece) on keybase.
* I have a public key whose fingerprint is 6FFD 4432 2020 D4E4 14DF BD9E 6E0C 7AD6 5971 F4D0
To claim this, I am signing this object: