Skip to content

Instantly share code, notes, and snippets.

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)
@resting
resting / background_splash.xml
Last active November 2, 2020 13:57
Fullscreen android react native splashscreen
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@color/splashscreen_bg"/>
<item
android:drawable="@mipmap/splash_icon"
android:gravity="center|fill" />