Short (72 chars or less) summary
More detailed explanatory text. Wrap it to 72 characters. The blank
line separating the summary from the body is critical (unless you omit
the body entirely).
Write your commit message in the imperative: "Fix bug" and not "Fixed
bug" or "Fixes bug." This convention matches up with commit messages
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
[ 53%] Building CXX object test/CMakeFiles/core-test.dir/core-test.cc.obj | |
CMake Error at C:/Users/fts-guest-05600/.tebako/deps/src/_dwarfs_wr/deps/lib/cmake/gflags/gflags-config.cmake:107 (message): | |
Your gflags installation does not contain a gflags_nothreads_static library | |
target! Try a different combination of GFLAGS_SHARED and GFLAGS_NOTHREADS. | |
Call Stack (most recent call first): | |
CMakeLists.txt:82 (find_package) | |
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
# PowerShell script to swap mouse buttons for left-handed mouse users. | |
# (Make right mouse button the primary button...) | |
$swapButtons = Add-Type -MemberDefinition @' | |
[DllImport("user32.dll")] | |
public static extern bool SwapMouseButton(bool swap); | |
'@ -Name "NativeMethods" -Namespace "PInvoke" -PassThru | |
function swapleft { |
Recently I find that Windows mouse cursor is not very friently for left-handed people. Because it point from right to left.
So I wonder if there is a way to change it to "left to right". I searched the internet but havnen't found one.
Further search give me a message that the "cur" file format is a derivation of the "ico" format: https://en.wikipedia.org/wiki/ICO_(file_format)
So I think if we can flip it programatically.
Currently I can use these steps to modify one image:
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
{ | |
"rust-analyzer.server.extraEnv": { | |
"PATH": "C:/msys64/ucrt64/bin" | |
}, | |
"terminal.integrated.profiles.windows": { | |
// ... | |
"MSYS2": { | |
"path": "C:\\msys64\\usr\\bin\\fish.exe", | |
"args": [ | |
"--login", |
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"?> | |
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd"> | |
<fontconfig> | |
<!-- Default system-ui fonts --> | |
<match target="pattern"> | |
<test name="family"> | |
<string>system-ui</string> | |
</test> | |
<edit name="family" mode="prepend" binding="strong"> |
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
extern "C" { | |
#include <winsock2.h> | |
} | |
// https://en.wikipedia.org/wiki/Multicast_address | |
int main() | |
{ | |
auto wsaData = WSAData {}; | |
WSAStartup(MAKEWORD(2, 0), &wsaData); | |
auto sock = socket(AF_INET, SOCK_DGRAM, 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
import asyncio | |
import datetime | |
import os | |
import sys | |
import traceback | |
from typing import Tuple | |
from telethon.sync import TelegramClient, events | |
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
#include <stdio.h> | |
#include <stdbool.h> | |
int main() | |
{ | |
int t = 0xaabbccdd; | |
bool * p = (bool *)&t; | |
printf("%x\n", *p); | |
printf("%x\n", *(p+1)); | |
printf("%x\n", *(p+2)); | |
printf("%x\n", *(p+3)); |