- 99% invisible
- Accidental Tech Podcast
- analog(UE)
- Bad Voltage
- BSD Now
- Coder Radio
- Freakinomics
- Developing perspective
- Hansel minutes
- Linux unplugged
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
| #include <stdio.h> | |
| #include <stdarg.h> | |
| #define DEBUG | |
| #ifdef DEBUG | |
| #define DEBUG_MSG(fmt, ...) print_debug(fmt, ##__VA_ARGS__) | |
| #else | |
| #define DEBUG_MSG(fmt, args...) ((void) 0) | |
| #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
| [package] | |
| name = "first" | |
| version = "0.1.0" | |
| authors = ["Your Name <you@example.com>"] | |
| [dependencies] | |
| serde = "1.0.81" | |
| serde_json = "1.0.33" | |
| serde_derive = "1.0.81" |
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 | |
| # where to store the sparse-image | |
| WORKSPACE=~/Documents/workspace.dmg.sparseimage | |
| create() { | |
| hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 60g -volname workspace ${WORKSPACE} | |
| } | |
| detach() { |
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 | |
| sudo rm -rf /tmp/abi-test | |
| mkdir -p /tmp/abi-test | |
| cd /tmp/abi-test || exit | |
| sudo apt -y install abi-dumper abi-compliance-checker | |
| GRANITE_A_LP_BRANCH="lp:granite/0.4" | |
| GRANITE_A_VERSION="0.4" |
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
| #[derive(Copy, Clone)] | |
| enum Cell { | |
| Empty, | |
| Cross, | |
| Zero | |
| } | |
| fn print_cell(cell: Cell) { | |
| match cell { | |
| Cell::Empty => println!("empty"), |
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
| mkdir AppDir | |
| mkdir AppDir/bin | |
| mkdir AppDir/data | |
| cp $INSTALLDIR/app AppDir/bin | |
| cp -r $INSTALLDIR/data AppDir | |
| cp `ldd AppDir/bin/app | grep -o '\W/[^ ]*'` AppDir/bin | |
| cat << "EOF" > AppDir/app | |
| #!/bin/bash |
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
| public class ClipboardManager : Object { | |
| private static Gtk.Clipboard monitor_clipboard; | |
| public delegate void MonitorFn(); | |
| public static void attach_monitor_selection(MonitorFn fn) { | |
| monitor_clipboard = Gtk.Clipboard.get_for_display (Gdk.Display.get_default (), | |
| Gdk.SELECTION_PRIMARY); | |
| monitor_clipboard.owner_change.connect ((ev) => { | |
| stdout.printf("%s\n", ev.get_event_type ().to_string()); | |
| stdout.flush (); |
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
| ;; No Splash Screen | |
| (setq inhibit-splash-screen t) | |
| ;; Indentation | |
| (setq-default indent-tabs-mode nil) | |
| (setq indent-tab-mode nil) | |
| (setq-default tab-width 4) | |
| (setq c-basic-indent 2) | |
| (global-set-key (kbd "RET") 'newline-and-indent) |
Couldn't find the text of this for a while...