Skip to content

Instantly share code, notes, and snippets.

View JasonLiuLiuLiuLiu's full-sized avatar
😪
熬夜有黑眼圈....

JasonLiu JasonLiuLiuLiuLiu

😪
熬夜有黑眼圈....
View GitHub Profile
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
@eternnoir
eternnoir / gist:9777420
Last active May 3, 2022 05:25
Ftp Client With C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net;
namespace Lib.Common
{
public class FtpClient
@czl026
czl026 / setip.bat
Created October 18, 2012 14:39 — forked from ninehills/setip.bat
Windows IP 快速切换脚本
@echo off&color 1E&title IP地址快速切换器
echo ┌────────────────────────────┐
echo | |
echo | 切换网络环境,请输入当前所在位置 │
echo | |
echo └────────────────────────────┘
:choice
set choice=
set /p choice=【实验室无线】请选择1,【实验室有线】请选择2,【宿舍无线】请选择3,【宿舍有线】请选择4:[1,2,3,4]?
@nesquena
nesquena / nginx
Created October 19, 2010 02:42
/etc/init.d/nginx startup script
#! /bin/sh
### BEGIN INIT INFO
# Provides: nginx
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: nginx init.d dash script for Ubuntu <=9.10.
# Description: nginx init.d dash script for Ubuntu <=9.10.
### END INIT INFO
@ssokolow
ssokolow / pagination_example.sql
Created December 23, 2009 13:02
Reasonably efficient pagination without OFFSET (SQLite version)
-- Reasonably efficient pagination without OFFSET
-- SQLite version (Adapted from MS SQL syntax)
-- Source: http://www.phpbuilder.com/board/showpost.php?p=10376515&postcount=6
SELECT foo, bar, baz, quux FROM table
WHERE oid NOT IN ( SELECT oid FROM table
ORDER BY title ASC LIMIT 50 )
ORDER BY title ASC LIMIT 10