The only cross-platform browser that fits in a Gist!
One line install. Works on Linux, MacOSX and Windows.
$> npm install http://gist.github.com/morganrallen/f07f59802884bcdcad4a/download
#!/usr/bin/env bash | |
# call like this: | |
# /path/to/this/script.sh <window_id> <dock height> | |
win="${1:-}" | |
height="${2:-}" | |
width=$(xrandr -q | head -n1 | awk '{print $8}') | |
xdotool windowunmap --sync ${win} | |
xdotool windowsize --sync ${win} ${width} ${height} |
#!/usr/bin/env xcrun swift | |
import Dispatch | |
let appQueue = dispatch_queue_create("org.tkareine.NodeLike.appQueue", DISPATCH_QUEUE_SERIAL) | |
let appGroup = dispatch_group_create() | |
func delay(delayInMS: Int, block: () -> Void) { | |
let delayInNS = Int64(delayInMS) * Int64(NSEC_PER_MSEC) | |
let scheduleAt = dispatch_time(DISPATCH_TIME_NOW, delayInNS) |
#/usr/bin/env bash | |
set -o errexit | |
set -o pipefail | |
NODE_VERSION="v9" | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
. $HOME/.nvm/nvm.sh |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
<style type="text/css"> | |
html { | |
cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="64" height="64"><circle cx="32" cy="32" r="32" style="fill: red;"/></svg>') | |
} | |
</style> |
#!/usr/bin/env lua | |
--- | |
-- @author Gianluca Fiore | |
-- @copyright 2012, Gianluca Fiore <[email protected]> | |
-- | |
-- | |
-- Open a url with feh, if it leads to an image, or firefox, in all | |
-- other cases. Trivial but very useful with cli newsreaders (like | |
-- newsbeuter) to quickly preview images and to not have to switch to |
#!/bin/sh | |
# Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
# Set up to start the X server ASAP, then let the startup run in the | |
# background while we set up other stuff. | |
XAUTH_FILE="/var/run/chromelogin.auth" | |
MCOOKIE=$(head -c 8 /dev/urandom | openssl md5) # speed this up? |
# Copyright (c) 2016 The crouton Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
## Filename: /etc/init/crouton.conf | |
## NOTE: 'rootfs' verification needs to be removed. | |
## crouton chroot - Start session | |
## | |
## This will start a (crouton) chroot Desktop Environment session |
To remove a submodule you need to: