Skip to content

Instantly share code, notes, and snippets.

View y56's full-sized avatar
🌏
(* ̄▽ ̄)/‧☆*"`'*-.,_,.-*'`"*-.,_☆

Eugene Wang y56

🌏
(* ̄▽ ̄)/‧☆*"`'*-.,_,.-*'`"*-.,_☆
View GitHub Profile
@y56
y56 / .gitconfig
Created July 11, 2023 15:45
git config
[user]
email = y56@example.com
name = Eugene Wang
[color]
ui = auto
[core]
pager = less -FMRiX
excludesfile = /Users/y56/.gitignore
[push]
default = simple
@y56
y56 / gist:ac764127a0c3c59073daf7b1e5450858
Created December 1, 2022 17:52
ubunru 18.04 sound/mic device not working; restart sound devie driver
3047 systemctl --user stop pulseaudio.socket
3048 systemctl --user stop pulseaudio.socket
3049 systemctl --user stop pulseaudio.service
3050 pulseaudio -v
4791 pulseaudio -k && sudo alsa force-reload
4858 pulseaudio -k && sudo alsa force-reload
32472 pulseaudio --check
32473 pulseaudio -D
32474 pulseaudio -k
32475 pulseaudio -D
@y56
y56 / ubuntu hotkey
Created March 7, 2022 01:34
ubuntu hotkey
/bin/bash -c "sleep 0.2 && date -Iminutes | cut -c1-16 | tr : - > /home/y56/.y56-for-date-hotkey && cat /home/y56/.y56-for-date-hotkey | tr -d '\n' | xclip -selection clipboard && xdotool key Control_L+v"
@y56
y56 / commitment-to-commit-messages.txt
Last active February 10, 2022 07:20
try to follow/make rules for commit messages
chore: add Oyster build script
docs: explain hat wobble
feat: add beta sequence
fix: remove broken confirmation message
refactor: share logic between 4d3d3d3 and flarhgunnstow
style: convert tabs to spaces
test: ensure Tayne retains clothing
build:
ci:
========================================================
this.wordle = this.wordle || {}, this.wordle.bundle = function(e) {
"use strict";
function a(e) {
return (a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
return typeof e
} : function(e) {
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
})(e)
}
# Welcome to...
#
# `hmy+. ://:
# .mMMMMMNho:` NMMm
# :NMMMMMMMMMMMds/.` NMMm :ss:
# +NMMMMMMMMMMMMMMMMmy+ NMMm -MMMM- ---
# `oMMMMMMMMMMMMMMMMMMMMo NMMm /ss/ :MMM+
# `yMMMMMMMMNshmNMMMMMMMN` NMMm /MMM+
# .dMMMMMMMMm/hmhssydmMMM+ NMMm `/yhhy. shhy ohmMMMmhhhh. ./ydmmmdho-
# omMMMMMMMd/mMMMMMmhsosy` NMMm .omMMmo. mMMN odmMMMmdddd. omMNdsoshNMNy`
vim errror message
====
Error detected while processing BufNewFile Autocommands for "*.js": E20: Mark not set
====
ref:
https://stackoverflow.com/questions/45416839/error-detected-while-processing-bufread-auto-commands-for-py
====
### Drop the whitespace in .vimrc
V V
au BufNewFile,BufRead *.js,*.html,*.css
RuntimeError: Warning: Unable to detect a .tern-project file in the hierarchy before /home/y56/XXXXXXXX/test.js and no global
====
https://github.com/ain/.vim/issues/46
====
here is the solution that worked for me.
Apparently, it is not getting created automatically.
So, create the file manually.
touch ~/.tern-project
then place this
```
Cannot find module: 'react-notifications/lib/notifications.css'. Make sure this package is installed.
==>
npm install react-notifications
console.log("greeting");