Skip to content

Instantly share code, notes, and snippets.

View kostyrev's full-sized avatar
🇫🇷
Вы что, хотите чтобы было как в Париже?

Aleksandr Kostyrev kostyrev

🇫🇷
Вы что, хотите чтобы было как в Париже?
View GitHub Profile
@kiler129
kiler129 / README.md
Last active October 20, 2025 21:16 — forked from seeker2921/ilo-console.sh
Run iLO remote console from shell

iLO Remote Console

This small script lets you start iLO Java-based console from shell.

But why not HTML5?

  • iLO 2/3 doesn't have HTML5 console
  • Mounting local (from the client computer) ISOs is PAINFULLY slow via HTML5 client

TL;DR

If you just start it, it will ask you for everything:

@phumberdroz
phumberdroz / docker.tf
Created August 19, 2020 09:44
Terraform populate Docker Credentials in all Namespaces
variable "docker_password" {}
data "kubernetes_all_namespaces" "allns" {}
resource "kubernetes_secret" "docker_secrets" {
for_each = toset(data.kubernetes_all_namespaces.allns.namespaces)
metadata {
name = "gitlab-cloud"
namespace = each.value
}
@cetinajero
cetinajero / ddrescue.md
Last active October 21, 2025 03:46
Guide for using Ddrescue to recover data

Guide for using Ddrescue to recover data

Start command:

ddrescue -d /dev/sda output.img output.mapfile

NOTE: If direct disc access is not available in your system, try raw devices.

@phiberoptick
phiberoptick / pritunl-server-custom-ssl_manually
Last active October 26, 2025 05:08
Use custom SSL cert in Pritunl Server Community
Ignore all that craziness below. These can be set from the cli with the "pritunl" command.
The commands below can be used to get/set the values of the cert, key, port and if the :80 -> "app.server_port" redirect is active.
# Get current SSL server cert:
pritunl get app.server_cert
# Get current SSL server key:
pritunl get app.server_key
@darkk
darkk / 00-qazca.pem
Last active June 3, 2024 02:06
facebook cert signed by Qaznet (Kaznet) certificate
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
3d:95:7f:ca:1f:8c:0f:c8:69:2c:01:99:4e:b5:52:31:03:5b:9d:f1
Signature Algorithm: sha256WithRSAEncryption
Issuer: C=KZ, CN=Qaznet Trust Network
Validity
Not Before: Feb 2 05:41:00 2016 GMT
Not After : Feb 2 05:41:00 2046 GMT
@rufoa
rufoa / Jenkinsfile
Created May 13, 2019 02:29
Jenkins [skip ci] implementation for multi-branch declarative pipeline
// change 'agent' lines as appropriate
pipeline {
agent none
stages {
stage('Run CI?') {
agent any
steps {
@jsdevtom
jsdevtom / frontend-ws-connection.ts
Last active February 8, 2025 05:24
kubernetes-ingress websockets with nodejs
export const ws = webSocket<WebsocketMessage>(`wss://${location.hostname}:${location.protocol === 'https:' ? 443 : 80}/ws/`);
export const wsObserver = ws
.pipe(
retryWhen(errors =>
errors.pipe(
delay(1000)
)
)
);
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active December 11, 2025 10:41
set -e, -u, -o, -x pipefail explanation