Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View kvnxiao's full-sized avatar
🐵

Kevin Xiao kvnxiao

🐵
View GitHub Profile
@kvnxiao
kvnxiao / taboo_scraper.py
Last active March 14, 2018 11:11
taboo_scraper.py
#!/usr/bin/env python
from collections import namedtuple
from bs4 import BeautifulSoup
import asyncio
import aiohttp
import tqdm
import json
import sys
import argparse
@kvnxiao
kvnxiao / taboozle_merged.json
Created March 14, 2018 22:50
taboozle_merged.json
[
{
"word": "heart",
"others": [
"blood",
"organ",
"valentine",
"love",
"beat"
]
@kvnxiao
kvnxiao / karabiner.json
Created July 31, 2018 23:18
karabiner-elements settings
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@kvnxiao
kvnxiao / colortest.sh
Created December 14, 2018 07:25
colortest.sh
#!/usr/bin/env bash
T='•••'
echo -e "\n def 40m 41m 42m 43m 44m 45m 46m 47m";
for FGs in ' m' ' 1m' ' 30m' '1;30m' ' 31m' '1;31m' ' 32m' \
'1;32m' ' 33m' '1;33m' ' 34m' '1;34m' ' 35m' '1;35m' \
' 36m' '1;36m' ' 37m' '1;37m';
[app]
launch_at_startup = yes
hotkey_run = Alt+Space
[gui]
hide_on_focus_lost = yes
theme = Tribal
[theme/Tribal]
opacity_back = 100
@kvnxiao
kvnxiao / arch-linux-install-xps-15-9550.sh
Last active May 14, 2019 22:23
arch-linux-install-xps-15-9550-2019-02-18
# Arch Linux wiki for Dell XPS 15 9550
# https://wiki.archlinux.org/index.php/Dell_XPS_15_(9550)
### INTRODUCTION
# A simple dual-boot UEFI installation for Arch Linux without any file system encryption.
# Assumes that Windows has already been installed beforehand
# Follows the official installation guide: (https://wiki.archlinux.org/index.php/installation_guide)
# Uses rEFInd boot manager as the UEFI boot manager (https://wiki.archlinux.org/index.php/REFInd)
### 1. DOWNLOAD TO USB
@kvnxiao
kvnxiao / profiles.json
Created March 8, 2020 05:32
Windows Terminal Settings
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"profiles":
Set-PSReadlineOption -BellStyle None
Set-Alias -Name vim -Value nvim
Set-Alias -Name open -Value explorer.exe
Set-Alias -Name curl -Value C:\Users\kvnxiao\scoop\apps\curl\current\bin\curl.exe
Set-Alias -Name rm -Value rm.exe
Set-Alias -Name mkdir -Value mkdir.exe
Invoke-Expression (&starship init powershell)
@kvnxiao
kvnxiao / install-docker-enterprise-engine-windows-10.ps1
Last active April 12, 2020 03:20
install-docker-enterprise-engine-windows-10.ps1
# Install Windows feature containers
$restartNeeded = $false
if (!(Get-WindowsOptionalFeature -FeatureName containers -Online).State -eq 'Enabled') {
$restartNeeded = (Enable-WindowsOptionalFeature -FeatureName containers -Online).RestartNeeded
}
if (Get-Service docker -ErrorAction SilentlyContinue)
{
Stop-Service docker
}
@kvnxiao
kvnxiao / awesome-kotlin-sorted-by-stars-2019-02-24.md
Last active April 21, 2020 00:53
awesome-kotlin-sorted-by-stars-2019-02-24.md

Awesome Kotlin (https://kotlin.link)

A curated list of awesome Kotlin related stuff inspired by awesome-java. :octocat:

List of Awesome List Badge Travis CI Build Status Badge Awesome Kotlin Badge