- Install target mingw-w64:
brew install mingw-w64 - Add target to rustup:
rustup target add x86_64-pc-windows-gnu - Create
.cargo/config - Add the instructions below to
.cargo/config
[target.x86_64-pc-windows-gnu]
| #!/bin/bash | |
| # This script resolves a DID, retrieves an API key, fetches a user's feed, | |
| # and posts a "Hello, world" message to the user's feed. | |
| # Resolve DID for handle | |
| HANDLE='felicitas.pojtinger.com' | |
| DID_URL="https://bsky.social/xrpc/com.atproto.identity.resolveHandle" | |
| export DID=$(curl -G \ | |
| --data-urlencode "handle=$HANDLE" \ |
brew install mingw-w64rustup target add x86_64-pc-windows-gnu.cargo/config.cargo/config[target.x86_64-pc-windows-gnu]
sudo dfu-util -l
It will show like...
Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=3, name="@Device Feature/0xFFFF0000/01*004 g", serial="3262355B3231"
Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=2, name="@OTP Memory /0x1FFF7800/01*512 g,01*016 g", serial="3262355B3231"
Found DFU: [0483:df11] ver=2100, devnum=32, cfg=1, intf=0, alt=1, name="@Option Bytes /0x1FFFC000/01*016 g", serial="3262355B3231"
| -- 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%' |
| /* | |
| A Minimal Capture Program | |
| This program opens an audio interface for capture, configures it for | |
| stereo, 16 bit, 44.1kHz, interleaved conventional read/write | |
| access. Then its reads a chunk of random data from it, and exits. It | |
| isn't meant to be a real program. | |
| From on Paul David's tutorial : http://equalarea.com/paul/alsa-audio.html |