Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| #/bin/bash | |
| #-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
| REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
| if [ -z "$REPO_URL" ]; then | |
| echo "-- ERROR: Could not identify Repo url." | |
| echo " It is possible this repo is already using SSH instead of HTTPS." | |
| exit | |
| fi |
| #!/bin/bash | |
| # bash generate random alphanumeric string | |
| # | |
| # bash generate random 32 character alphanumeric string (upper and lowercase) and | |
| NEW_UUID=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
| # bash generate random 32 character alphanumeric string (lowercase only) | |
| cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 32 | head -n 1 |
| (defun su/magit/format-magit-status-buffer-name () | |
| "Append the value of current branch to `magit-status' buffer" | |
| (let ((magit-status-buffer-name (buffer-name (magit-find-status-buffer))) | |
| (branch-name (magit-get-current-branch)) | |
| (buffer-name-regex "^\\(\\*.*\\*\\)\\(.*\\)?$")) | |
| (dolist (buffer-name `(,magit-status-buffer-name ,magit-log-buffer-name)) | |
| (string-match buffer-name-regex buffer-name) | |
| (ignore-errors (with-current-buffer buffer-name | |
| (rename-buffer (replace-match (concat "\\1" (format |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| (require 'url) | |
| (defun get-and-parse-json (url) | |
| (interactive) | |
| (with-current-buffer (url-retrieve-synchronously url) | |
| (goto-char (point-min)) | |
| (re-search-forward "^$") | |
| (json-read))) | |
| (defun get-movie-json (title &optional year) |
| ## Install a necessary packages | |
| $ sudo apt-get install kvm cloud-utils genisoimage | |
| ## URL to most recent cloud image of 12.04 | |
| $ img_url="http://cloud-images.ubuntu.com/server/releases/12.04/release" | |
| $ img_url="${img_url}/ubuntu-12.04-server-cloudimg-amd64-disk1.img" | |
| ## download the image | |
| $ wget $img_url -O disk.img.dist | |
| ## Create a file with some user-data in it |
| 13:15 <xQuasar> | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF | |
| | FUCKIN PUSSIES | |
| 13:15 <xQuasar> | JAVASCRIPT FOR LIFE FAGS | |
| 13:16 <luite> | hello | |
| 13:16 <ChongLi> | somebody has a mental illness! | |
| 13:16 <merijn> | Wow...I suddenly see the error of my ways and feel | |
| | compelled to write Node.js! | |
| 13:16 <genisage> | hi | |
| 13:16 <luite> | you might be pleased to learn that you can compile | |
| | haskell to javascript now |
| /**= | |
| * User: zircote | |
| * Date: 16/10/2013 | |
| * Time: 08:59 | |
| */ | |
| var SERVICE_HOST = 'http://aws.amazon.com' | |
| var data_sources = { | |
| "linux-od": { |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
The Google Drive API supports these MIME types, but if you try to filter using them, you may find you're not getting the document types back that you expect. Especially when using setMimeTypes() with Google's JavaScript Picker.
Here are the poorly documented or completely undocumented MIME types I discovered:
If you want application/vnd.google-apps.document, also use application/vnd.google-apps.kix. Source.
If you want application/vnd.google-apps.spreadsheet, also use application/vnd.google-apps.ritz. Via a private email from a Google employee.
If you want application/vnd.google-apps.presentation, also use application/vnd.google-apps.punch. Source.