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
objects := try_fork.blah cube.blah | |
all: $(objects) | |
$(objects) : | |
cp $(subst .blah,.pl,$@) $@ |
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
# Create a temp directory for our work | |
tempbuild=`mktemp -d` | |
cd $tempbuild | |
# Determine kernel version (with and without Ubuntu-specific suffix) | |
mykern=${1:-$(uname -r)} | |
mykernver=linux-$(echo $mykern | cut -d'-' -f 1) | |
# Install necessary deps to build a kernel | |
sudo apt-get build-dep -y --no-install-recommends linux-image-$mykern |
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
# Create a temp directory for our work | |
tempbuild=`mktemp -d` | |
cd $tempbuild | |
# Determine kernel version (with and without Ubuntu-specific suffix) | |
mykern=${1:-$(uname -r)} | |
mykernver=linux-$(echo $mykern | cut -d'-' -f 1) | |
# Install necessary deps to build a kernel | |
sudo apt-get build-dep -y --no-install-recommends linux-image-$mykern |
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 | |
# Script for using ViM as a PAGER. | |
# Based on Bram's less.sh. | |
# Version 1.8.6 | |
# git://github.com/rkitover/vimpager.git | |
# Just pass through if not on a tty | |
if [ ! -t 1 ]; then | |
exec cat "${@}" |
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
tail_n() { | |
_lines=$1 | |
shift | |
if [ -z "$_tail_syntax" ]; then | |
_tail1_test=`echo xx | tail -n 1 2>/dev/null` | |
if [ "$_tail1_test" = "xx" ]; then | |
_tail_syntax=new | |
else | |
_tail_syntax=old |
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
# Web browser Back/Forward shortcuts | |
@F1 | |
xte 'keydown Alt_L' 'key Left' 'keyup Alt_L' | |
@F2 | |
xte 'keydown Alt_L' 'key Right' 'keyup Alt_L' | |
# Web browser Refresh shortcut | |
@F3 | |
xte 'keydown Control_L' 'key r' 'keyup Control_L' |
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
mail= | |
instance=overwrite | |
partial=nocheck | |
runlevel=nocheck | |
idepend=nocheck | |
rdepend=nocheck | |
space=nocheck | |
setuid=nocheck | |
conflict=nocheck | |
action=nocheck |
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/perl | |
use strict; | |
use warnings; | |
use v5.10; | |
use Net::SSH2; | |
my $ssh = Net::SSH2->new; | |
$ssh->connect('localhost'); |
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
# Use Benson Leung's post-Pixel Chromebook patches: | |
# https://patchwork.kernel.org/bundle/bleung/chromeos-laptop-deferring-and-haswell/ | |
for patch in 3078491 3078481 3074401 3074431 3074411; do | |
wget -O - https://patchwork.kernel.org/patch/$patch/raw/ | sed 's/drivers\/platform\/x86\/chromeos_laptop.c/drivers\/platform\/chrome\/chromeos_laptop.c/g'| patch -p1 | |
done | |
# fetch the chromeos_laptop and atmel maxtouch source code | |
# Copy made from chromium.googlesource.com chromeos-3.8 branch | |
# https://chromium.googlesource.com/chromiumos/third_party/kernel-next/+/refs/heads/chromeos-3.8 |
OlderNewer