Skip to content

Instantly share code, notes, and snippets.

View luolongfei's full-sized avatar
🍅
洛阳亲友如相问,一片冰心在玉壶。

luolongfei

🍅
洛阳亲友如相问,一片冰心在玉壶。
View GitHub Profile
@sohamkamani
sohamkamani / rsa.go
Created April 12, 2020 17:31
Example of RSA encryption, decryption, signing, and verification in Go
package main
import (
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/sha256"
"encoding/base64"
"fmt"
)
@leober-ramos33
leober-ramos33 / youtube-block-ads.txt
Last active July 8, 2024 15:46
Block Ads in YouTube (uBlock Origin)
youtube.com##.ad-container
youtube.com###player-ads
youtube.com##.ytp-ad-overlay-container
youtube.com#@#.overlay-ads
youtube.com#@#.ddb
youtube.com###feed-pyv-container
youtube.com###feedmodule-PRO
youtube.com###homepage-chrome-side-promo
youtube.com###merch-shelf
youtube.com###pla-shelf
@nickrouty
nickrouty / rd-class-text-extraction.php
Created May 9, 2018 04:14
Class for extraction the text from doc, docx, xlsx, pptx and wrapper for 3rd party pdf to text library.
<?php
/**
* Class RD_Text_Extraction
*
* Example usage:
*
* $response = RD_Text_Extraction::convert_to_text($path_to_valid_file);
*
* For PDF text extraction, this class requires the Smalot\PdfParser\Parser class.
@danharper
danharper / CatchAllOptionsRequestsProvider.php
Last active April 20, 2024 01:53
Lumen with CORS and OPTIONS requests
<?php namespace App\Providers;
use Illuminate\Support\ServiceProvider;
/**
* If the incoming request is an OPTIONS request
* we will register a handler for the requested route
*/
class CatchAllOptionsRequestsProvider extends ServiceProvider {
@zross
zross / california_nad83_zones_min.geojson
Last active July 27, 2023 22:24
Using geojson with Google Maps API
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@guweigang
guweigang / git_toturial
Last active July 23, 2024 08:39
git命令大全
git init # 初始化本地git仓库(创建新仓库)
git config --global user.name "xxx" # 配置用户名
git config --global user.email "xxx@xxx.com" # 配置邮件
git config --global color.ui true # git status等命令自动着色
git config --global color.status auto
git config --global color.diff auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global --unset http.proxy # remove proxy configuration on git
git clone git+ssh://git@192.168.53.168/VT.git # clone远程仓库