Skip to content

Instantly share code, notes, and snippets.

@mantis
mantis / build.ps1
Created February 19, 2017 15:20
Windows Build File for admin-on-rest
<#
.SYNOPSIS
Manages the build of admin-on-rest on windows
.DESCRIPTION
This powershell script attempts to implement the linux makefile for admin-on-rest for those users who may wish to
develop the system on a windows based operating system.
Examples:
1) To install required modules
./make.ps1 -install
@siliconhacker
siliconhacker / angular-select-key-value.markdown
Created December 8, 2016 15:41
Angular Select Key Value
@tiobio10
tiobio10 / tiobiofilmeshd.m3u
Created November 28, 2016 15:38
tiobiofilmeshd.m3u
#EXTM3U
#EXTINF:-1,A Absolutely Fabulous: O Filme Dublado
https://1fhjm2q.oloadcdn.net/dl/l/qXPMworLlbMh79eG/hpsa8FnazZc/Absolutely+Fabulous+O+Filme+2016+Bluray+720p+Dublado+-+TPF.mp4
#EXTINF:-1,A Goldstone Legendado HD 720p
https://17wy0tw.oloadcdn.net/dl/l/IOsZyQUzg1RArFcm/dXW4PhAKqX4/Goldstone+2016+WEB-DL+720p+Legendado+-+TPF.mp4
#EXTINF:-1,A Cantando de Galo Dublado HD 720p
https://oqbki7.oloadcdn.net/dl/l/DslccgPCzxIHzom-/hgKwM8ZDPVU/Cantando+de+Galo+2016+Bluray+720p+Dublado+-+TPF.mp4
#EXTINF:-1,A Uma Noite com a Família Blacks Dublado HD 720p
https://1fgm8kg.oloadcdn.net/dl/l/HSK6kYwYnBTd6kbH/kzNCBpE4PnE/Uma.Noite.com.a.Fam%C3%ADlia.Blacks.2016.720p.BluRay.x264.DUAL-WWW.BLUDV.COM+%281%29.mkv.mp4
#EXTINF:-1,A Café Society Dublado HD 720p
@skygunner
skygunner / unlock-youku.list
Created September 6, 2016 09:37
unlock youku list
v.youku.com
api.youku.com
v2.tudou.com
www.tudou.com
s.plcloud.music.qq.com
i.y.qq.com
hot.vrs.sohu.com
live.tv.sohu.com
pad.tv.sohu.com
my.tv.sohu.com
@esironal
esironal / node-and-npm-in-30-seconds.sh
Created August 19, 2016 23:56 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@ebidel
ebidel / fancy-tabs-demo.html
Last active February 18, 2025 15:38
Fancy tabs web component - shadow dom v1, custom elements v1, full a11y
<script src="https://unpkg.com/@webcomponents/custom-elements"></script>
<style>
body {
margin: 0;
}
/* Style the element from the outside */
/*
fancy-tabs {
margin-bottom: 32px;
#!/usr/bin/env python
import sys
import os
def nextSetting(f):
keySize = ord(f.read(1))
key = f.read(keySize)
valueSize = ord(f.read(1)) + (ord(f.read(1))*256)
value= f.read(valueSize)
#sys.stdout.write ('(k=%3d,v=%4d,pos=%6s) %s = %s\n' % (keySize, valueSize, hex(f.tell()), key, value))
#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
@paulirish
paulirish / devtools-protocol-send-command-and-monitor.md
Last active February 11, 2020 17:42 — forked from jasonLaster/inspector.js
how to issue commands and monitor the devtools protocol

Playing with the protocol

You can send arbitrary commands over the protocol fairly easily.

Main.sendOverProtocol('Emulation.setDeviceMetricsOverride', nexus5XMetrics());
Main.sendOverProtocol("Emulation.clearDeviceMetricsOverride");

// It returns a promise
@paulirish
paulirish / index.html
Last active March 7, 2019 00:55
array augmenting: push read vs concat (http://jsbench.github.io/#e412522baff1e164b3dd1c679f2f0845) #jsbench #jsperf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>array augmenting: push read vs concat</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>