Skip to content

Instantly share code, notes, and snippets.

@esironal
esironal / index.html
Created August 8, 2018 04:05
writing and running functions in browser - codemirror
<link href='https://fonts.googleapis.com/css?family=Ubuntu+Mono' rel='stylesheet' type='text/css'>
<div class="container">
<div class="row">
<div class="side col-md-12">
<div style="text-align:center" class="side col-md-4">
<button style="width:90%" id="run" class="btn btn-primary">Run</button>
<div class="console">
<p class="pconsole">/**
</p>
@esironal
esironal / app.js
Created August 3, 2018 11:51 — forked from thibauts/app.js
simple datastore
var fs = require('fs');
var localStore = require('./local-store');
var store = new localStore.Store({
path: '/var/data',
bucket: 'test'
});
var data = fs.readFileSync('/etc/passwd');
@esironal
esironal / extractLinks.js
Created August 3, 2018 11:50 — forked from thibauts/extractLinks.js
Extract links from a webpage with concat-stream
#!/bin/bash
#
# Install owncloud
# This script assumes you already have installed Apache & MySQL
#
# Change me
MYSQL_ROOT_PASSWD="YOUR MYSQL ROOT PASSWORD"
# Path to your localhost
@esironal
esironal / editor.css
Created April 21, 2018 03:55
SimpleNote
@charset "UTF-8";
/* CSS compiled from SCSS - Do not edit .css directly. Styles © Simperium
https://app.simplenote.com/css/editor.css
*/
*,
body {
margin: 0;
padding: 0;
}
#http://www.dd-wrt.com/phpBB2/viewtopic.php?t=282831&start=435&sid=05c113416d737b2a58aa1a8708bb5e5b
#mount -o bind /mnt/sdb1 /jffs
#mount /dev/sda1 /jffs
mkdir -p /jffs/etc
mkdir -p /jffs/usr/local
mkdir -p /jffs/opt/bin/
mkdir -p /jffs/tmp/ipkg/
# Copy the contents of the current directories
@esironal
esironal / curl.md
Created December 7, 2017 12:16 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@esironal
esironal / Brasilia.m3u
Created October 1, 2017 17:33
Brasilia Iptv List
#EXTM3U
‪#‎EXTINF‬:-1, FILMES: AXN
rtmp://$OPT:rtmp-raw=rtmp://31.204.128.76/live/ playpath=master52 swfUrl=http://www.tv-msn.com/player/player.swf live=1 pageUrl=http://www.cdnbr.biz/mastertv/AXN.html
#EXTINF:-1, FILMES: HBO2
rtmp://$OPT:rtmp-raw=rtmp://109.200.202.124/live playpath=hbo2 swfUrl=http://www.tv-msn.com/player/player.swf live=1 pageUrl=http://tv-msn.com/hbo2.html
#EXTINF:-1, FILMES: HBO Family
rtmp://$OPT:rtmp-raw=rtmp://109.200.202.124/live playpath=hbofamily swfUrl=http://www.tv-msn.com/player/player.swf live=1 pageUrl=http://tv-msn.com/hbofamily.html
#EXTINF:-1, FILMES: HBO Plus
rtmp://$OPT:rtmp-raw=rtmp://109.200.202.124/live playpath=hboplus swfUrl=http://www.tv-msn.com/player/player.swf live=1 pageUrl=http://tv-msn.com/hboplus.html
#EXTINF:-1, FILMES: MAX HD
@esironal
esironal / Fix for android v4.2.2
Created May 29, 2017 21:33 — forked from stefanrusek/Fix for android v4.2.2
This is a work around for the appcompat v21 on android 4.2.2.
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
menu = new MenuWrapper(menu) {
private MenuItem fix(MenuItem item) {
try {
Field f = item.getClass().getDeclaredField("mEmulateProviderVisibilityOverride");
f.setAccessible(true);
@esironal
esironal / jsonp.js
Created May 29, 2017 03:55
Lightweight example Jsonp Loader
/* jsonp.js, (c) Przemek Sobstel 2012, License: MIT */
var $jsonp = (function(){
var that = {};
that.send = function(src, options) {
var options = options || {},
callback_name = options.callbackName || 'callback',
on_success = options.onSuccess || function(){},
on_timeout = options.onTimeout || function(){},