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 / 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
@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:
{"location": "26.1037194, 44.4288612"},
{"location": "26.1040413, 44.4279724"},
{"location": "26.1040198, 44.4274668"},
{"location": "26.1041271, 44.4261796"},
{"location": "26.1041057, 44.4257965"},
{"location": "26.1036336, 44.4258118"},
{"location": "26.1018526, 44.4258884"},
{"location": "26.1011445, 44.4259957"},
{"location": "26.1009299, 44.4261796"},
{"location": "26.1009514, 44.4267465"},
var page = require('webpage').create();
page.onConsoleMessage = function(msg) {
console.log(msg);
};
page.open("http://www.dauanunt.ro/cont/login", function(status) {
if ( status === "success" ) {
page.evaluate(function() {
@necenzurat
necenzurat / gist:106089093daaba785b0a
Last active August 29, 2015 14:19
căcatul Oanei, no 2
<?php
/*
1. https://graph.facebook.com/949954348389919
2. https://graph.facebook.com/950516285000392
3. https://graph.facebook.com/951077058277648
*/
$post_id = "949954348389919";
<?php
/**
* Class to improve the seo of the site
*
* @package OC
* @category SEO
* @author Chema <[email protected]>
* @version 1.0
* @date 21-02-2014
* @url http://garridodiaz.com/phpseo/