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 | |
# /etc/initramfs-tools/hooks/sunxi_wdt | |
set -e | |
PREREQS="" | |
prereqs() { echo "$PREREQS"; } | |
case $1 in | |
prereqs) | |
prereqs | |
exit 0 | |
;; |
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/perl -w | |
=head1 NAME | |
egypt - create call graph from gcc RTL dump | |
=head1 SYNOPISIS | |
egypt [--omit function,function,...] [--only function,function,...] [--include-external] [--files] <rtl-file>... | dotty - | |
egypt [--omit function,function,...] [--only function,function,...] [--include-external] [--files] <rtl-file>... | dot <dot-options> |
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
[ | |
{ | |
"key": "shift+alt+right", | |
"command": "-editor.action.smartSelect.expand", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "shift+alt+down", | |
"command": "-editor.action.insertCursorBelow", | |
"when": "editorTextFocus" |
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 | |
import asyncio | |
from collections import namedtuple, OrderedDict | |
import sys | |
import os | |
from typing import NamedTuple | |
import typing as T | |
import time |
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
//! A crate for things that are | |
//! 1) Lazily initialized | |
//! 2) Expensive to create | |
//! 3) Immutable after creation | |
//! 4) Used on multiple threads | |
//! 5) Stored in a Box | |
//! | |
//! `LazyBox<T>` is better than `Mutex<Option<Box<T>>>` because after creation accessing | |
//! `T` does not require any locking, just a single boolean load with | |
//! `Ordering::Acquire` (which on x86 is just a compiler barrier, not an actual |
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 | |
# mbox_split.py | |
# | |
# Split a mailbox into separate patch files, stripping the transfer encoding | |
# and minimizing the headers along the way. | |
# | |
# Written by Paolo Bonzini <[email protected]> | |
import argparse |
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 | |
# A simple update hook for git that deploys a jekyll website to a web server | |
# on the remote side. | |
# | |
# Author: Paolo Bonzini | |
source scl_source enable rh-ruby25 | |
# ----------------------------------------------------------------------------- |
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
connected = false | |
-- GPIO helpers | |
function blink_led(on, off, times, callback) | |
if times == 0 then | |
if type(callback) == "function" then | |
callback() | |
end | |
return |
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 perl | |
# Copyright (C) 2011-2013 Free Software Foundation, Inc. | |
# | |
# 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, or (at your option) | |
# any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
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
-----BEGIN PGP MESSAGE----- | |
hQEMA4c6sA8rjgLDAQf+MRvlUKJsHKwAdYruf+oiENwLKJc9mwcJcWlOXBpWGZWI | |
0TsJ21SxJs2JnC1irx09gZDy2rxBhWPI08WJ2WrbvYB9w7Aq7U+sIjFFqjwbUpE7 | |
L6a6GQxwhmC0CRdMEnRujsGQatru0w5E+CQWkqrzJG5OkTxKZFlfXhqvp7qocCZw | |
jV+btVgG/2XuLYVvSe5V2weYlqyWZVJAZYV6efmCV1482UJTnW1GsDpRdsheyJzp | |
vik+Jzy/LZCVxKfvi6wcxE/ergXDNs2/+n75z6PWvlxwhnEAZgx2KFv/o+PMUjoO | |
gj9vwtwOZZ0wYoQi+0/XCfzqudJy1OYLxriIpkSoDNKGAfbqj0TPcqbG73hWYbzg | |
H4G6gZ287NgwDxyHu228wK2iFskOjqKja550XFy/4si3GIM+BKbFOUM3NL3/4AyP | |
kpvCVhniLX6ZSKTNRX1SIwKFQSlqWL1e8Epqlt5zpDlfsiCruXCVFUPUXseC+R76 |