Skip to content

Instantly share code, notes, and snippets.

View WeslyG's full-sized avatar
🎯
Focusing

Vladimir Lila WeslyG

🎯
Focusing
  • Yandex.Cloud
  • Yekaterinburg
View GitHub Profile
https://dns.cloudflare.com/dns-query
https://dns.google/dns-query
https://dns10.quad9.net:443/dns-query
[/api.themoviedb.org/]9.9.9.9
[/image.tmdb.org/]9.9.9.9
[/themoviedb.org/]9.9.9.9
FROM alpine:latest
RUN apk add --no-cache curl
# Создаем cron job для отправки запроса каждые 60 секунд
RUN echo "* * * * * curl -s https://uptime.mysite.ru/api/push/\${URL_VAR}?status=up&msg=OK&ping=" > /etc/crontabs/root
CMD ["crond", "-f"]
# docker build -t qwe .
// yarn add axios form-data
import { createReadStream } from "fs";
import { version } from "os";
import axios, { AxiosInstance } from "axios";
import FormData from "form-data";
interface SynologyAuthResponse {
data: {
sid: string;
};
*2ip.ru
*4pda.ru
*4pda.to
*addr.tools
*adguard-dns.com
*adguard-vpn.com
*adguard.com
*amazon.com
*bing.com
*books.google.com
mail.yandex.ru##.ns-view-left-box>:nth-of-type(2)
mail.yandex.ru##.mail-Layout-Content>:nth-of-type(2)
market.yandex.ru##[data-apiary-widget-name="@marketfront/HeaderPromo"]
market.yandex.ru##[data-apiary-widget-name="@marketfront/HeroBannerCarousel"]
market.yandex.ru##[data-apiary-widget-name="@marketfront/MadvHeaderPromo"]
youtube.com##[is-shorts]
docs.nestjs.com##div.banner
habr.com##.tm-stories-block
market.yandex.ru##[data-auto="banner"]
// for https://ui.gitlab-pages.kontur.host/docs/#/icons
const data = Array.from(document.querySelectorAll("[data-testid='mountNode']")[2].childNodes[2].children).filter(
i => i.localName === "div"
);
const result = [];
let idx = 0;
Array.from(data).forEach(a => {
Array.from(a.children[0].children).map(i => result.push([i.querySelector("p").innerText.replace(/[\u200b]/, "")]));
@WeslyG
WeslyG / touch.cmd
Created February 27, 2023 10:13
touch analog for windows
type nul >> %*
@WeslyG
WeslyG / cron_cleaner_job_k8s
Created February 16, 2023 16:00
cron job for clean local docker images
apiVersion: batch/v1
kind: CronJob
metadata:
name: cleaner
spec:
schedule: "0 8 * * *"
jobTemplate:
spec:
template:
spec:
@WeslyG
WeslyG / values.yaml
Last active February 16, 2023 19:02
Gitlab priveleged DID runner helm values
gitlabUrl : https://gitlab.com
runnerRegistrationToken: TOKEN
runners:
tags: "docker"
privileged: true
config: |
[[runners]]
[runners.kubernetes]
image = "ubuntu:20.04"
'use strict';
class Observable {
constructor(subscribe) {
this.observers = [];
if (subscribe) {
subscribe(this)
}
}