Skip to content

Instantly share code, notes, and snippets.

SQL Server 2017
----------------
Enterprise Core - 6GPYM-VHN83-PHDM2-Q9T2R-KBV83
Developer - 22222-00000-00000-00000-00000
Enterprise - TDKQD-PKV44-PJT4N-TCJG2-3YJ6B
Standard - PHDV4-3VJWD-N7JVP-FGPKY-XBV89
Web - WV79P-7K6YG-T7QFN-M3WHF-37BXC
https://www.teamos-hkrg.com/index.php?threads/microsoft-sql-server-english-2017-rtm-teamos.42103/
@b4tman
b4tman / _ubuntu-autoinstall-1c.user-data.yml
Last active March 18, 2025 12:05
ubuntu-server 22.04 + 1c + postgres + hasp + apache + nginx +(...) | autoinstall script (for test vm)
#cloud-config
autoinstall:
version: 1
interactive-sections:
- network
- storage
locale: "ru_RU.UTF-8"
keyboard:
layout: us,ru
toggle: alt_shift_toggle
@judero01col
judero01col / Service KMS
Last active April 28, 2025 05:41
Volume License Activation Key Service - KMS
## Find Available Target Editions
DISM.exe /Online /Get-TargetEditions
## Convert Server Standard 2019 Evaluation to Server Standard 2019
DISM /online /Set-Edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula
## How To Activate
slmgr /ipk XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
slmgr /skms [server]:[port]
slmgr /ato
@sirbusby
sirbusby / zfs
Last active April 26, 2023 22:14
journalctl -b
# zfs_settings
Настройки zfs
arcstat - посмотреть статистику кэша:
nano /etc/modprobe.d/zfs.conf # настраиваем zfs:
Вносим в zfs.conf
options zfs zfs_arc_max=8589934592 # ограничиваем кэш
@izikeros
izikeros / convert_ssh2_key_to_openssh.sh
Last active July 17, 2024 22:38
[convert ssh2 public key to openssh] Convert ssh2 public key to openssh format and add to authorized_keys #ssh #key
# if received key in format:
#—- BEGIN SSH2 PUBLIC KEY —-
#
#Comment: "rsa-key-20160402"
#AAAAB3NzaC1yc2EAAAABJQAAAgEAiL0jjDdFqK/kYThqKt7THrjABTPWvXmB3URI
#
# and you want to add it to authorized keys
# from: https://tutorialinux.com/convert-ssh2-openssh/
ssh-keygen -i -f coworker.pub >> ~/.ssh/authorized_keys
@petervanderdoes
petervanderdoes / zfs_health.sh
Last active March 18, 2025 23:23
ZFS Health Check Script
#! /usr/local/bin/bash
#
# Calomel.org
# https://calomel.org/zfs_health_check_script.html
# FreeBSD 9.1 ZFS Health Check script
# zfs_health.sh @ Version 0.15
# Check health of ZFS volumes and drives. On any faults send email. In FreeBSD
# 10 there is supposed to be a ZFSd daemon to monitor the health of the ZFS
# pools. For now, in FreeBSD 9, we will make our own checks and run this script
@joeyhipolito
joeyhipolito / apache nginx www permission fix
Created January 18, 2015 20:41
Fixing permissions in /var/www or /usr/share/nginx/www
Repeatedly, you'll be fixing permissions, ownership in these directories `/var/www` or `/usr/share/nginx/www` whenever you are deploying your websites.
Here are the commands to save you some time
**apache**
sudo add-user $(whoami) www-data && \
sudo chown -R www-data:www-data /var/www && \
sudo chmod -R g+rw /var/www; find /var/www -type d -print0 | sudo xargs -0 chmod g+s
@sirbrillig
sirbrillig / pgsql_backup.sh
Last active November 15, 2024 14:57 — forked from dangerousbeans/pgsql_backup.sh
Postgresql daily backup script.
#!/bin/bash
#
# Backup a Postgresql database into a daily file.
#
BACKUP_DIR=/pg_backup
DAYS_TO_KEEP=14
FILE_SUFFIX=_pg_backup.sql
DATABASE=
USER=postgres