This file contains 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
/* plugin css */ |
This file contains 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: aria2c | |
# Required-Start: $network $syslog $local_fs | |
# Required-Stop: $network $syslog $local_fs | |
# Should-Start: $local_fs | |
# Should-Stop: $local_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 |
This file contains 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
/* $ gcc cve_2016_0728.c -o cve_2016_0728 -lkeyutils -Wall */ | |
/* $ ./cve_2016_072 PP_KEY */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <keyutils.h> | |
#include <unistd.h> | |
#include <time.h> |
This file contains 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 | |
# This program gets the power status (AC IN or BAT) | |
# I2C interface with AXP209 | |
# | |
####################################################################### | |
# Copyright (c) 2014 by RzBo, Bellesserre, France | |
# | |
# Permission is granted to use the source code within this | |
# file in whole or in part for any use, personal or commercial, | |
# without restriction or limitation. |
This file contains 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 | |
# This program gets the battery info from PMU | |
# Voltage and current charging/discharging | |
# | |
# Nota : temperature can be more than real because of self heating | |
####################################################################### | |
# Copyright (c) 2014 by RzBo, Bellesserre, France | |
# | |
# Permission is granted to use the source code within this | |
# file in whole or in part for any use, personal or commercial, |
This file contains 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
#Requires -version 2.0 | |
## Stupid PowerShell Tricks | |
################################################################################################### | |
add-type @" | |
using System; | |
using System.Runtime.InteropServices; | |
public class Tricks { | |
[DllImport("user32.dll")] | |
private static extern bool ShowWindowAsync(IntPtr hWnd, int nCmdShow); | |
This file contains 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
//<canvas id=canvas> | |
//original source : http://timelessname.com/sandbox/matrix.html | |
//set the canvas to take the entire screen | |
canvas.height = window.screen.height; | |
canvas.width = window.screen.width; | |
//one entry in the array per column of text | |
//each value represent the current y position of the column. (in canvas 0 is at the top and positive y values go downward) | |
var columns = [] | |
for (i = 0; i < 256; columns[i++] = 1); |
This file contains 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
<html> | |
<head> | |
<script language="javascript"> | |
function matrix_on_load() | |
{ | |
s=window.screen,w=q.width=s.width,h=q.height=s.height,m=Math.random; | |
// Initialize the number of columns | |
for(p=[],i=0;i<256;p[i++]=0); |
This file contains 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 fish | |
# Put this in your .config/fish/functions folder and you'll get an `airsonic` | |
# command that you can use to interact with the rest api. If you just want to | |
# play around with it, you can execute it directly. | |
function _airsonic_usage | |
echo 'Usage: airsonic [-h|--help] -u $user -p $pass [$url] $endpoint [...$params]' | |
echo | |
echo 'Interact with an airsonic server via REST. See http://www.subsonic.org/pages/api.jsp for additional documentation.' |
This file contains 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
/** | |
* Original by Zirak @ http://stackoverflow.com/a/8636050/1012431 | |
* | |
* Had some issues with the clear function | |
* | |
* @type {{intervals: Array, make: make, clear: clear, clearAll: clearAll}} | |
*/ | |
var interval = { | |
//to keep a reference to all the intervals | |
intervals : [], |
OlderNewer