most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| from tastypie.exceptions import NotFound | |
| from tastypie.resources import ModelResource | |
| from tastypie.authentication import BasicAuthentication, ApiKeyAuthentication | |
| from tastypie.models import ApiKey | |
| from django.contrib.auth.models import User | |
| __author__ = 'martinsandstrom' | |
| class ApiTokenResource(ModelResource): |
| #!/bin/bash | |
| # -*- sh -*- | |
| : << =cut | |
| =head1 NAME | |
| zram - Plugin to monitor zram usage | |
| =head1 CONFIGURATION |
| @interface NSString (KBAdditions) | |
| - (CGFloat)fontSizeWithFont:(UIFont *)font constrainedToSize:(CGSize)size minimumScaleFactor:(CGFloat)minimumScaleFactor; | |
| @end |
| #!/usr/bin/perl | |
| use warnings; | |
| use strict; | |
| use utf8; | |
| use File::Basename; | |
| #--------------------------------------------------------------------- |
| import boto3 | |
| import argparse | |
| def main(): | |
| argparser = argparse.ArgumentParser(description='Testing ARN stuff') | |
| argparser.add_argument("--role", help="If running with a role provide it here", required=True) | |
| argparser.add_argument("--profile", help="Credential profile", required=True) | |
| argparser.add_argument('--region', help='AWS Region to work within, defaults to eu-central-1', default='eu-central-1', required=False) | |
| args = argparser.parse_args() | |
| role = args.role |
| require 'inifile' | |
| require 'date' | |
| Vagrant.configure("2") do |config| | |
| config.vm.box = "dummy" | |
| config.vm.guest = "windows" | |
| config.vm.boot_timeout = 600 | |
| config.vm.provider :aws do |aws, override| |
| # Enable automated data access under https://postmaster.live.com/snds/auto.aspx | |
| import datetime | |
| import requests | |
| import shutil | |
| DATA_URL = 'https://postmaster.live.com/snds/data.aspx?key=xx' | |
| for i in range(90): | |
| date = datetime.datetime.now() + datetime.timedelta(-i) |
| #!/bin/sh | |
| apt-get -y install git bc | |
| git clone https://github.com/letsencrypt/letsencrypt /opt/letsencrypt | |
| mkdir /etc/letsencrypt |
| # Remove some Windows Store pakacges which are blocking Sysprep | |
| # Execution of scripts has to be neabled: Set-ExecutionPolicy RemoteSigned | |
| # https://forums.fogproject.org/topic/5873/windows-10-unattend-xml-sysprep-answer-file-challenge/16 | |
| $AppsList = "Microsoft.Bing" , "Microsoft.BingFinance" , "Microsoft.BingMaps" , "Microsoft.BingNews"` | |
| , "Microsoft.BingSports" , "Microsoft.BingTravel" , "Microsoft.BingWeather" , "Microsoft.Camera"` | |
| , "microsoft.microsoftskydrive" , "Microsoft.Reader" , "microsoft.windowscommunicationsapps"` | |
| , "microsoft.windowsphotos" , "Microsoft.XboxLIVEGames" , "Microsoft.ZuneMusic"` | |
| , "Microsoft.ZuneVideo" , "Microsoft.Media.PlayReadyClient" | |
| , "9E2F88E3.Twitter", "king.com.CandyCrushSaga" |