Skip to content

Instantly share code, notes, and snippets.

View kohrongying's full-sized avatar
🎯
Focusing

Rong Ying kohrongying

🎯
Focusing
View GitHub Profile
@kohrongying
kohrongying / index.html
Created June 21, 2022 16:07
tailwind base config
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name='viewport' content='width=device-width'>
<title>{{ site.title }}</title>
<meta name='description' content="{{ site.description }}">
<meta name="author" content="{{ site.author }}">
<meta property="og:type" content="website" />
.columns {
padding-top: 5vw;
display: grid;
@include tablet {
grid-template-columns: 1fr 1fr;
grid-column-gap: 10px;
}
@include desktop {
grid-template-columns: 1fr 1fr;
@kohrongying
kohrongying / .gitconfig
Created July 16, 2021 06:49
Git config for multiple projects
[user]
name = rongying
email = work@work.com
[includeIf "gitdir:~/Documents/ry/"]
path = ~/Documents/ry/.gitconfig
@kohrongying
kohrongying / notes.md
Last active October 9, 2022 10:52
Frameworks
@kohrongying
kohrongying / general-cheatsheet.md
Last active April 24, 2020 04:34
General OS Commands

NETSTAT

sudo netstat -nap | grep nginx

netstat -an | grep :1935 | grep ESTABLISHED | wc -l ## Returns # connections

netstat -tulpn 

netstat -tulpn | grep :80
@kohrongying
kohrongying / imagick-cheatsheet.md
Last active March 5, 2020 02:28
Imagick Cheatsheet

IMAGES

PNG <=> JPG

convert name.png name.jpg
convert *.png *.jpg
convert name.png -resize 512x name.jpg
convert name.png -resize 1242x2208\! name.png ## force resize

PDF => JPG

(requires installation of ghostscript)

Keybase proof

I hereby claim:

  • I am kohrongying on github.
  • I am rongying (https://keybase.io/rongying) on keybase.
  • I have a public key ASDvON7m9jnJuULSx5D8XKXjPoiYp6Em8hruty-y_aQT6Ao

To claim this, I am signing this object:

@kohrongying
kohrongying / gulpfile.js
Last active September 21, 2018 13:41
Common gulpfile tasks
/*
npm install gulp --save-dev
npm install gulp-sass gulp-autoprefixer browser-sync gulp-nunjucks-render gulp-data gulp-image-resize gulp-clean-css gulp-htmlmin gulp-copy gulp-sitemap del --save-dev
npm init
*/
// Requiring Gulp and dependencies
const gulp = require('gulp'),
sass = require('gulp-sass'),
autoprefixer = require('gulp-autoprefixer'),