Skip to content

Instantly share code, notes, and snippets.

@on195594
on195594 / config
Created August 11, 2021 09:17 — forked from pksunkara/config
Sample of git config file (Example .gitconfig) (Place them in $XDG_CONFIG_HOME/git)
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
pager = delta
[sendemail]
smtpencryption = tls
@on195594
on195594 / git清除用户名和密码.md
Created September 2, 2021 09:38
git清除用户名和密码

git清除用户名和密码用管理员的身份运行git bash。 然后输入命令: git config --system --unset credential.helper

@on195594
on195594 / upload.sh
Created September 24, 2021 03:01 — forked from rishabh9/upload.sh
Bulk upload your local maven repository to your private Nexus repository
#!/bin/sh
# Reference: http://roboojack.blogspot.in/2014/12/bulk-upload-your-local-maven-artifacts.html
if [ "$#" -ne 3 ] || ! [ -d "$1" ]; then
echo "Usage:"
echo " bash run.sh <repoRootFolder> <repositoryId> <repositoryUrl>"
echo ""
echo ""
echo " Where..."
@on195594
on195594 / nginx-openssl-build.sh
Created November 1, 2021 06:06 — forked from lukespragg/nginx-openssl-build.sh
NGINX and OpenSSL build and installation script
#!/bin/bash
## TODO:
# Figure out how to get nginx file-aio module working (incompatible?)
## Get and install tools and dependencies
sudo apt-get -y install build-essential zlib1g-dev libpcre3 libpcre3-dev libbz2-dev
## Get installed OpenSSL version
# Use `whereis openssl` to check if installed first
@on195594
on195594 / Find Google-IP
Created July 31, 2016 01:25
如何查找Google的IP地址段
一般查找域名对应的IP,可以用这个命令 nslookup <域名>,但这样找,返回的ip比较少,今天看到一条命令,可以批量查找Google当前的IP范围。
命令及返回的结果如下:
# nslookup -q=TXT _netblocks.google.com 8.8.8.8
Server: 8.8.8.8
Address: 8.8.8.8#53
Non-authoritative answer:
_netblocks.google.com text = "v=spf1 ip4:64.18.0.0/20 ip4:64.233.160.0/19 ip4:66.102.0.0/20 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:74.125.0.0/16 ip4:108.177.8.0/21 ip4:173.194.0.0/16 ip4:207.126.144.0/20 ip4:209.85.128.0/17 ip4:216.58.192.0/19 ip4:216.239.32.0/19 ~all"
@on195594
on195594 / Google搜索技巧
Last active August 29, 2023 07:59
Google常用搜索技巧
Google是个人最常用的搜索引擎,没有之一,这里简单整理记录一下常用的一些Google搜索技巧,用好了,在搜索时能起到事半功倍的效果。
1、或操作
一般搜索时,如果输入多个词,默认是与的关系,如输入词1和词2,即搜索同时包含词1和词2的网页,如果想搜包含词1 或包含词2 或同时都包含的网页,可以使用大写的 OR(不能用小写)。
举例:电影《肖申克的救赎》在台湾的翻译是《刺激1995》,如搜索关于这个电影的相关内容,搜索条件可以输入 肖申克的救赎 OR 刺激1995,可以把相关的内容一次全搜索出来。
2、减号