SuperDirt.start // start server
Server.killAll // kill server
Quarks.gui // open samples folder
// set inputs & outputs // you will need to kill the server and restart when changing the input / output
// list all devices:
SuperDirt.start // start server
Server.killAll // kill server
Quarks.gui // open samples folder
// set inputs & outputs // you will need to kill the server and restart when changing the input / output
// list all devices:
| #!/usr/bin/env python | |
| """ | |
| mocking requests calls | |
| """ | |
| import mock | |
| import unittest | |
| import requests | |
| from requests.exceptions import HTTPError |
| -- https://tidalcycles.org/index.php/Custom_OSC | |
| :set -XOverloadedStrings | |
| :set prompt "" | |
| :set prompt-cont "" | |
| import Sound.Tidal.Context | |
| superDirt <- startTidal (superdirtTarget {oLatency = 0.1, oAddress = "127.0.0.1", oPort = 57120}) (defaultConfig {cFrameTimespan = 1/20}) |
| #*********************************************************************** | |
| # | |
| # Build system module framework | |
| # | |
| # Copyright (c) 2014 Process Systems Enterprise Ltd | |
| # | |
| # Licensed under GPL v3+ | |
| # | |
| # This makefile provides definitions which allow use of a modular build system, | |
| # where "module" makefiles are isolated from each other. Variables defined in a |
WARNING: If you're reading this in 2021 or later, you're likely better served by reading:
(This gist was created in 2013 and targeted the legacy GOPATH mode.)
$ ssh -A vm
$ git config --global url."[email protected]:".insteadOf "https://github.com/"| -- 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%' |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |