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
| $ lspci -tv | |
| -[0000:00]-+-00.0 Intel Corporation Ivy Bridge DRAM Controller | |
| +-02.0 Intel Corporation Ivy Bridge Graphics Controller | |
| +-14.0 Intel Corporation Panther Point USB xHCI Host Controller | |
| +-16.0 Intel Corporation Panther Point MEI Controller #1 | |
| +-1a.0 Intel Corporation Panther Point USB Enhanced Host Controller #2 | |
| +-1b.0 Intel Corporation Panther Point High Definition Audio Controller | |
| +-1c.0-[01]----00.0 Intel Corporation Centrino Advanced-N 6235 | |
| +-1d.0 Intel Corporation Panther Point USB Enhanced Host Controller #1 | |
| +-1f.0 Intel Corporation Panther Point LPC Controller |
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
| package main | |
| import ( | |
| "github.com/rfc1459/xmp" | |
| "github.com/rfc1459/xmp/portal" | |
| ) | |
| // Per-resonator attack | |
| func perResAttack(p portal.Portal, x xmp.Xmp) (xmps int) { | |
| orientation := portal.N |
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
| defmodule Stacker.Server do | |
| import GenX.GenServer | |
| use GenServer.Behaviour | |
| def start_link(stack) do | |
| :gen_server.start_link({:local, Stacker.Server}, __MODULE__, stack, []) | |
| end | |
| def init(stack) do | |
| { :ok, stack } |
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
| /* | |
| * network_test.go - network I/O testing | |
| * Copyright (C) 2013 Matteo Panella <[email protected]> | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 2 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, |
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
| /* | |
| * io/parse_test.go - Tests for Moebius parser | |
| * Copyright (C) 2013 Matteo Panella <[email protected]> | |
| * | |
| * This program is free software; you can redistribute it and/or modify | |
| * it under the terms of the GNU General Public License as published by | |
| * the Free Software Foundation; either version 2 of the License, or | |
| * (at your option) any later version. | |
| * | |
| * This program is distributed in the hope that it will be useful, |
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
| #!/sbin/sh | |
| # | |
| # /system/addon.d/99-supersu.sh | |
| # During a CM10 upgrade, this script backs up SuperSU-related files, | |
| # /system is formatted and reinstalled, then the files are restored. | |
| # | |
| . /tmp/backuptool.functions | |
| list_files() { |
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 | |
| IMAGES=$@ | |
| resize() { | |
| local DENSITY=$1 | |
| shift | |
| local SIZE=$1 | |
| shift | |
| local UNSHARP=$1 |
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
| static void clk_disable_locked(struct clk *c) | |
| { | |
| if (c->refcnt == 0) { | |
| WARN(1, "Attempting to disable clock %s with refcnt 0", c->name); | |
| return; | |
| } | |
| if (c->refcnt == 1) { | |
| if (c->ops && c->ops->disable) { | |
| trace_clock_disable(c->name, 0, 0); | |
| c->ops->disable(c); |
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/python -u | |
| # Quick and dirty script to transcode to FLAC all AAC-LC files | |
| # rooted into the current working directory (subdirs incl.) | |
| import os | |
| import sys | |
| import subprocess | |
| import magic |
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
| /* CUT */ | |
| #define SHABUFLEN (SHA1_DIGEST_LENGTH * 2) | |
| char *sha1_hash(const char *s, size_t size) { | |
| static char shabuf[SHABUFLEN + 1]; | |
| unsigned char digestbuf[SHA1_DIGEST_LENGTH]; | |
| int i; |