Skip to content

Instantly share code, notes, and snippets.

View SSR+TLS+caddy
# 快速部署
# 1 - 必要环境以及BBR
sudo -i
apt -y install curl && apt -y install wget
wget -N --no-check-certificate "https://github.com/ylx2016/Linux-NetSpeed/releases/download/sh/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
# 2 - SSR+TLS 一键脚本
sudo -i
@sundowndev
sundowndev / GoogleDorking.md
Last active Apr 19, 2021
Google dork cheatsheet
View GoogleDorking.md

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
View PropertyLockService.js
var PropertyLock = (() => {
let locked = false;
let timeout = 0;
const store = PropertiesService.getScriptProperties();
const propertyName = "locked";
const triggerName = "PropertyLock.releaseLock";
@serithemage
serithemage / AWSCertifiedDeveloperUnofficialStudyGuide.md
Last active Apr 19, 2021
AWS 공인 개발자 - 어소시에이트 수험 가이드
View AWSCertifiedDeveloperUnofficialStudyGuide.md
@lorey
lorey / selenium_xhr_requests_via_performance_logging.py
Last active Apr 19, 2021
Access Chrome's network tab (e.g. XHR requests) with Selenium
View selenium_xhr_requests_via_performance_logging.py
#
# This small example shows you how to access JS-based requests via Selenium
# Like this, one can access raw data for scraping,
# for example on many JS-intensive/React-based websites
#
from time import sleep
from selenium import webdriver
from selenium.webdriver import DesiredCapabilities
@mjm918
mjm918 / client.py
Created Dec 15, 2018
Python socket programming AES CBC encryption
View client.py
import socket
import os
import threading
import hashlib
from Crypto import Random
import Crypto.Cipher.AES as AES
from Crypto.PublicKey import RSA
import signal
from lazyme.string import color_print
@JohnGiorgi
JohnGiorgi / using_compute_canada_resources.md
Last active Apr 19, 2021
Helpful tips/tricks for using Compute Canada resources
View using_compute_canada_resources.md

Using Compute Canada Resources

Basics

You ssh into the systems using:

ssh <username>@<login node>

E.g., to login to Niagra for user example:

View effective_modern_cmake.md

Effective Modern CMake

Getting Started

For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.

After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft

@ihoneymon
ihoneymon / how-to-write-by-markdown.md
Last active Apr 19, 2021
마크다운(Markdown) 사용법
View how-to-write-by-markdown.md

[공통] 마크다운 markdown 작성법

1. 마크다운에 관하여

1.1. 마크다운이란?

Markdown은 텍스트 기반의 마크업언어로 2004년 존그루버에 의해 만들어졌으며 쉽게 쓰고 읽을 수 있으며 HTML로 변환이 가능하다. 특수기호와 문자를 이용한 매우 간단한 구조의 문법을 사용하여 웹에서도 보다 빠르게 컨텐츠를 작성하고 보다 직관적으로 인식할 수 있다. 마크다운이 최근 각광받기 시작한 이유는 깃헙(https://github.com) 덕분이다. 깃헙의 저장소Repository에 관한 정보를 기록하는 README.md는 깃헙을 사용하는 사람이라면 누구나 가장 먼저 접하게 되는 마크다운 문서였다. 마크다운을 통해서 설치방법, 소스코드 설명, 이슈 등을 간단하게 기록하고 가독성을 높일 수 있다는 강점이 부각되면서 점점 여러 곳으로 퍼져가게 된다.

1.2. 마크다운의 장-단점

1.2.1. 장점

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active Apr 19, 2021
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)
View iterm2-solarized.md

Default

Default

Powerlevel10k

Powerlevel10k