Skip to content

Instantly share code, notes, and snippets.

View suxiaogang's full-sized avatar
🙄
busy writing bugs

Sam Su suxiaogang

🙄
busy writing bugs
  • NULL
  • UTM Zone 49
View GitHub Profile
@suxiaogang
suxiaogang / frp.md
Last active July 27, 2020 04:37
群晖安装frp / 远程连接 / 本地和服务端配置

群晖开启SSH

“控制面板” -> ”终端机和SNMP“,启用SSH

下载frp

https://github.com/fatedier/frp/releases/
@suxiaogang
suxiaogang / README.md
Created June 25, 2020 05:03 — forked from chuyik/README.md
macOS 给 Git(Github) 设置代理(HTTP/SSH)
@suxiaogang
suxiaogang / hover-expand.html
Created July 17, 2019 07:40
simple css hover to expand
<!DOCTYPE html>
<html>
<head>
<style>
div {
width: 100px;
height: 100px;
background: red;
-webkit-transition: width 2s, height 4s; /* For Safari 3.1 to 6.0 */
transition: height 0.4s;
8vEkax4cqHDwxs4
@suxiaogang
suxiaogang / DeskMini-Hackintosh.md
Last active December 18, 2020 07:57
ASRock DeskMini 110/COM Hackintosh

1、刷上新版(7.0)的bios,修改这几项:

Vt-d 关闭
IOAPIC 24-119 Entries 关闭
IO串口 关闭(x东的基本都是串口版本,一定要关闭,其他版本没这个问题)
安全启动模式 关闭
USB XHCI Handoff 打开

2、系统推荐使用macOSSierra,结合妖板支持OS X系统的bios,安装macOS当是非常简单惬意的事,但一时贪图i5 7500漂亮的功耗性能价格比,入了这货,所以弄得复杂了不少…

@suxiaogang
suxiaogang / media query.css
Created November 16, 2018 02:50
media query.css
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
}
/*
##Device = Laptops, Desktops
@suxiaogang
suxiaogang / sdk.txt
Created June 1, 2018 02:55
android sdk and level
.--------------------.---------------.---------------------.
| Code name | Version | API level |
:--------------------+---------------+---------------------:
| (no code name) | 1.0 | API level 1 |
:--------------------+---------------+---------------------:
| (no code name) | 1.1 | API level 2 |
:--------------------+---------------+---------------------:
| Cupcake | 1.5 | API level 3, NDK 1 |
:--------------------+---------------+---------------------:
| Donut | 1.6 | API level 4, NDK 2 |
@suxiaogang
suxiaogang / gist:68b08e485432d796bb10335a449b7b1c
Created March 30, 2018 08:32 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
git branch -m old_branch new_branch # Rename branch locally
git push origin :old_branch # Delete the old branch
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote
@suxiaogang
suxiaogang / youtube-dl.md
Last active June 27, 2019 07:17
youtube-dl.md

youtube-dl --proxy "socks5://127.0.0.1/" https://www.youtube.com/watch\?v\=tniqRDvQ4bs

youtube-dl --no-check-certificate --proxy 127.0.0.1:1086 https://www.youtube.com/watch\?v\=JSLpG_spOBM

youtube-dl -x --audio-format mp3 https://www.youtube.com/watch\?v\=tniqRDvQ4bs

查看视频所有类型,只看不下载 youtube-dl -F [url]

youtube-dl -F http://www.youtube.com/watch?v=BlXaGWbFVKY

@suxiaogang
suxiaogang / TaskController.java
Created September 12, 2017 02:21
TaskController.java
/*
* Copyright (c) 2016, All Rights Reserved.
*/
package com.mojinshi.rest.controller.task;
import com.mojinshi.commons.annotation.Permit;
import com.mojinshi.commons.constant.Permission;
import com.mojinshi.commons.domain.comment.Comment;
import com.mojinshi.commons.dto.common.PagingList;