Skip to content

Instantly share code, notes, and snippets.

View askdaddy's full-sized avatar

Seven Chan askdaddy

  • Internet
View GitHub Profile
@askdaddy
askdaddy / sending-protobuf-messages-with-boostasio.hpp
Created September 29, 2020 02:58
sending-protobuf-messages-with-boostasio
#include "boost/asio.hpp"
#include "google/protobuf/io/coded_stream.h"
#include "google/protobuf/io/zero_copy_stream_impl.h"
// https://stackoverflow.com/questions/4810026/sending-protobuf-messages-with-boostasio
using ::boost::asio::ip::udp;
int main() {
PlayerInfo message;
@askdaddy
askdaddy / smc_read.c
Last active September 11, 2020 08:22
Fetch the OSK authentication key
/*
* smc_read.c: Written for Mac OS X 10.5. Compile as follows:
*
* gcc -Wall -o smc_read smc_read.c -framework IOKit
*/
#include <stdio.h>
#include <IOKit/IOKitLib.h>
@askdaddy
askdaddy / daemon.json
Created September 5, 2020 03:14
docker ip config
{
"bip":"10.20.0.1/16",
"fixed-cidr": "10.20.96.0/20"
}
@askdaddy
askdaddy / update.sh
Last active July 16, 2020 07:40
github 更新fork 项目
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
@askdaddy
askdaddy / settings.json
Created July 3, 2020 04:18
windows terminal config
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@askdaddy
askdaddy / iotest.sh
Last active April 3, 2020 09:28
磁盘io测试
```
dd if=/dev/zero of=/mnt/hdd0/test.img bs=512M count=8 oflag=dsync
```
@askdaddy
askdaddy / source.list
Created March 16, 2020 11:18
huawei-ubuntu-repo
deb http://mirrors.huaweicloud.com/ubuntu/ xenial main restricted
deb http://mirrors.huaweicloud.com/ubuntu/ xenial-updates main restricted
deb http://mirrors.huaweicloud.com/ubuntu/ xenial universe
deb http://mirrors.huaweicloud.com/ubuntu/ xenial-updates universe
deb http://mirrors.huaweicloud.com/ubuntu/ xenial multiverse
deb http://mirrors.huaweicloud.com/ubuntu/ xenial-updates multiverse
deb http://mirrors.huaweicloud.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.huaweicloud.com/ubuntu xenial-security main restricted
deb http://mirrors.huaweicloud.com/ubuntu xenial-security universe
deb http://mirrors.huaweicloud.com/ubuntu xenial-security multiverse
@askdaddy
askdaddy / clean_boot.md
Last active March 16, 2020 09:08
清理/boot目录
@askdaddy
askdaddy / 动力装甲.txt
Created February 17, 2020 15:03
辐射76
稀有装备设计图获得方法分享
1、兄弟会T60外观,上缴冒险营,科技资料。
2、X01,喷射背包、校准、隐形小子、都是改装配件,白泉地堡。
3、T60、T51B喷射背包、校准设计图纸,瓦托加超市。
4、兄弟会地图任务,会掉T60的设计图。