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
[settings] | |
os=Windows | |
os_build=Windows | |
arch=x86_64 | |
arch_build=x86_64 | |
compiler=Visual Studio | |
compiler.version=16 | |
build_type=Debug | |
[options] | |
[build_requires] |
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
#user nobody; | |
worker_processes 1; | |
error_log logs/error.log; | |
#error_log logs/error.log notice; | |
#error_log logs/error.log info; | |
#pid logs/nginx.pid; |
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
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 | |
http://maven.apache.org/xsd/settings-1.0.0.xsd"> | |
<localRepository/> | |
<interactiveMode/> | |
<usePluginRegistry/> | |
<offline/> | |
<pluginGroups/> | |
<servers/> |
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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Example", | |
"type": "node", | |
"request": "launch", | |
"runtimeExecutable": "node", | |
"runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], |
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
# This is a sample Python script. | |
# Press Shift+F10 to execute it or replace it with your code. | |
# Press Double Shift to search everywhere for classes, files, tool windows, actions, and settings. | |
from pynput import mouse | |
from psutil import * | |
import time | |
from datetime import datetime | |
class mouseTimer(object): |
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
# CUSTOM MIRRORS | |
export HOST_IP=$(grep -oP '(?<=nameserver\ ).*' /etc/resolv.conf) | |
export PORXY_ADDR="http://$HOST_IP:1080" | |
# PROXY FOR APT | |
function proxy_apt() { | |
# make sure apt.conf existed | |
sudo touch /etc/apt/apt.conf | |
sudo sed -i '/^Acquire::https\?::Proxy/d' /etc/apt/apt.conf |
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(FindWindowsSDK) | |
if (NOT WINDOWSSDK_FOUND) | |
message("Windows SDK not found") | |
endif() | |
get_windowssdk_include_dirs(${WINDOWSSDK_LATEST_DIR} WINDOWSSDK_INCLUDE_DIRS) | |
# message(${WINDOWSSDK_INCLUDE_DIRS}) | |
target_include_directories(${TARGET} INTERFACE ${WINDOWSSDK_INCLUDE_DIRS}) | |
set_target_properties(${TARGET} PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE /SAFESEH:NO") |
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
const path = require('path'); | |
const fs = require('fs'); | |
const shell = require('shelljs'); | |
const rimraf = require('rimraf'); | |
// https://github.com/shelljs/shelljs/issues/469 | |
process.env.PATH += (path.delimiter + path.join(process.cwd(), 'node_modules', '.bin')); | |
const PROTO_DIR = path.join(__dirname, '../proto'); | |
const OUT_DIR = path.join(__dirname, '../src/proto'); |
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
package main | |
import ( | |
stdSQL "database/sql" | |
"encoding/json" | |
"fmt" | |
"strings" | |
"github.com/pkg/errors" |
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
package main | |
import "fmt" | |
type DefaultSQLite3OffsetsAdapter struct { | |
// GenerateMessagesOffsetsTableName may be used to override how the messages/offsets table name is generated. | |
GenerateMessagesOffsetsTableName func(topic string) string | |
} | |
func (a DefaultSQLite3OffsetsAdapter) SchemaInitializingQueries(topic string) []string { |