Skip to content

Instantly share code, notes, and snippets.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 7, 2024 09:32
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@blaz-blazer
blaz-blazer / class-rate-my-post-public.php
Last active May 7, 2024 09:32
Test Nonce LiteSpeed Cache
<?php
/**
* The public-specific functionality of the plugin.
*
* @link http://wordpress.org/plugins/rate-my-post/
* @since 2.0.0
*
* @package Rate_My_Post
* @subpackage Rate_My_Post/public
@santaklouse
santaklouse / CrossOver.sh
Last active May 7, 2024 09:28
unlimited CrossOver trial (MacOS)
#!/usr/bin/env bash
# checck if pidof exists
PIDOF="$(which pidof)"
# and if not - install it
(test "${PIDOF}" && test -f "${PIDOF}") || brew install pidof
# find app in default paths
CO_PWD=~/Applications/CrossOver.app/Contents/MacOS
test -d "${CO_PWD}" || CO_PWD=/Applications/CrossOver.app/Contents/MacOS
@Leedehai
Leedehai / ncore.sh
Created December 20, 2019 02:15
Find number of CPU cores on Linux/macOS
#!/usr/bin/env sh
# Copyright: see README and LICENSE under the project root directory.
# Author: @Leedehai
#
# File: ncore.sh
# ---------------------------
# This is a handy script to get CPU core number on Linux and Darwin (macOS).
# Logical CPU cores
@MBrassey
MBrassey / Match_Addresses.md
Last active May 7, 2024 09:26
Match Crypto Wallet Addresses (REGEX)

Match Crypto Wallet Addresses using Regular Expressions

The following regular expressions are crafted to match some commonly used cryptocurrency wallet address types. This document details the Regex components and pattern tests to match Ethereum, Bitcoin, Dash and Monero addresses.

🌀 Click the images below to view the tested patterns.

Ethereum (ETH)

/^0x[a-fA-F0-9]{40}$/g

@nerdyman
nerdyman / README.md
Last active May 7, 2024 09:25
Prompt a File Download and respect the Content Disposition Header Using Fetch and FileSaver

Prompt a File Download With the Content Disposition Header Using JavaScript

Set the Server Response Headers

Expose the Content-Disposition header using the Access-Control-Expose-Headers header and set the Content-Disposition header as you would usually.

Access-Control-Expose-Headers: Content-Disposition
Content-Disposition: attachment; filename="example-file.csv"
@raphaelvallat
raphaelvallat / bruteforce.py
Last active May 7, 2024 09:24
Password brute-force in Python
"""
Password brute-force algorithm.
List of most probable passwords and english names can be found, respectively, at:
- https://github.com/danielmiessler/SecLists/blob/master/Passwords/probable-v2-top12000.txt
- https://github.com/dominictarr/random-name/blob/master/middle-names.txt
Author: Raphael Vallat
Date: May 2018
Python 3
@whitingx
whitingx / meta-tags.md
Created October 5, 2012 16:41 — forked from kevinSuttle/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@ndeadly
ndeadly / sysmodules.txt
Last active May 7, 2024 09:19
switch sysmodules
/* Nintendo sysmodules */
0100000000000000 fs
0100000000000001 ldr
0100000000000002 ncm
0100000000000003 pm
0100000000000004 sm
0100000000000005 boot
0100000000000006 usb
0100000000000007 tma.stub/htc.stub
0100000000000008 boot2

การตั้งค่า Environment

เพื่อเริ่มพัฒนาด้วย Flutter เราจำเป็นต้องตั้งค่า Environment บนเครื่องคอมพิวเตอร์ ซึ่งรวมถึงการติดตั้งเครื่องมือที่จำเป็นและกำหนดค่าระบบ โดยทำตามขั้นตอนเหล่านี้:

การติดตั้ง Flutter SDK

1. การติดตั้ง Flutter SDK บนระบบปฏิบัติการ Windows

ความต้องการของระบบ