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 / .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 / 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 / gist:3421760
Created August 22, 2012 02:41 — forked from RiANOl/gist:1077723
AES128 encrypt/decrypt in PHP with base64
<?
function aes128Encrypt($key, $data) {
if(16 !== strlen($key)) $key = hash('MD5', $key, true);
$padding = 16 - (strlen($data) % 16);
$data .= str_repeat(chr($padding), $padding);
return base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $data, MCRYPT_MODE_CBC, str_repeat("\0", 16)));
}
function aes128Decrypt($key, $data) {
@resting
resting / ascii_art_buddha
Created August 1, 2016 14:10 — forked from 0xffan/ascii_art_buddha
ascii art - Buddha
_
_ooOoo_
o8888888o
88" . "88
(| -_- |)
O\ = /O
____/`---'\____
.' \\| |// `.
/ \\||| : |||// \
/ _||||| -:- |||||_ \
@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" />
@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