This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Azure Devops System Theme Switcher | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Detects system theme changes and selects the appropriate theme on Azure DevOps. | |
// @author Bouke / llama3.3 | |
// @match https://dev.azure.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare module 'ember-ajax/ajax-request' { | |
import Ember from 'ember'; | |
import AjaxRequestMixin from 'ember-ajax/mixins/ajax-request'; | |
export default class AjaxRequest extends Ember.Object.extend(AjaxRequestMixin) { } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StringDecimalConverter : JsonConverter | |
{ | |
public override bool CanRead | |
{ | |
get | |
{ | |
return false; | |
} | |
} |
Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv
instead. If you are looking for the previous version of this document, see the revision history.
$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10
$ pyenv install 2.6.9
First, install the following libraries:
$ brew install unixodbc
$ brew install freetds --with-unixodbc
FreeTDS should already work now, without configuration:
$ tsql -S [IP or hostname] -U [username] -P [password]
locale is "en_US.UTF-8"
locale charset is "UTF-8"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This hook is run after every virtualenv is activated. | |
#create project directory and cd into it | |
env_name="`basename \"$VIRTUAL_ENV\"`" | |
env_name="${env_name/-py3/}" | |
pwd_root="$HOME/Sites/$env_name" | |
if [ ! -d "$pwd_root" ] ; then | |
echo "Creating directory $pwd_root" | |
mkdir "$pwd_root" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git fetch origin pull/[id]/head:pull/[id] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Parses the language tags provided by IANA_ | |
For a definition of the tag types, see | |
http://www.w3.org/International/questions/qa-choosing-language-tags | |
IANA_: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry | |
""" | |
from collections import OrderedDict | |
from pprint import pprint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
A script to query the Amazon Web Services usage reports programmatically. | |
Ideally this wouldn't exist, and Amazon would provide an API we can use | |
instead, but hey - that's life. | |
Basically takes your AWS account username and password, logs into the | |
website as you, and grabs the data out. Always gets the 'All Usage Types' |
NewerOlder