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 August 30, 2024 14:51 — 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
}
@phiberoptick
phiberoptick / pritunl-server-custom-ssl_manually
Last active July 18, 2024 18:39
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 August 29, 2024 11:49
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 November 17, 2024 16:44
set -e, -u, -o, -x pipefail explanation
@holmberd
holmberd / linux-kill-pts.md
Last active July 13, 2024 18:38
Kill tty/pts sessions in Linux

Kill user tty/pts sessions in Linux

Commands

  • w: show who is logged on and what they are doing
  • who: show who is logged on
  • tty: show current users pseudo terminal
  • ps -ft pts/1: get process id for the pseudo terminal
  • pkill: signal process based on name and other attributes