sudo apt install mosh
sudo ufw allow from 192.168.1.0/24 to any port 60000:61000 proto udp
import os, sqlite3 | |
conn = sqlite3.connect(os.path.expandvars(r'%ProgramData%\Microsoft\Windows\AppRepository\StateRepository-Machine.srd')) | |
cursor = conn.execute( | |
''' | |
SELECT _PackageID, PackageFullName FROM main.Package | |
WHERE PackageFullName LIKE "Microsoft.Windows.HolographicFirstRun%"; | |
''' | |
) |
CLionでOpenGLを使ったプログラムを作成したい.でもfind_packageしても見つからない...
調べたらやり方について説明してあるyoutubeの解説動画があったので手順をメモ.
参考:https://youtu.be/AUFZnA3lW_Q
MinGWをインストール済みであること.
- Martin Payne's Windows binaries (MSVC and MinGW) から
freeglut MinGW Package(私の場合は3.0.0)
をダウンロードそして展開.
//META{"name":"ConnectionTime","website":"https://kataba.me/","source":"https://gist.github.com/katabame/ef65c6379c8d50af8702c5932c6dbf5b"}*// | |
/* | |
MIT License | |
Copyright (c) 2018 katabame | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
This is a bash script to act as a Cloudflare DDNS client, useful replacement for ddclient.
This gist will no longer update, instead please go to https://github.com/lifehome/systemd-cfddns for more updated versions.
- Put the
cfupdater
files to/usr/local/bin
- If you are using IPv4 for A record, append
-v4
tocfupdater
in the following systemd service unit.
https://tsuchinoko.dmmlabs.com/?p=4175 | |
"IPv4トランスポート、Aレコードを問い合わせ | |
IPv4トランスポート、AAAAレコードを問い合わせ | |
IPv6トランスポート、Aレコードを問い合わせ | |
IPv6トランスポート、AAAAレコードを問い合わせ" |
DOMAIN_NAME=mstdn.jp | |
curl -s https://$DOMAIN_NAME/api/v1/custom_emojis | jq -r '.[] | "curl -s -o " + .shortcode + ".png " + .url' | sh -x |
- golinks - golinks is a web app that allows you to create smart bookmarks, commands and aliases by pointing your web browser's default search engine at a running instance. Similar to bunny1 or yubnub. (Demo)
MIT
Go
- notes - notes is a self-hosted note taking web app that lets you keep track of your notes and search them in a easy and minimal way. (Demo)
MIT
Go
- pastebin - pastebin is a simple pastebin service with convenient CLI. (Demo)
MIT
Go
- shorturl - shorturl is a simple URL shortener with very tiny URL(s). (Demo)
MIT
Go
- todo - todo is a simple todo manager. (Demo)
MIT
Go
- [wiki](https://git.mills.io/prolog
This a collection of notes and files used in my quest to create "Reboot to Windows" and "Reboot to Linux" scripts (and desktop shortcuts) for Linux and Windows respectively that automatically reboot my system and instruct rEFInd to auto-select the appropriate OS entry.
The key for achieving this is to modify the EFI Variable PreviousBoot
with GUID 36d08fa7-cf0b-42f5-8f14-68df73ed3740
, which rEFInd uses to store the last entry selected in the menu and, if using the +
default entry, will be used to select the default OS. By doing this, we trick rEFInd into booting the OS we choose without having to be physically there to press the keyboard.
## 見出し2
### 見出し3
#### 見出し4
##### 見出し5
###### 見出し6 ## Block 段落 空白行を挟むことで段落となります。 ```
段落1
(空行)
段落2
``` 段落1 段落2 ## Br 改行 改行の前に半角スペース` `を2つ記述します。 ```
hoge
fuga(スペース2つ)
piyo
``` hoge
fuga piyo ## Blockquotes 引用 先頭に`>`を記述します。ネストは`>`を多重に記述します。 ```
> 引用 > 引用
>> 多重引用
``` > 引用 > 引用
>> 多重引用 ## Code コード `` `バッククオート` `` 3つ、あるいはダッシュ`~`3つで囲みます。 ```
print 'hoge'
``` ```
print 'hoge'
``` ### インラインコード `` `バッククオート` `` で単語を囲むとインラインコードになります。 ```
これは `インラインコード`です。
``` これは `インラインコード`です。 ## pre 整形済みテキスト 半角スペース4個もしくはタブで、コードブロックをpre表示できます ``` class Hoge def hoge print 'hoge' end end
``` class Hoge def hoge print 'hoge' end end ## Hr 水平線 アンダースコア`_` 、アスタリスク`*`、ハイフン`-`などを3つ以上連続して記述します。 ```
hoge
***
hoge
___
hoge
---
``` hoge
***
hoge
___
hoge
--- # Lists ## Ul 箇条書きリスト ハイフン`-`、プラス`+`、アスタリスク`*`のいずれかを先頭に記