Skip to content

Instantly share code, notes, and snippets.

@resting
resting / web.config
Created July 5, 2024 08:33
web.config react router
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="React Routes" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />

Oh my zsh.

Oh My Zsh

Install ZSH.

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh

Install Oh my ZSH.

@resting
resting / userscript.js
Created September 5, 2023 23:09
Userscript Udemy
// ==UserScript==
// @name Udemy TOC to LogSeq
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Formats Udemy's TOC to markdown format
// @author You
// @match https://*.udemy.com/course/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=udemy.com
// @grant none
// ==/UserScript==
@resting
resting / userscript.js
Created September 5, 2023 23:07
Userscript Pluralsight
// ==UserScript==
// @name Pluralsight TOC to Logseq
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Formats Pluralsight's TOC to markdown format
// @author You
// @match https://app.pluralsight.com/library/courses/*/table-of-contents
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net
// @grant none
@resting
resting / custom.css
Last active June 19, 2023 04:02
Quick tabs chrome extension custom css
body {
width: 450px;
background: #272727;
color: #dedede;
font-size: 13px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}
/* input box */
/* Dark theme */
body {
width: 450px;
background: #272727;
color: #dedede;
font-size: 13px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !important;
}
@resting
resting / .ideavimrc
Last active June 19, 2023 05:04
.ideavimrc
let mapleader=','
set surround
set easymotion
nmap <Leader> <Plug>(easymotion-prefix)
nmap <space> <Plug>(easymotion-jumptoanywhere)
runtime macros/matchit.vim
@resting
resting / .ideavimrc
Created October 18, 2020 17:00
.ideavimrc
let mapleader=','
set surround
set easymotion
nmap <space> <Plug>(easymotion-jumptoanywhere)
nmap <s> <Plug>(easymotion-sn)
nmap <m> <Plug>(easymotion-bd-jk)
runtime macros/matchit.vim
using (var transaction = UnitOfWorkManager.Begin(TransactionScopeOption.RequiresNew))
{
var _itemSendSMS = _feoSendSMSRepository.GetAll().Where(x => x.Staff_ID == item.StaffId && x.CreationTime>= DateTime.UtcNow.AddMonths(-3)).FirstOrDefault();
if (_itemSendSMS == null)
{
var _feoSendSMS = new FeoSendSMS()
{
MemberID = item.MemberId,
Staff_ID = item.StaffId,
MobileNumber = item.MobileNumber,
@resting
resting / .ideavimrc
Last active July 26, 2020 07:44
.ideavimrc
set easymotion
set surround
let mapleader=","
nmap <space> <Plug>(easymotion-jumptoanywhere)
nmap m <Plug>(easymotion-bd-jk)
nmap s <Plug>(easymotion-sn)