Skip to content

Instantly share code, notes, and snippets.

# Elasticsearch optimization
vm.max_map_count=262144
# Redis optimization
vm.overcommit_memory=1
net.core.somaxconn=65535
# Have a larger connection range available
net.ipv4.ip_local_port_range=1024 65000
parted ->>
>>resizepart 3
902 pvdisplay
903 echo 1 > /sys/block/sda/device/rescan
904 lsblk
905 history
906 lvextend -l +100%FREE /dev/centos_s03/root
907 lsblk
908 pvresize /dev/sda3
cscript //nologo slmgr.vbs /upk >nul
cscript //nologo slmgr.vbs /cpky >nul
wmic os | findstr /I "enterprise" >nul
cscript //nologo slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43
cscript //nologo slmgr.vbs /skms kms9.MSGuides.com
cscript //nologo slmgr.vbs /ato
@duong1989
duong1989 / pihole-macvlan-synology-docker.txt
Created August 21, 2020 09:37 — forked from xirixiz/pihole-macvlan-synology-docker.txt
Add a PiHole instance on a macvlan enabled Docker network (Synology eth0 example)
#!/bin/bash
# NAS IP: 192.168.1.10 in this example
# DHCP scope reservation for macvlan: 192.168.1.210/28 (Details below)
## Network: 192.168.1.210/28
## HostMin: 192.168.1.211
## HostMax: 192.168.1.224
## Hosts/Net: 14
# Create a Synology macvlan0 bridge network attached to the physical eth0, and add the ip range scope (sudo)
cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16"
cscript ospp.vbs /inslic:"..\root\Licenses16\client-issuance-bridge-office.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\client-issuance-root-bridge-test.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\client-issuance-root.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\client-issuance-stil.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\client-issuance-ul-oob.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\client-issuance-ul.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\VisioProVL_KMS_Client-ppd.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\VisioProVL_KMS_Client-ul-oob.xrm-ms"
cscript ospp.vbs /inslic:"..\root\Licenses16\VisioProVL_KMS_Client-ul.xrm-ms"
@duong1989
duong1989 / A64
Created July 30, 2018 13:31
A64
#
# This file is part of PIE, an instruction encoder / decoder generator:
# https://github.com/beehive-lab/pie
#
# Copyright 2014-2016 Amanieu d'Antras <amanieu at gmail dot com>
# Copyright 2015-2016 Guillermo Callaghan <guillermocallaghan at hotmail dot com>
# Copyright 2016-2017 Cosmin Gorgovan <cosmin at linux-geek dot org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.