macOS install itself is quite easy using OSX-KVM scripts
igpu setup is quite easy by following instructions on Arch Linux wiki
/* | |
* Simple sound playback using ALSA API and libasound. | |
* | |
* Compile: | |
* $ cc -o play sound_playback.c -lasound | |
* | |
* Usage: | |
* $ ./play <sample_rate> <channels> <seconds> < <file> | |
* | |
* Examples: |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
import httplib2 | |
import oauth2client.client | |
import pprint | |
from apiclient.discovery import build | |
serviceacct_email = "<your service account email address>" | |
f = file('groupssettings-privatekey.p12', 'rb') | |
client_key = f.read() | |
f.close() |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import datetime | |
from mock import patch | |
from django.test import TestCase | |
from django.utils import timezone | |
class DatesTestCase(TestCase): |
PROJECT = sample-python-app | |
FUNCTION = $(PROJECT) | |
REGION = us-east-1 | |
.phony: clean | |
clean: | |
rm -f -r $(FUNCTION)* | |
rm -f -r site-packages |
class ControlledInputWithInternalState extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
isValid : true, | |
value : props.value | |
}; | |
} | |
macOS install itself is quite easy using OSX-KVM scripts
igpu setup is quite easy by following instructions on Arch Linux wiki