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
const fetch = require('node-fetch'); | |
const https = require('https'); | |
const httpsAgent = new https.Agent({ | |
rejectUnauthorized: false, | |
}); | |
const response = await fetch(url, { | |
method: 'POST', | |
headers: headers, |
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
check supported protocols on LDAP: "nmap -p 636 --script +ssl-enum-ciphers ad1.dcloud.cisco.com" | |
info from https://community.progress.com/s/article/How-to-Enable-TLS-1-1-TLS-1-2-on-Windows-Server-2008-R2 | |
create new keys "TLS 1.1" and "TLS 1.2" under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols | |
create new keys "Client" and "Server" under both new TLS keys | |
create DWORD value "DisabledByDefault" = 0 under each Client and Server folder (so 4 times) | |
create DWORD value "Enabled" = 1 under each Client and Server folder (so 4 times) |
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
function sleep (milliseconds) { | |
return new Promise(resolve => setTimeout(resolve, milliseconds)) | |
} |
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
sudo update-alternatives --config editor |
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
javascript:!function(){if("getGamepads"in navigator){var t=function(){var e=navigator.getGamepads()[0];if(e){var a=e.axes[0],i=e.axes[1];Math.sqrt(a*a+i*i)<.1&&(a=i=0),xm=100*a,ym=100*i,setAcceleration(e.buttons[0].value);var n=mc.getContext("2d");n.save(),n.beginPath(),n.strokeStyle=e.buttons[0].value?"white":"lightGreen",n.arc(xm+mc.width/2,ym+mc.height/2,8,0,2*Math.PI),n.stroke(),n.restore()}window.requestAnimationFrame(t)};t()}}(); void(0); |
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
# go to demo-ui project | |
cd /opt/dcloud/demo-ui | |
# reset permissions to administrator user | |
chown -R administrator:administrator * | |
chown -R administrator:administrator .git/* | |
# go to demo-api project | |
cd ../demo-api | |
# reset permissions to administrator user | |
chown -R administrator:administrator * | |
chown -R administrator:administrator .git/* |
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
!Loop | |
Assistant.Macros.IfAction|1|1|70 | |
Assistant.Macros.HotKeyAction|0|Restock Agent-1 | |
Assistant.Macros.AbsoluteTargetAction|0|0|1149617594|930|2341|18|3651 | |
Assistant.Macros.PauseAction|00:00:03.5000000 | |
Assistant.Macros.DoubleClickTypeAction|4031|True | |
Assistant.Macros.WaitForGumpAction|949095101|False|300 | |
Assistant.Macros.GumpResponseAction|9|0|0 | |
Assistant.Macros.PauseAction|00:00:05.1500000 | |
Assistant.Macros.HotKeyAction|0|Organizer Agent-1 |
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
# as root | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
apt update | |
apt install yarn |
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
<a href="data:text/plain;charset=utf-8,encodeURIComponent(text)" download="all.zip"> | |
function downloadText (text) { | |
// create anchor | |
element = document.createElement('a') | |
// set the href to URI-encoded plaintext data | |
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text)) | |
// set the filename the browser will use as default when starting download | |
element.setAttribute('download', 'myfile.txt') | |
// keep the element hidden when placed into body | |
element.style.display = 'none' |