Spring Boot + Docker Multistage = Smaller container size
Use can use prebuild version by using:
$ docker run -d -p 8080:8080 saboteurkid/smaller-spring:1.0
Wait for docker to pull and up. Then jump to step #6
<?php | |
$channels = array( | |
"UCgpy7yxv_7JbR26McdS1uQA", | |
"UCrHZJ6fddxeK2wwPIh5-O4Q", | |
"UCYUI-AaHyYslLLWAss4EiAA", | |
); | |
$res = 5; | |
$key = 'YOUR_KEY_HERE'; |
Spring Boot + Docker Multistage = Smaller container size
Use can use prebuild version by using:
$ docker run -d -p 8080:8080 saboteurkid/smaller-spring:1.0
Wait for docker to pull and up. Then jump to step #6
// LICENSE | |
// | |
// This software is dual-licensed to the public domain and under the following | |
// license: you are granted a perpetual, irrevocable license to copy, modify, | |
// publish, and distribute this file as you see fit. | |
using System; | |
using System.Collections.Generic; | |
public static class FuzzyMatcher |
### | |
### | |
### UPDATE: For Win 11, I recommend using this tool in place of this script: | |
### https://christitus.com/windows-tool/ | |
### https://github.com/ChrisTitusTech/winutil | |
### https://www.youtube.com/watch?v=6UQZ5oQg8XA | |
### iwr -useb https://christitus.com/win | iex | |
### | |
### |
/** | |
* Converts an RGB color value to HSL. Conversion formula | |
* adapted from http://en.wikipedia.org/wiki/HSL_color_space. | |
* Assumes r, g, and b are contained in the set [0, 255] and | |
* returns h, s, and l in the set [0, 1]. | |
* | |
* @param Number r The red color value | |
* @param Number g The green color value | |
* @param Number b The blue color value | |
* @return Array The HSL representation |
/* | |
* This work (Modern Encryption of a String C#, by James Tuley), | |
* identified by James Tuley, is free of known copyright restrictions. | |
* https://gist.github.com/4336842 | |
* http://creativecommons.org/publicdomain/mark/1.0/ | |
*/ | |
using System; | |
using System.IO; | |
using System.Text; |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |