This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"something": true | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
# found at | |
# http://forum.xda-developers.com/showpost.php?p=58433704&postcount=6890 | |
# also see | |
# http://forum.xda-developers.com/showpost.php?p=58416801&postcount=6883 | |
for descriptor in \ | |
cast.media.CastMediaRouteProviderService \ | |
cast.media.CastRemoteDisplayProviderService \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title></title> | |
<link rel="stylesheet" type="text/css" media="screen" href="css/master.css" /> | |
<script type="text/javascript" src="jquery.min.js"></script> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\KOMAoption{chapterprefix}{true} | |
\renewcommand*\raggedchapter{\centering} | |
\RedeclareSectionCommand[ | |
beforeskip=0pt, | |
innerskip=-.3\baselineskip, | |
%afterskip=8\baselineskip, | |
font=\Huge\sffamily, | |
prefixfont=\normalfont\large\scshape | |
]{chapter} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## Usage: rate-music [0-5] | |
# | |
# Adds current playing song to the mpd playlist corresponding to the | |
# rating assigned. Any previous rating is removed. If 0 is given, the | |
# songs rating will be removed. | |
# | |
# From: https://bbs.archlinux.org/viewtopic.php?id=116113 | |
## USER CONFIGURATION----------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from PIL import Image | |
from osgeo import gdal | |
gdal.UseExceptions() | |
import numpy as np | |
import gc | |
# ---------------------------------- | |
# COLOR LOOKUP TABLE (gradient color) 256x256 8bit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: kodi | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: XBMC media centre | |
# Description: Starts the XBMC media centre in standalone mode | |
### END INIT INFO |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Knex from 'knex'; | |
import objection from 'objection'; | |
import Promise from 'bluebird'; | |
import util from 'util'; | |
function initDatabase() { | |
const knex = Knex({ | |
dialect: 'sqlite3', | |
connection: { | |
filename: './test.db' // ':memory:' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scapy.all import * | |
class Header(Packet): | |
name = 'Header' | |
fields_desc = [ | |
ByteField('cmd', 0), | |
ByteField('status', 0) | |
] |