Couldn't find the text of this for a while...
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
[Desktop Entry] | |
Type=Application | |
Exec=/opt/Qt/MaintenanceTool | |
Path=/opt/Qt | |
Name=Qt Maintenance Tool | |
GenericName=Install or uninstall Qt components. | |
Icon=QtIcon | |
Terminal=false | |
Categories=Development;Qt; |
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
/* Author: Akshay Shekher | |
* | |
* build: valac --pkg gio-unix-2.0 --pkg libgnome-menu-3.0 -X -DGMENU_I_KNOW_THIS_IS_UNSTABLE applist.vala | |
* run: ./applist gnome-applications.menu | |
* or ./applist pantheon-applications.menu | |
*/ | |
int main(string[] args) { | |
if (args.length < 2) { | |
print ("Please specify the file to load\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
;; 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) |
- 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
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
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
#[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
#!/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
#!/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() { |