This file contains hidden or 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
use portaudio as pa; | |
use anyhow::Result; | |
fn main() -> Result<()> { | |
let pa = pa::PortAudio::new()?; | |
let mut settings = pa.default_output_stream_settings(1, 44_100.0, 64u32)?; | |
settings.flags = pa::stream_flags::CLIP_OFF; | |
let mut phase = 0.0; |
This file contains hidden or 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
name: Deploy LaTeX document | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build_resume: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup SSH |
This file contains hidden or 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
stages: | |
- build | |
- deploy | |
build: | |
stage: build | |
image: node:11 | |
before_script: | |
- npm install --progress=false --unsafe-perm | |
script: | |
- npm run build |
This file contains hidden or 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
<?xml version="1.0"?> | |
<project version="2"> | |
<pipeline> | |
<pass name="BRDF" type="shader" active="true" patchverts="1"> | |
<shader type="vs" path="shaders\vertex.vk" entry="main" /> | |
<shader type="ps" path="shaders\fragment.vk" entry="main" /> | |
<inputlayout> | |
<item value="Position" semantic="POSITION" /> | |
<item value="Normal" semantic="NORMAL" /> | |
<item value="Texcoord" semantic="TEXCOORD0" /> |
This file contains hidden or 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
# version | |
# Betaflight / STM32F411 (S411) 4.2.0 Jun 14 2020 / 03:04:43 (8f2d21460) MSP API: 1.43 | |
# config: manufacturer_id: MTKS, board_name: MATEKF411, version: be0c9205, date: 2020-01-15T19:44:32Z | |
# start the command batch | |
batch start | |
board_name MATEKF411 | |
manufacturer_id MTKS |
This file contains hidden or 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
{ | |
"Africa/Abidjan": { | |
"latitude": 51.9, | |
"longitude": -40.2 | |
}, | |
"Africa/Accra": { | |
"latitude": 53.3, | |
"longitude": -13 | |
}, | |
"Africa/Addis_Ababa": { |
This file contains hidden or 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
# we use the requests and json package | |
import requests | |
import json | |
# define request headers | |
headers = {'Authorization': '<your API-token here>', | |
'Content-Type': 'application/x-www-form-urlencoded'} | |
# we got the url from the swagger documentation. | |
# it's also possible to pass parameters as '?limit=10&embed=contact' to the url, to limit the response array or to embed referenced objects |
This file contains hidden or 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
FROM kalilinux/kali-linux-docker | |
RUN apt-get update -y --fix-missing | |
RUN apt-get upgrade -y ; apt-get autoremove -y | |
ENV TZ=Europe/Berlin | |
CMD tail -f /dev/null |
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: apacheds | |
labels: | |
app: apacheds | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: my-nginx | |
spec: | |
selector: | |
matchLabels: | |
run: my-nginx | |
replicas: 1 | |
strategy: |