start new:
tmux
start new with session name:
tmux new -s myname
param ( | |
[Parameter(Position = 0, Mandatory = $true)] | |
[ValidateScript({Test-Path $_ -PathType 'Leaf'})] | |
[string]$originalPemPath | |
) | |
$fileName = (Get-Item -Path $originalPemPath).BaseName | |
# Get the current user's home directory | |
$homeDirectory = [Environment]::GetFolderPath("UserProfile") |
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>parentGroupID</groupId> | |
<artifactId>parentArtifactID</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
</parent> |
#!/bin/bash | |
set echo off | |
echo "Remove cmake if exist" | |
sudo apt remove -y --purge --auto-remove cmake | |
echo "Install required packaged" | |
sudo apt update -y | |
sudo apt install -y software-properties-common lsb-release |
#!/bin/bash | |
sudo apt update | |
sudo apt install -y ruby-full wget | |
# This is for us-east-2 only | |
# use this snippet for other region | |
# wget https://aws-codedeploy-<REGION>.s3.<REGION>.amazonaws.com/latest/install | |
wget https://aws-codedeploy-us-east-2.s3.us-east-2.amazonaws.com/latest/install | |
chmod +x ./install | |
sudo ./install auto > ./codeDeployAgentInstallation.log |
// Arbitrary precision base conversion by Daniel Gehriger <gehriger@linkcad.com> | |
// from: https://stackoverflow.com/a/4741402/11217661 | |
#include "BaseConverter.h" | |
#include <stdexcept> | |
#include <algorithm> | |
const char* BaseConverter::binarySet_ = "01"; | |
const char* BaseConverter::decimalSet_ = "0123456789"; |
const SCHEMA_EXAMPLE = { | |
"$schema": "https://json-schema.org/draft/2020-12/schema", | |
"$id": "https://example.com/product.schema.json", | |
"title": "Product", | |
"description": "A product from Acme's catalog", | |
"type": "object", | |
"properties": { | |
"productId": { | |
"description": "The unique identifier for a product", | |
"type": "integer" |
REGEX remove blank lines:
FROM: http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/remove_blank_lines.html
FIND:
^(?:[\t ]*(?:\r?\n|\r))+
Download and Install Emscripten
/home/user
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
echo 'source "/home/user/emsdk/emsdk_env.sh"' >> $HOME/.bash_profile
#include <cctype> | |
#include <algorithm> | |
#include <string> | |
inline bool isBlank(const std::string& s) | |
{ | |
return std::all_of(s.cbegin(),s.cend(),[](char c) { return std::isspace(c); }); | |
} |