Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

ryanlid ryanlid

🎯
Focusing
View GitHub Profile
@dcb9
dcb9 / clash-for-asus-merlin-ac-5300.md
Last active Sep 25, 2022
ASUS Merlin AC-5300 使用 Clash 搭建透明代理
View clash-for-asus-merlin-ac-5300.md
View mongodb_cheat_sheet.md

MongoDB Cheat Sheet

Show All Databases

show dbs

Show Current Database

View mysql_cheat_sheet.md

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@lirongfei123
lirongfei123 / 备份
Last active Nov 21, 2019
mysql #mysql
View 备份
一、备份常用操作基本命令
1、备份命令mysqldump格式
格式:mysqldump -h主机名 -P端口 -u用户名 -p密码 –database 数据库名 > 文件名.sql
2、备份MySQL数据库为带删除表的格式
备份MySQL数据库为带删除表的格式,能够让该备份覆盖已有数据库而不需要手动删除原有数据库。
mysqldump --add-drop-table -uusername -ppassword -database databasename > backupfile.sql
@bradtraversy
bradtraversy / webdev_online_resources.md
Last active Nov 24, 2022
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md
@gaearon
gaearon / minification.md
Last active Nov 25, 2022
How to Set Up Minification
View minification.md

In production, it is recommended to minify any JavaScript code that is included with your application. Minification can help your website load several times faster, especially as the size of your JavaScript source code grows.

Here's one way to set it up:

  1. Install Node.js
  2. Run npm init -y in your project folder (don't skip this step!)
  3. Run npm install terser

Now, to minify a file called like_button.js, run in the terminal:

@nealnote
nealnote / multiofflinetask.js
Last active Sep 2, 2017
multi offline task add for pan.baidu.com
View multiofflinetask.js
/**
* multi offline task add for pan.baidu.com
* 执行代码前必须 点一下 **离线下载** 按钮
**/
(function () {
var R = require('function-widget-1:offlineDownload/util/newOfflineDialog.js');
var r = R.obtain();
var timer = 600;
var add = function (url) {
r.setVisible(1);
@ryanlid
ryanlid / .editorconfig
Last active May 2, 2017
EditorConfig是一套用于统一代码格式的解决方案
View .editorconfig
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
View Nginx-Config-Pitfalls.md

原文

新老用户都可能遇到陷阱。下面我们列出频繁出现的问题,以及如何解决。 在 Freenode IRC #nginx 频道,我们经常看到这些问题。

[TOC]

关于本指南

最常见的是有人试图从其他指南拷贝配置片段。并非所有的指南是错误的,但绝大部分是有问题的。

@PurpleBooth
PurpleBooth / README-Template.md
Last active Nov 26, 2022
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites