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
.file "bool1.c" | |
.intel_syntax noprefix | |
.section .rodata | |
.LC0: | |
.string "p is true" | |
.LC1: | |
.string "p is not true" | |
.LC2: | |
.string "p is false" | |
.LC3: |
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
// group_view.js | |
TestUI.GroupView = SC.View.extend( | |
childViews: 'headingView'.w(), | |
backgroundColor: 'white', | |
layout: { width: 640 }, | |
classNames: 'groupview'.w(), | |
displayProperties: 'title'.w(), | |
title: '', | |
titleBinding: SC.Binding.from('.headingView.labelView.value'), |
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
[ 810.832427] ath: phy0: No free RX buffer | |
[ 814.392730] ath: phy0: No free RX buffer | |
[ 815.840087] ath: phy0: No free RX buffer | |
[ 827.579498] ath: phy0: No free RX buffer | |
[ 829.039703] ath: phy0: No free RX buffer | |
[ 829.396911] ath: phy0: No free RX buffer | |
[ 831.521118] ath: phy0: No free RX buffer | |
[ 835.393554] ath: phy0: No free RX buffer | |
[ 844.106262] ath: phy0: No free RX buffer | |
[ 844.425750] ath: phy0: No free RX buffer |
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
;; For the consistency of gdb-select-window's calling convention... | |
(defun gdb-comint-buffer-name () | |
(buffer-name gud-comint-buffer)) | |
(defun gdb-source-buffer-name () | |
(buffer-name (window-buffer gdb-source-window))) | |
(defun gdb-select-window (header) | |
"Switch directly to the specified GDB window. | |
Moves the cursor to the requested window, switching between | |
`gdb-many-windows' \"tabs\" if necessary in order to get there. |
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
from __future__ import print_function | |
from os import kill, getpid | |
from signal import SIGINT | |
def factorial(n): | |
if n == 0: | |
# Break into GDB | |
kill(getpid(), SIGINT) | |
return 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
/** | |
* ptycheck.c - Demonstrate possible problem in OpenBSD's ptcwrite | |
* | |
* Opens a pseudoterminal pair in "raw" mode, then forks off a child | |
* process which attempts to write MESSAGE_LEN random bytes to the pty | |
* master; meanwhile the parent process tries to read the same number of | |
* bytes from the slave. Once the parent has received the expected number | |
* of bytes, it compares the message received against the original to | |
* ensure that all data shuffled across the pseudoterminal successfully. | |
* |
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 | |
branches="attitude_adjustment backfire" | |
# Destination repostiory location | |
destination=/var/hg/mirrors/openwrt | |
# Source repository locations | |
source_dir=/var/git/mirrors/openwrt | |
source_trunk="${source_dir}/trunk.git" |
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 | |
# snapzfs.sh - Maintain rotating ZFS dataset snapshots | |
# | |
# Creates, rotates, and prunes rolling snapshots of ZFS datasets. When | |
# this script is run, the sets defined in the configuration section below | |
# are snapshot and rotated as necessary depending on the age and number of | |
# existing snapshots. Written for and tested on FreeBSD 9.1. | |
# | |
# Mark Shroyer |
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 perl | |
# gitolite fsck command | |
# | |
# Add this to the gitolite commands subdirectory (e.g. on FreeBSD, | |
# /usr/libexec/gitolite/commands/) and then invoke `gitolite fsck` to run | |
# integrity checks on your repositories. | |
# | |
# Mark Shroyer | |
# Thu Mar 28 12:16:12 EDT 2013 |
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 python3 | |
"""Force Kiln Harmony to finish repairing a large repository | |
I'm currently seeing an issue with Kiln Harmony where an imported Linux | |
kernel git repository fails partway through translation to Mercurial. It | |
seems that I can keep clicking the "Repair Repository" button to prod Kiln | |
into finishing more of the translation, however this is time consuming. | |
This script automates the process of checking whether the translation of a |