Skip to content

Instantly share code, notes, and snippets.

View yoyoys's full-sized avatar

Yoyo yoyoys

  • Top Cloud Technology
  • Taiwan
  • 18:08 (UTC +08:00)
View GitHub Profile
@yoyoys
yoyoys / 00_slide.md
Last active August 18, 2023 12:37
Dockerize vue resources

theme: seriph background: ./timelab-yx20mpDyr2I-unsplash.jpg class: text-center highlighter: shiki lineNumbers: false drawings: persist: false transition: slide-left title: Vite 前端容器化的心得分享

@yoyoys
yoyoys / machine.js
Created April 27, 2021 13:16
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'cartroom-view',
initial: '3D_VIEW',
context: {
retries: 0
},
states: {
'3D_VIEW': {
on: {
@yoyoys
yoyoys / screen.sh
Created June 10, 2019 05:53
ubuntu multiple screen scale
xrandr --fb 7680x2160 &&
xrandr --output eDP-1 --mode 3840x2160 --rate 60 --primary &&
xrandr --output DP-1 --mode 1920x1080 --scale-from 3840x2160 --panning 3840x2160+3840+0 --right-of eDP-1 &&
gsettings set org.gnome.desktop.interface scaling-factor 2
@yoyoys
yoyoys / .tmux.conf
Created May 9, 2019 07:05 — forked from fholgado/.tmux.conf
Show iTunes current track/song in tmux
# Custom status bar
# # Powerline symbols: ⮂ ⮃ ⮀ ⮁ ⭤
set -g status-left-length 32
set -g status-right-length 150
set -g status-interval 5
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold]⮀'
set -g status-right '#[fg=colour245]⮃ %R ⮃ %d %b #[fg=colour254,bg=colour234,nobold]#(~/Documents/AppleScripts/itunes-current-track-tmux.sh)⮂#[fg=colour16,bg=colour254,bold] #h '
# set -g status-right '#(~/Documents/AppleScripts/itunes-current-track-tmux.sh)'
set -g window-status-format "#[fg=white,bg=colour234] #I #W "
set -g window-status-current-format "#[fg=colour234,bg=colour39]⮀#[fg=colour16,g=colour39,noreverse,bold] #I ⮁ #W #[fg=colour39,bg=colour234,nobold]⮀"
@yoyoys
yoyoys / .zshrc
Last active October 2, 2018 07:53
# bat
export BAT_THEME="GitHub"
# zsh parameter completion for the dotnet CLI
_dotnet_zsh_complete()
{
local completions=("$(dotnet complete "$words")")
reply=( "${(ps:\n:)completions}" )
@yoyoys
yoyoys / github.css
Last active June 26, 2018 05:36 — forked from rwdaigle/styles.css
Marked's "Upstanding Citizen" stylesheet
/* https://github.com/sindresorhus/github-markdown-css */
@font-face {
font-family: octicons-link;
src: url(data:font/woff;charset=utf-8;base64,d09GRgABAAAAAAZwABAAAAAACFQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABEU0lHAAAGaAAAAAgAAAAIAAAAAUdTVUIAAAZcAAAACgAAAAoAAQAAT1MvMgAAAyQAAABJAAAAYFYEU3RjbWFwAAADcAAAAEUAAACAAJThvmN2dCAAAATkAAAABAAAAAQAAAAAZnBnbQAAA7gAAACyAAABCUM+8IhnYXNwAAAGTAAAABAAAAAQABoAI2dseWYAAAFsAAABPAAAAZwcEq9taGVhZAAAAsgAAAA0AAAANgh4a91oaGVhAAADCAAAABoAAAAkCA8DRGhtdHgAAAL8AAAADAAAAAwGAACfbG9jYQAAAsAAAAAIAAAACABiATBtYXhwAAACqAAAABgAAAAgAA8ASm5hbWUAAAToAAABQgAAAlXu73sOcG9zdAAABiwAAAAeAAAAME3QpOBwcmVwAAAEbAAAAHYAAAB/aFGpk3jaTY6xa8JAGMW/O62BDi0tJLYQincXEypYIiGJjSgHniQ6umTsUEyLm5BV6NDBP8Tpts6F0v+k/0an2i+itHDw3v2+9+DBKTzsJNnWJNTgHEy4BgG3EMI9DCEDOGEXzDADU5hBKMIgNPZqoD3SilVaXZCER3/I7AtxEJLtzzuZfI+VVkprxTlXShWKb3TBecG11rwoNlmmn1P2WYcJczl32etSpKnziC7lQyWe1smVPy/Lt7Kc+0vWY/gAgIIEqAN9we0pwKXreiMasxvabDQMM4riO+qxM2ogwDGOZTXxwxDiycQIcoYFBLj5K3EIaSctAq2kTYiw+ymhce7vwM9jSqO8JyVd5RH9gyTt2+J/yUmYlIR0s04n6+7Vm1ozezUeLEa
@yoyoys
yoyoys / .gitignore
Created February 9, 2018 08:44
My gitignore for asp.net mvc
################################################################################
# This .tfignore file was automatically created by Microsoft(R) Visual Studio.
#
# Local items matching filespecs in this file will not be added to version
# control. This file can be checked in to share exclusions with others.
#
# Wildcard characters are * and ?. Patterns are matched recursively unless the
# pattern is prefixed by the \ character.
#
# You can prepend a path to a pattern to make it more specific. If you do,
@yoyoys
yoyoys / .editorconfig
Created February 9, 2018 08:36
my editorconfig file for team
# http://EditorConfig.org
# base on https://github.com/RehanSaeed/EditorConfig/blob/master/.editorconfig
# https://github.com/dotnet/corefx/blob/368fdfd86ee3a3bf1bca2a6c339ee590f3d6505d/Documentation/coding-guidelines/coding-style.md
# This file is the top-most EditorConfig file
root = true
# All Files
[*]
@yoyoys
yoyoys / redirect.html
Created January 27, 2018 01:14
static html+js Redirect
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="5; url=http://example.com">
<title>Document</title>
</head>
<body>
<script>
window.location = 'http://example.com'
</script>
@yoyoys
yoyoys / Monaco for Powerline.otf
Created October 18, 2017 12:20 — forked from baopham/Monaco for Powerline.otf
Patched font Monaco for OSX Vim-Powerline