- Plug in the Yubikey 5 Nano and fire up the terminal.
gpg2 --edit-card
admin
key-attr
- each "RSA" and "4096"
generate Make off-card backup of encryption key? n
- Type in the USER default PIN: 123456
<?php | |
function clearDirectoryRecursive($dir) { | |
if ($handle = opendir($dir)) { | |
while (false !== ($entry = readdir($handle))) { | |
if ($entry == '.' || $entry == '..') | |
continue; | |
echo $entry."\n"; | |
if (is_dir($dir.'/'.$entry)) { |
#!/usr/bin/php | |
<?php | |
chdir(__DIR__); | |
function se($str) { | |
$str = preg_replace('/[\\x0-\\x1F]/', '', $str); | |
$str = preg_replace('/\\x7F/', '', $str); | |
$str = str_replace("'", '\'"\'"\'', $str); | |
return "'".$str."'"; |
#!/usr/bin/php | |
<?php | |
function tempName($ext='') { | |
$chars = 'qwertzuiopasdfghjklyxcvbnmQWERTZUIOPASDFGHJKLYXCVBNM1234567890'; | |
$cl = strlen($chars); | |
$l = 30; | |
do { |
Vue.component("chosen-select",{ | |
props: ['value', 'multiple'], | |
template:'<select :multiple="multiple"><slot></slot></select>', | |
mounted() { | |
var that = this | |
$(this.$el) | |
.val(this.value) | |
.chosen({ width: "100%" }) | |
.on("change", function(e) { | |
that.$emit('input', $(that.$el).val()) |
Disable NetworkManager
systemctl disable --now NetworkManager
Check if NetworkManager is disabled (all of them)
systemctl list-unit-files | grep NetworkManager
Install network-scripts
yum install network-scripts -y
If dns resolving fails: Setup some nameserver and try install again
# Add your real IPv4 subnet settings here | |
IPV4=X.X.X.X | |
CIDR=X.X.X.X/28 | |
GATEWAY=X.X.X.X | |
DNS=1.1.1.1 | |
# Add your real Interface settings here | |
INTERFACE_NAME="enp2s0" | |
VLAN_ID=4000 | |
VLAN_INTERFACE_NAME="$INTERFACE_NAME.$VLAN_ID" |
// remove service | |
($service = Get-WmiObject -Class Win32_Service -Filter "Name='Windows Exporter'") -and ($service.Delete()) | |
// add service | |
New-Service -Name "Windows Exporter" -BinaryPathName '"C:\Program Files (x86)\WindowsExporter\windows_exporter.exe" --web.listen-address ":9200" --collectors.enabled "ad,adcs,adfs,cache,cpu,cpu_info,cs,container,dfsr,dhcp,dns,exchange,fsrmquota,hyperv,iis,logical_disk,logon,memory,msmq,mssql,netframework_clrexceptions,netframework_clrinterop,netframework_clrjit,netframework_clrloading,netframework_clrlocksandthreads,netframework_clrmemory,netframework_clrremoting,netframework_clrsecurity,net,os,process,remote_fx,service,smtp,system,tcp,time,thermalzone,terminal_services,textfile,vmware"' |
--- | |
version: "3.0" | |
services: | |
web: | |
image: some-image | |
volumes: | |
- cifs_share:/mnt/cifs_share | |
volumes: | |
cifs_share: | |
driver: local |
#!/bin/bash | |
FOO="foooo" | |
BAR="baaaaar" | |
BAZ="baaaazzz" | |
function help() { | |
echo "A command-line interface for foo, bar and baz." | |
echo | |
echo "Example Usage:" |