Skip to content

Instantly share code, notes, and snippets.

View howyay's full-sized avatar
🏠
Working from home

howyay

🏠
Working from home
  • Hunan, China & NY, US
View GitHub Profile
@sainnhe
sainnhe / gruvbox-material-alacritty.yml
Last active May 18, 2024 14:47
Gruvbox Material for Alacritty
# The definition of color schemes.
schemes:
gruvbox_material_hard_dark: &gruvbox_material_hard_dark
primary:
background: '0x1d2021'
foreground: '0xd4be98'
normal:
black: '0x32302f'
red: '0xea6962'
green: '0xa9b665'
{
"background" : "#1d2021",
"black" : "#665C54",
"blue" : "#7DAEA3",
"brightBlack" : "#928374",
"brightBlue" : "#7DAEA3",
"brightCyan" : "#89B482",
"brightGreen" : "#A9B665",
"brightPurple" : "#D3869B",
"brightRed" : "#EA6962",
@howyay
howyay / nvidia-xrun指南.md
Created March 11, 2019 03:13
安装及配置nvidia-xrun的指南

nvidia-xrun安装及配置指南

此选项允许在arch内临时运行独显,只建议linux单系统/用linux玩游戏使用

 pacman -S nvidia-dkms //如果安装了自定义内核需要安装dkms版nvidia驱动
 yay -S nvidia-xrun-git

重启

@Trumeet
Trumeet / UserHandleUtils.kt
Created March 9, 2019 02:46
Create UserHandle instance without using hidden APIs
object UserHandleUtils {
private fun createUserHandleWithUserID(userId: Int): UserHandle {
val parcel = Parcel.obtain()
// I bet that it won't change a lot
parcel.writeInt(userId)
val userHandle = UserHandle(parcel)
parcel.recycle()
return userHandle
}
}
@howyay
howyay / Setting up Postfix on Debian.md
Last active May 1, 2024 22:04
A guide to set up a Postfix + Dovecot IMAP server with complete spf, dkim and dmarc support.

An ultimate guide to Postfix + Dovecot IMAP server with complete SPF, DKIM and DMARC support and additional instructions for a multi-domain setup

In this guide, domain.com will be your root domain and mail.domain.com will be the hostname of your mail server

@joyrexus
joyrexus / README.md
Last active February 24, 2024 15:16
collapsible markdown

collapsible markdown?

CLICK ME

yes, even hidden code blocks!

print("hello world!")
/* Center of Gravity Finder
This script will find the center of gravity (centroid) of all closed paths in the selection set. It was built for a specific purpose so does not have much error
handling. For example, if you get errors it may be the result of the selection set containing compound shapes or a self-intersecting polygon.
References for the math:
http://paulbourke.net/geometry/polygonmesh/ (Calculating the area and centroid of a polygon)
https://en.wikipedia.org/wiki/Centroid#Centroid_of_polygon
Save this file with a jsx extension and place in your Illustrator/Presets/en_US/Scripts folder. You can then access it from the File > Scripts menu
title date tags
GCMForMojo 的部署与设置
2017-01-21 11:07:03 -0800
GCM
Android

2017年2月6日更新:完善部分内容,更新内容

2017年2月8日更新:发现自己脑抽少写了一步较为关键的步骤,赶紧补上orz,连带解决笔误