For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)
#!/bin/bash | |
# Sometimes you need to move your existing git repository | |
# to a new remote repository (/new remote origin). | |
# Here are a simple and quick steps that does exactly this. | |
# | |
# Let's assume we call "old repo" the repository you wish | |
# to move, and "new repo" the one you wish to move to. | |
# | |
### Step 1. Make sure you have a local copy of all "old repo" | |
### branches and tags. |
function git_checkout_match_generator(text, first, last) | |
found_matches = false; | |
if rl_state.line_buffer:find("^git checkout ") then | |
has_start_branch = not rl_state.line_buffer:find("^git checkout[ ]*$") | |
for line in io.popen("git branch 2>nul"):lines() do | |
local m = line:match("[%* ] (.+)$") | |
if m then | |
if not has_start_branch then | |
clink.add_match(m) |
#Ubuntu - Adding CA Certs
To add new Certificate Authority (CA) certs:
Create a directory (ie extra) in the ca-certs to hold the new certs
sudo mkdir /usr/share/ca-certificates/extra
Copy or move the certs into the new directory
using System; | |
using System.Threading; | |
static class Program { | |
static void Main() { | |
Console.Write("Performing some task... "); | |
using (var progress = new ProgressBar()) { | |
for (int i = 0; i <= 100; i++) { | |
progress.Report((double) i / 100); |
#!/bin/sh | |
# https://wiert.me/2021/04/30/vmware-esxi-console-viewing-all-vms-suspending-and-waking-them-up-part-5/ | |
RUNNING=0 | |
vmids=`vim-cmd vmsvc/getallvms | sed -n -E -e "s/^([[:digit:]]+)\s+((\S.+\S)?)\s+(\[\S+\])\s+(.+\.vmx)\s+(\S+)\s+(vmx-[[:digit:]]+)\s*?((\S.+)?)$/\1/p"` | |
for vmid in ${vmids} ; do | |
# echo "Probing VM with id: $vmid." | |
powerState=`vim-cmd vmsvc/power.getstate ${vmid} | sed '1d'` | |
name=`vim-cmd vmsvc/get.config ${vmid} | sed -n -E -e '/\(vim.vm.ConfigInfo\) \{/,/files = \(vim.vm.FileInfo\) \{/ s/^ +name = "(.*)",.*?/\1/p'` | |
vmPathName=`vim-cmd vmsvc/get.config ${vmid} | sed -n -E -e '/files = \(vim.vm.FileInfo\) \{/,/tools = \(vim.vm.ToolsConfigInfo\) \{/ s/^ +vmPathName = "(.*)",.*?/\1/p'` | |
# echo "VM with id ${vmid} has power state ${powerState} (name = ${name}; vmPathName = ${vmPathName})." |
#!/usr/bin/env python3 | |
# vim: fileencoding=utf-8 tw=100 expandtab ts=4 sw=4 : | |
import sys | |
import subprocess | |
from email.parser import Parser | |
from email.utils import parseaddr, formataddr | |
# --- |
ffmpeg -live_start_index -99999 -i 'https://….m3u8' -c copy something.ts
There aren't many tutorials about this, the only tutorials I've found were about passing through entire PCIe cards to VMs, or refered to old ESXI versions (below 6.5) that used a more comprehensive desktop client instead of the web app. In v6.5, the web app was introduced and the desktop client was deprecated. You used to be able to setup RDMs in the desktop client, but with the introduction of the web console, this is no longer the case. This tutorial shows you how to pass SATA HDDs to the virtual machine on VMWare ESXI 6.5. This tutorial is partially based on VMWare's own KB and the now deprecated Forza IT blog post.
There is now an option while editing your VM's settings to add a New raw disk
when you click `Add ha