Skip to content

Instantly share code, notes, and snippets.

View pbzweihander's full-sized avatar
🤔

Kangwook Lee (이강욱) pbzweihander

🤔
View GitHub Profile
@pbzweihander
pbzweihander / enable_phonesim.sh
Created August 19, 2020 06:32
Enable phonesim to use bluetooth headset's mic (e.g. AirPods Pro)
#!/usr/bin/env bash
# Use i3-msg or something that can spawn to background
i3-msg exec "phonesim -p 12345 /usr/share/phonesim/default.xml"
sudo systemctl start ofono.service
dbus-send --print-reply --system --dest=org.ofono /phonesim org.ofono.Modem.SetProperty string:"Powered" variant:boolean:true
dbus-send --print-reply --system --dest=org.ofono /phonesim org.ofono.Modem.SetProperty string:"Online" variant:boolean:true
@pbzweihander
pbzweihander / kubia.yaml
Created June 24, 2020 05:36
kubia from Kubernetes In Action
apiVersion: apps/v1
kind: Deployment
metadata:
name: kubia
namespace: default
spec:
selector:
matchLabels:
app: kubia
@pbzweihander
pbzweihander / client.py
Last active June 5, 2020 10:17
Flask Streaming Example
from requests import get
URL = 'http://localhost:13000/'
def main():
resp = get(URL, stream=True)
for b in resp.iter_content(decode_unicode=True):
print(b, end='')
print()
-----BEGIN PGP MESSAGE-----
Version: Keybase OpenPGP v2.0.77
Comment: https://keybase.io/crypto
wcFMA1aQd6S74F72AQ/9HwQhAMkTSG+WoS79rRu7y6FJu0hQFI0pw/2lc5mdrPrf
Nb328wJIdiSNsBTKqLt7DNCZfsAKKrMv5YtH1NGh+UktEeyZtLlWqNZlDlpCYCPw
bdFRBnGq+tQ5pacmdX8vdigAe7mgR5uY7Te88V+6lCyKufoXY21ezUcPgfYOl1rF
WR+jWzbBbxkN/idqZjjVE0xCzGoolW+acPDf1J40hRSPg4IlkfXAIxHZp4dbpLCA
UnYvhnZGUbaFBl3ERA34W1VcDGbDvig8232smjJAosGAx69XxqQ614SXx95iFzqg
nzLDcvLZ3YuE8tfZRghzjduukMg3+mI6mTYTb9DRkXx2Dbsbn0tiZOeZp6H4aTq+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:Boolean x:Key="/Default/CodeEditing/Intellisense/CodeCompletion/IntelliSenseCompletingCharacters/CSharpCompletingCharacters/UpgradedFromVSSettings/@EntryValue">True</s:Boolean>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=CheckNamespace/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=EmptyNamespace/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=InconsistentNaming/@EntryIndexedValue">HINT</s:String>
<s:String x:Key="/Default/CodeInspection/Highlighting/InspectionSeverities/=RedundantCommaInAttributeList/@EntryIndexedValue">DO_NOT_SHOW</s:String>
<s:String x:

Keybase proof

I hereby claim:

  • I am pbzweihander on github.
  • I am pbzweihander (https://keybase.io/pbzweihander) on keybase.
  • I have a public key ASAYgQlHvwuyIySrRvTsDDfkhEtnTcZDbloOZMmEQjkPSQo

To claim this, I am signing this object: