Skip to content

Instantly share code, notes, and snippets.

View Innei's full-sized avatar
πŸ’­
Coding with cloud.

Innei Innei

πŸ’­
Coding with cloud.
View GitHub Profile
@Innei
Innei / case-1.js
Last active March 7, 2022 10:42
test nodejs vm
function foo(){
return 'bar'
}
aom kubernetes-cli openjpeg \
archey lean-cli [email protected] \
aria2 libde265 osx-cpu-temp \
bash libev pandoc \
bat libevent pcre \
brotli libffi pcre2 \
c-ares libheif pkg-config \
ca-certificates libidn protobuf \
caddy liblqr proxychains-ng \
cloc libomp [email protected] \
@Innei
Innei / disable_spotlight.sh
Last active August 16, 2021 13:05
macOS optimize
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locate.plist
@Innei
Innei / convert.sh
Created May 10, 2021 10:43
convert png to webp
#!/bin/bash
for file in *; do
name="${file%.*}"
convert $file ${name}.webp
done
@Innei
Innei / index.html
Created September 6, 2020 12:15
CSS Mask Chrome Tab
<!--
* @Author: Innei
* @Date: 2020-09-06 19:04:12
* @LastEditTime: 2020-09-06 19:54:21
* @LastEditors: Innei
* @FilePath: /mask/index.html
* @Coding with Love
-->
<!DOCTYPE html>
<html lang="en">
@Innei
Innei / url-transition.js
Created August 13, 2020 13:01
Animate your url transitions
/*
* @Author: Innei
* @Date: 2020-08-13 19:55:12
* @LastEditTime: 2020-08-13 20:57:59
* @LastEditors: Innei
* @FilePath: /url-animation/index.js
* @Coding with Love
*/
// @ts-check
const allHref = [...document.querySelectorAll('a')]
log = console.log
list = document.querySelectorAll('.test-t > li')
questions = [];
[...list].map(ch => {
log(ch)
const title = ch.querySelector('.title').textContent.trim();
const answerBox = ch.querySelector('.answer-box')
let answers = []
if (answerBox) {
⏰ Stats for April 11th 2023
Productivity Pulse 10h 5m β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–β–‘β–‘β–‘ 62%
All Productive 5h 24m β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–Žβ–‘β–‘β–‘β–‘ 54%
All Distracting 2h 10m β–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 22%
Neutral 2h 30m β–ˆβ–ˆβ–β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 25%
@Innei
Innei / XtraFinderPreferences.plist
Last active May 3, 2021 11:03
XtraFinderPreferences
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>XtraFinder_ShowStatusBarIcon</key>
<false/>
<key>XtraFinder_XFArchiveActionPlugin</key>
<true/>
<key>XtraFinder_XFArchiveActionPlugin_RecentFolders</key>
<array>
@Innei
Innei / init.sh
Last active March 29, 2020 11:08
Homebrew init
xcode-select install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew tap thoughtbot/formulae \
github/gh \
mongodb/brew \
beeftornado/rmtree
brew install annie \
archey \
ccat \