A list of tutorials on how to upload & get direct mp3 link on some websites.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Rober19 version | |
###### | |
# Win10 Optimization Script With Extra GPD Win Tweaks | |
# Adapted version of https://github.com/Disassembler0/Win10-Initial-Setup-Script by Disassembler <[email protected]> | |
# Author: BlackDragonBE | |
# Version: v2.2.1 (2017-12-02) | |
# Copied from https://www.reddit.com/r/gpdwin/comments/6ipa6c/windows_10_optimization_script_for_gpd_win/ | |
########## | |
# As a workaround for disabled script execution, run this command (without #) in an elevated PowerShell windows first and choose "all" if you're asked where to apply this: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This number should be, at maximum, the number of CPU cores on your system. | |
# (since nginx doesn't benefit from more than one worker per CPU.) | |
worker_processes 8; | |
# Determines how many clients will be served by each worker process. | |
# (Max clients = worker_connections * worker_processes) | |
# "Max clients" is also limited by the number of socket connections available on the system (~64k) | |
# run ss -s and u'll see a timewait param | |
# The reason for TIMED_WAIT is to handle the case of packets arriving after the socket is closed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# WSL2 network port forwarding script v1 | |
# for enable script, 'Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope CurrentUser' in Powershell, | |
# for delete exist rules and ports use 'delete' as parameter, for show ports use 'list' as parameter. | |
# written by Daehyuk Ahn, Aug-1-2020 | |
# Display all portproxy information | |
If ($Args[0] -eq "list") { | |
netsh interface portproxy show v4tov4; | |
exit; | |
} |
For example your latest image with semantic versioning looks like this:
${DOCKER_HUB_ORG}/${DOCKER_HUB_REPO}:v1.20.0
Example provided above will do the folowing:
- Generate token using your github username and password.
- Get list of all tags from repository.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Variables | |
// Color for <code> and <pre> | |
$lighterGray: lighten(black, 25%); | |
// Background color for <code> | |
$lightGray: lighten(lightgray, 10%); | |
// Border color for <pre> and <code> | |
$darkGray: darken(lightgray, 3%); | |
// Background color of YouTube | |
$darkerGray: darken(gray, 35%); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data_dir = "/var/lib/vector" | |
# ------------------ SYSLOG message pipe ------------------ # | |
[sources.syslog_pipe_in] | |
type = "socket" | |
mode = "udp" | |
address = "127.0.0.1:3333" | |
[transforms.syslog_pipe_parsing] |
Usage: node strace_log_analyzer.js strace.log /tmp
This scripts parses input file that must contain strace log from a single thread. Then script calculates:
- execution time of read/write syscall for each file descriptor and summarize execution time for each 1 sec period,
- calulates amount of read/write syscalls for each file descriptor
strace log must be collcted with -t -T -f
options.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function New-PSWebServer { | |
<# | |
.Synopsis | |
Creates a web server that will invoke PowerShell code based on routes being asked for by the client. | |
.Description | |
New-PSWebServer creates a web server. The web server is composed of a schema that defines the client's requests to routes where PowerShell code is executed. | |
Under the covers, New-PSWebServer uses the HTTPListener .NET class to execute powershell code as requested, retrieves the results and sends data back through the httplistener web server framework. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.opentable.db.postgres.embedded.* | |
import org.flywaydb.core.* | |
import org.jooq.codegen.* | |
tasks.named("compileKotlin") { | |
doFirst { | |
//create embedded postgresql | |
EmbeddedPostgres.builder().setPort(5400).start().use { | |
//migrate embedded posrtgresql | |
Flyway.configure() |
NewerOlder