Skip to content

Instantly share code, notes, and snippets.

View sendya's full-sized avatar
🎯
Focusing

言肆 sendya

🎯
Focusing
View GitHub Profile
@sendya
sendya / config.fish
Created December 28, 2022 11:17 — forked from TallonRain/config.fish
Set up Fish Shell to use gpg-agent as the SSH agent for Yubikeys and other smart cards
# Add these contents to ~/.config/fish/config.fish
# If using Brew, config.fish is located in /usr/local/Cellar/fish/[version]/etc/fish/
# Generally recommend using the installer from https://fishshell.com instead of brew
# to avoid version updates overwriting the config file
# Start or re-use a gpg-agent.
gpgconf --launch gpg-agent
# Ensure that GPG Agent is used as the SSH agent
set -e SSH_AUTH_SOCK
@sendya
sendya / LC_COLORS.md
Created October 18, 2022 03:44 — forked from thomd/LC_COLORS.md
LSCOLORS & LS_COLORS

alternatively use: http://geoff.greer.fm/lscolors/

LSCOLORS

The value of this variable describes what color to use for which attribute when colors are enabled with CLICOLOR. This string is a concatenation of pairs of the format fb, where f is the foreground color and b is the background color.

The color designators are as follows:

a black

@sendya
sendya / cc.fish
Created October 8, 2022 13:16
fish functions
function cc
set -e http_proxy
set -e https_proxy
echo -e "unset proxy"
end
@sendya
sendya / ArchLinux_Kernel4.13_enable_BBR.sh
Last active June 15, 2022 03:22
ArchLinux Kernel4.13 enable BBR
$ su
$ echo "net.core.default_qdisc=fq" >> /etc/sysctl.d/bbr.conf
$ echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.d/bbr.conf
$ sysctl -p
$ sysctl net.ipv4.tcp_available_congestion_control
$ sysctl net.ipv4.tcp_congestion_control
$ reboot
{
"window.zoomLevel": 1,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.formatOnType": false,
"prettier.singleQuote": true,
"prettier.semi": false,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
@sendya
sendya / use.js
Last active July 5, 2019 06:28
/src/components/use.js
/* eslint-disable */
/**
* 该文件是为了按需加载,剔除掉了一些不需要的框架组建和样式表。
* 减少了编译支持库包大小
*/
import Vue from 'vue'
import {
LocaleProvider,
Layout,
Input,
import java.io.*;
import java.nio.MappedByteBuffer;
import java.nio.channels.FileChannel;
import java.nio.file.Paths;
import java.nio.file.StandardOpenOption;
public class Main {
private static int length = 0x2FFFFFFF;//1G
private abstract static class Tester {
package io.tooko.talk.entity;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigInteger;
import java.time.LocalDateTime;
package io.tooko.talk.web.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.lang.reflect.Field;
import java.util.*;
var fs = require("fs");
// 动态路由
var loadRoute = {
path : './routes/',
app : null,
// 遍历目录
listDir : function(dir){
var fileList = fs.readdirSync(dir,'utf-8');
for(var i=0;i<fileList.length;i++) {
var stat = fs.lstatSync(dir + fileList[i]);