Skip to content

Instantly share code, notes, and snippets.

@cotsog
cotsog / atlstdthunk_h.patch
Created November 6, 2009 00:31
Apply this patch to ATL 7.1 bundled with the Windows Driver Kit to be able to compile Google Chrome with Visaul C++ 2008 Express Edition. See http://bit.ly/30slOj for more details.
--- C:/Documents and Settings/user/Desktop/atlstdthunk.h Wed Oct 21 21:29:23 2009
+++ C:/WinDDK/6001.18002/inc/crt/atl71/atlstdthunk.h Wed Oct 21 21:28:19 2009
@@ -40,8 +40,8 @@
// Thunks for __stdcall member functions
#if defined(_M_IX86)
-PVOID __stdcall __AllocStdCallThunk(VOID);
-VOID __stdcall __FreeStdCallThunk(PVOID);
+void* __stdcall __AllocStdCallThunk();
+void __stdcall __FreeStdCallThunk(void* ptr);
@cotsog
cotsog / chrome_gyp_vcpp_express.patch
Created November 14, 2009 16:42
Apply this patch to the Google Chrome source tree so you can compile it with Visual C++ 2008 Express Edition without errors. See http://bit.ly/30slOj for more details.
Index: chrome/chrome.gyp
===================================================================
--- chrome/chrome.gyp (revision 32052)
+++ chrome/chrome.gyp (working copy)
@@ -2781,6 +2781,11 @@
'browser/views/tabs/tab_overview_types.cc',
'browser/views/tabs/tab_overview_types.h',
],
+ 'msvs_settings': {
+ 'VCCLCompilerTool': {
# Inspired from https://github.com/piwik/travis-scripts/blob/git-lfs/install_git_lfs.sh
# Change the remote because git lfs doesn't support git:// URLs
git remote set-url origin "https://$GITHUB_USER_TOKEN:@github.com/$TRAVIS_REPO_SLUG.git"
# Install it!
curl -sLo - https://github.com/github/git-lfs/releases/download/v0.5.2/git-lfs-linux-amd64-0.5.2.tar.gz | tar xzvf -
cd git-lfs-*
sudo ./install.sh
cd ..
@cotsog
cotsog / .travis.yml
Created July 31, 2015 16:09
.travis.yml for gcc-5 compiler support on Travis CI
sudo: required
script:
- sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc
- gcc --version
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
@cotsog
cotsog / com.apple.dt.instruments.process.analysis.plist
Created August 31, 2015 13:59
Appium Instruments authorization fix
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>allow-root</key>
<true/>
<key>authenticate-user</key>
<true/>
<key>class</key>
<string>user</string>
@cotsog
cotsog / .travis.yml
Created September 4, 2015 20:04
Custom MongoDB version on container infrastructure
sudo: false
env:
global:
- MONGODB_VERSION=2.6.10
install:
- wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-$MONGODB_VERSION.tgz
- tar xfz mongodb-linux-x86_64-$MONGODB_VERSION.tgz
- export PATH=`pwd`/mongodb-linux-x86_64-$MONGODB_VERSION/bin:$PATH
- mkdir -p data/db
- mongod --dbpath=data/db &
@cotsog
cotsog / .travis.yml
Created September 17, 2015 13:00
.travis.yml for gcc-4.9 compiler support on Travis CI
before_install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
@cotsog
cotsog / travis.yml
Created February 10, 2016 02:26 — forked from sheki/travis.yml
pbcopy
sudo: false
language: node_js
env:
- BRIGHT_ENV=travis
before_install:
- rm -f node_modules
@cotsog
cotsog / .travis.yml
Created May 4, 2016 15:20
Cache PhantomJS
cache:
directories:
- travis-phantomjs
before_install:
- mkdir travis-phantomjs || true
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs
- export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
@cotsog
cotsog / .travis.yml
Created May 9, 2018 16:10
Opt-in recipe to run `apt-get update` in your Travis CI build
# Add this snippet to your .travis.yml file
addons:
apt:
update: true