This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
static byte[] UnicodeCodepointToUtf8(int codepoint) | |
{ | |
if (codepoint >= 0 && codepoint <= 127) | |
{ | |
return new byte[] { (byte)codepoint }; | |
} | |
else if (codepoint >= 128 && codepoint <= 2047) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Local Message &resp; | |
Local Message &req; | |
Local IBConnectorInfo &connectorInfo; | |
Local boolean &bRet; | |
Local string &sJson; | |
Local string &sUrl; | |
REM ** IB_GENERIC predates REST. IB_GENERIC_REST is an alternative in later tools releases; | |
&req = CreateMessage(Message.IB_GENERIC); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Minecraft Server deployment for Kubernetes clusters via Ansible's Helm module. | |
# | |
# The Helm module is part of the Kubernetes collection. Install it with: | |
# | |
# ansible-galaxy collection install community.kubernetes | |
# | |
# Then run the playbook: | |
# | |
# ansible-playbook main.yml | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install-Module posh-git -Scope CurrentUser -AllowPrerelease -Force | |
# Install-Module git-aliases -Scope CurrentUser -AllowClobber | |
# Install-Module PSReadLine -Scope CurrentUser -AllowPrerelease -Force | |
# Install-Module nvm -Scope CurrentUser | |
# Copy of the robby russell theme | |
function Prompt { | |
if ($?) { | |
Write-Host '➜' -NoNewline -ForegroundColor Green | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# shellcheck disable=2059,2154,2034,2155,2046,2086 | |
#=============================================================================== | |
# vim: softtabstop=2 shiftwidth=2 expandtab fenc=utf-8 spelllang=en ft=sh | |
#=============================================================================== | |
# | |
# FILE: shell_template.sh | |
# | |
# USAGE: ./shell_template.sh | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Environments": [ | |
{ | |
"Name": "MyEnvironment", | |
"Connection": { | |
"Provider": "Bootstrap", | |
"TNS": "DBNAME", | |
"TNS_ADMIN": "C:\\app\\oracle\\product\\12.2.0\\client_1\\network\\admin", | |
"Schema": "SYSADM", | |
"BootstrapParameters": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE PSVERSION SET VERSION = VERSION + 1 WHERE OBJECTTYPENAME IN ('UPM','SYS') | |
/ | |
UPDATE PSLOCK SET VERSION = VERSION + 1 WHERE OBJECTTYPENAME = 'UPM' | |
/ | |
DELETE FROM PSROLEUSER WHERE ROLEUSER = :1 AND ROLENAME LIKE '%%' | |
/ | |
UPDATE PSOPRDEFN SET VERSION = (SELECT VERSION | |
FROM PSVERSION | |
WHERE OBJECTTYPENAME = 'UPM' | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NB before running this you need to export an environment variable: export VAGRANT_EXPERIMENTAL='typed_triggers' | |
# see https://www.vagrantup.com/docs/triggers/configuration.html#trigger-types | |
# NB to see all triggers you need to edit your vagrant source code: | |
# sudo vim /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/v2/trigger.rb | |
# and add a @ui.info to see all trigger action stages, et all: | |
# NB see https://github.com/hashicorp/vagrant/blob/v2.2.4/lib/vagrant/plugin/v2/trigger.rb | |
# # Fires all triggers, if any are defined for the action and guest. Returns early | |
# # and logs a warning if the community plugin `vagrant-triggers` is installed | |
# # | |
# # @param [Symbol] action Vagrant command to fire trigger on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import TTS_UNITTEST:TestBase; | |
class Test extends TTS_UNITTEST:TestBase | |
method Test(); | |
method Run(); | |
method Setup(); | |
protected | |
private | |
instance string &someValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Set Heapsize in WebLogic setEnv.sh | |
class cu_ps_weblogic::ps_weblogic_setenv ( | |
$ps_config_home = hiera('ps_config_home'), | |
$pia_domain_name = hiera('pia_domain_name'), | |
$wl_heapsize = hiera('wl_heapsize'), | |
$wl_threadpool = hiera('wl_threadpool'), | |
){ | |
Ini_Subsetting { | |
path => "${ps_config_home}/webserv/${pia_domain_name}/bin/setEnv.sh", |
NewerOlder