Skip to content

Instantly share code, notes, and snippets.

View prakapenka's full-sized avatar
👻
coffee cowboy

Dzmitry Prakapenka prakapenka

👻
coffee cowboy
  • localhost
  • Berlin
  • 18:24 (UTC +02:00)
View GitHub Profile
wget -O- https://www.pgadmin.org/static/packages_pgadmin_org.pub |\
gpg --dearmor |\
sudo tee /usr/share/keyrings/packages_pgadmin_org.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/packages_pgadmin_org.gpg] https://ftp.postgresql.org/pub/pgadmin/pgadmin4/apt/$(lsb_release -cs) pgadmin4 main" |\
sudo tee /etc/apt/sources.list.d/pgadmin4.list
@prakapenka
prakapenka / gist:ebdd06621204c647bd84a21c8ca0dab8
Created October 10, 2018 08:30
костыль для загрузки конфигов из одного места
(META-INF/spring.factories)
org.springframework.context.ApplicationListener=mock.config.LocationsSettingConfigFileApplicationListener
...
import org.springframework.boot.SpringApplication;
import org.springframework.boot.context.config.ConfigFileApplicationListener;
import org.springframework.boot.context.event.ApplicationEnvironmentPreparedEvent;
import org.springframework.context.ApplicationListener;
(function(f) {
if (typeof exports === "object" && typeof module !== "undefined") {
module.exports = f()
} else if (typeof define === "function" && define.amd) {
define([], f)
} else {
var g;
if (typeof window !== "undefined") {
g = window
} else if (typeof global !== "undefined") {
function cbust($val,$arr_1)
{
$res = 1;
for ($i=1;$i<=count($arr_1); $i++)
{
if ($val&$res){$arr_check[$i]=true;}else{$arr_check[$i]=false;}
$res = $res << 1;
}
foreach ($arr_1 as $k => $v)