This file contains 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
// c++ -std=c++20 -O2 uuid_test.cc | |
#include <chrono> | |
#include <iostream> | |
#include <thread> | |
#include <memory> | |
#include <set> | |
#include <vector> | |
#include <uuid/uuid.h> | |
struct Uuid { |
This file contains 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
// c++ -std=c++20 -O2 uuid_test.cc | |
#include <chrono> | |
#include <iostream> | |
#include <thread> | |
#include <mutex> | |
#include <set> | |
#include <vector> | |
#include <uuid/uuid.h> | |
struct Uuid { |
This file contains 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
--- src/libs/zbxsysinfo/freebsd/freebsd.c.orig 2021-11-13 09:05:42.172000000 +0900 | |
+++ src/libs/zbxsysinfo/freebsd/freebsd.c 2021-11-13 09:05:57.725120000 +0900 | |
@@ -41,7 +41,7 @@ | |
{"net.if.out", CF_HAVEPARAMS, NET_IF_OUT, "lo0,bytes"}, | |
{"net.if.total", CF_HAVEPARAMS, NET_IF_TOTAL, "lo0,bytes"}, | |
{"net.if.collisions", CF_HAVEPARAMS, NET_IF_COLLISIONS, "lo0"}, | |
- {"net.if.discovery", 0, NET_IF_DISCOVERY, "lo0"}, | |
+ {"net.if.discovery", 0, NET_IF_DISCOVERY, NULL}, | |
{"vm.memory.size", CF_HAVEPARAMS, VM_MEMORY_SIZE, "free"}, |
This file contains 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
// ==UserScript== | |
// @name 自衛隊東京ワクチン接種web予約 | |
// @version 1 | |
// @grant none | |
// @include https://www.vaccine.mrso.jp/sdftokyo/VisitNumbers/visitnoAuth* | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js | |
// ==/UserScript== | |
(function($){ | |
$('#VisitnoAuthName').val("市区町村コード"); |
This file contains 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
[alias] | |
st = status -sb | |
[push] | |
default = simple | |
[core] | |
quotepath = false | |
[pager] | |
log = diff-highlight | less | |
show = diff-highlight | less | |
diff = diff-highlight | less |
This file contains 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
#include <iostream> | |
class I { | |
private: | |
int value; | |
public: | |
I(int i): value(i) {} | |
I operator+(int i) const { | |
return I(value - i); | |
} |
This file contains 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
#include <stdio.h> | |
#include <stdint.h> | |
/*! | |
* \brief 7bitの数値を渡すと、偶数パリティを8bit目に入れる | |
* \param[in] val 7bitの数値 | |
* \return 8bit目に偶数パリティを追加したもの | |
*/ | |
uint32_t parity(uint32_t val) { | |
uint32_t orig = (val &= 0x7f); |
This file contains 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
#include <iostream> | |
class A { | |
public: | |
void method() { | |
std::cout << "A::method" << std::endl; | |
} | |
virtual void vmethod() { | |
std::cout << "A::vmethod" << std::endl; | |
} |
This file contains 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
PDIR=`pwd` | |
fetch https://gist.githubusercontent.com/false-git/7183d616527e8efda181/raw/7613fcea21e1a00618bc395878586ec6189af964/man.patch | |
fetch https://gist.githubusercontent.com/false-git/7183d616527e8efda181/raw/53c7ab2196c61be336e910a66a6b9423457193b9/mdoc.local.add | |
fetch https://gist.githubusercontent.com/false-git/7183d616527e8efda181/raw/fe5aa7e9aa3e1e68a0bf780eb69dac01f41da44e/man.local.add | |
fetch http://distcache.FreeBSD.org/local-distfiles/hrs/tmac-20030521_2.tar.gz | |
cp /usr/bin/man /usr/local/bin/ | |
cd /usr/local/bin/ | |
patch < $PDIR/man.patch | |
cd /usr/local/share/groff/site-tmac | |
V=`uname -r|sed 's/-.*//'` |
This file contains 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
*** quazip/quazip.pro.orig 2015-03-12 13:50:17.000000000 +0900 | |
--- quazip/quazip.pro 2015-03-13 13:19:12.000000000 +0900 | |
*************** | |
*** 44,49 **** | |
--- 44,54 ---- | |
} | |
+ macx { | |
+ QMAKE_LIBS += -lz |
NewerOlder