Skip to content

Instantly share code, notes, and snippets.

@alex-endfinger
alex-endfinger / session_manager_setup.sh
Created August 2, 2011 02:05
Start Chrome OS With Flags. Overide Existing File in /sbin/session_manager_setup.sh
#!/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?
@alex-endfinger
alex-endfinger / chromiumpull.sh
Created July 11, 2011 16:04
Script To Pull Latest Chromium Build And Host To Chromium Build Backup Server
#!/bin/bash
curl http://commondatastorage.googleapis.com/chromium-browser-continuous/Win/LAST_CHANGE >>~/change.txt
export REV=$(cat ~/change.txt)
export CHROMIUMURL=http://commondatastorage.googleapis.com/chromium-browser-continuous/Win/$REV/mini_installer.exe
mkdir /var/www/chromium/$REV
wget $CHROMIUMURL -O /var/www/chromium/build/$REV/mini_installer.exe
rm ~/change.txt
echo Revision $REV Has Been Successfully Uploaded To Chromium Build Server Backup >>~/chromiumpull/log.txt
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Google Storage File Upload Example</title>
</head>
<body>
<div>
<form action="http://twitter-img.commondatastorage.googleapis.com" enctype="multipart/form-data" method="post">
<fieldset>
https://dl-ssl.google.com/tag/s/appguid%3D%7B8A69D345-D564-463C-AFF1-A69D9E530F96%7D%26iid%3D%7B739A42D5-7A93-1BFE-A053-81D56ACD6752%7D%26lang%3Den%26browser%3D4%26usagestats%3D0%26appname%3DGoogle%2520Chrome%26needsadmin%3Dfalse%26installdataindex%3Ddefaultbrowser/update2/installers/ChromeStandaloneSetup.exe