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
#!/bin/bash | |
########################################## | |
# Copyrights 2020, Wizcas <chen@0x1c.dev> | |
# | |
# This script is under MIT license | |
########################################## | |
#----------- 辅助工具 ----------- | |
####### 颜色码 ######## |
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
declare module 'valine' { | |
export interface ValineOptions { | |
el: string | |
appId: string | |
appKey: string | |
placeholder?: string | |
path?: string | |
avatar?: '' | 'mp' | 'identicon' | 'monsterid' | 'wavatar' | 'retro' | 'robohash' | 'hide' | |
meta?: ('nick' | 'mail' | 'link')[] | |
pageSize?: number |
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
{ | |
"command" : "closeTab", | |
"keys" : | |
[ | |
"ctrl+shift+w" | |
] | |
}, | |
{ | |
"command": "closePane", | |
"keys": [ |
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
; How much height of screen size the terminal window takes. | |
VRatio := 0.8 | |
; The path to the Windows Terminal exe file. | |
WtPath = "%LOCALAPPDATA%\Microsoft\WindowsApps\wt.exe" | |
#SC29::ToggleTerminal() | |
ShowAndPositionTerminal() | |
{ | |
ScreenX := GetScreenLeft() |
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
# Example makefile with some dummy rules | |
.PHONY: all | |
## Make ALL the things; this includes: building the target, testing it, and | |
## deploying to server. | |
all: test deploy | |
.PHONY: build | |
# No documentation; target will be omitted from help display | |
build: |
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
# Create the apt proxy config file | |
sudo vi /etc/apt/apt.conf.d/proxy.conf | |
# Add http & https proxies into the file | |
Acquire { | |
HTTP::proxy "http://127.0.0.1:7890"; | |
HTTPS::proxy "http://127.0.0.1:7890"; | |
} |
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
# Create or update this file at: /etc/wsl.conf | |
# Enable extra metadata options by default | |
[automount] | |
enabled = true | |
root = / | |
options = "metadata,umask=22,fmask=11" | |
mountFsTab = false | |
# Enable DNS – even though these are turned on by default, we’ll specify here just to be explicit. | |
[network] |
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
#!/bin/bash | |
echo -e "\ | |
====================== | |
GIT PROXY SETUP TOOL | |
by wizcas | |
====================== | |
Prerequisites: |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
;=================================================================================================== | |
;====================================== Volume OSD ================================================= | |
;=================================================================================================== | |
; Author: Sjc1000 ( Uptone Software ) | |
; |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/wizcas/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
NewerOlder