cd ~
mkdir .vim
cd .vim
git clone git://github.com/tpope/vim-pathogen.git
First step for Ubuntu: Set Solarized as your console scheme.
gem install vagrant | |
vagrant box add precise64 http://files.vagrantup.com/precise64.box | |
vagrant init | |
vagrant up |
cd ~
mkdir .vim
cd .vim
git clone git://github.com/tpope/vim-pathogen.git
First step for Ubuntu: Set Solarized as your console scheme.
'use strict'; | |
var converterApp = angular.module('converterApp', []) | |
.config(['$routeProvider', function($routeProvider) { | |
$routeProvider | |
.when('/', { | |
templateUrl: 'views/main.html', | |
controller: 'MainCtrl' | |
}) | |
.otherwise({ |
#!/bin/bash | |
# Favicon and Apple Touch Icon Generator | |
# | |
# This bash script takes an image as a parameter, and uses ImageMagick to convert it to several | |
# other formats used on modern websites. The following copies are generated: | |
# | |
# * apple-touch-icon-114x114-precomposed.png | |
# * apple-touch-icon-57x57-precomposed.png | |
# * apple-touch-icon-72x72-precomposed.png |
import requests | |
redirects = { | |
"http://github.com/": "https://github.com/", | |
"http://www.minktoast.net/": "http://minktoast.net/", | |
} | |
for key, value in redirects.items(): | |
r = requests.get(key) | |
if r.url == value: |
""" | |
S3 Uploader for Python 3 | |
Colton J. Provias | |
Usage: | |
f = open('sample.png', 'rb') | |
contents = f.read() | |
response, url = upload_to_s3('AWSKEY', 'AWSSECRET', 'mybucket', 'image.png', contents, 'image/png') | |
""" |
### Keybase proof | |
I hereby claim: | |
* I am keybits on github. | |
* I am keybits (https://keybase.io/keybits) on keybase. | |
* I have a public key whose fingerprint is 9F7A E1B8 54B0 8C79 BE02 2E17 15E9 1238 93C6 C362 | |
To claim this, I am signing this object: |
@ECHO OFF | |
REM Set default sock file | |
SET SSH_AUTH_SOCK=/tmp/ssh-agent.sock | |
REM Check socket is available | |
IF NOT EXIST "%TMP%\ssh-agent.sock" GOTO:RUNAGENT | |
REM Check if an ssh-agent is running | |
FOR /f "tokens=*" %%I IN ('ps ^| grep ssh-agent ^| sed "s/^ *\([0-9]\+\) .*/\1/"') DO SET VAR=%%I |
#!/bin/bash | |
#---------------------------------------------------- | |
# | |
# Copyright (C) 2017 Vlad Didenko | |
# | |
# This Source Code Form is subject to the terms | |
# of the Mozilla Public License, v. 2.0. If a copy | |
# of the MPL was not distributed with this file, | |
# You can obtain one at https://mozilla.org/MPL/2.0/ |
I had a bit of trouble trying to configure permissions to upload files from my Google Compute Engine instance to my Google Cloud Storage bucket. The process isn't as intuitive as you think. There are a few permissions issues that need to be configured before this can happen. Here are the steps I took to get things working.
Let's say you want to upload yourfile.txt
to a GCS bucket from your virtual machine.
You can use the gsutil
command line tool that comes installed on all GCE instances.
If you've never used the gcloud
or gsutil
command line tools on this machine before, you will need to initialize them with a service account.