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:
This was mirrored from the snapshot of earthserver.com available on archive.org | |
-------------------------------------------------------------------------------- | |
Setting up a modern C++ development environment on Linux with Clang and Emacs | |
I am an independent game developer and this is my personal wiki. | |
Please feel free to email hello@earthserver.com, and to follow @Earthserver | |
(Redirected from Setting up a C++11 development environment on Linux with Clang and Emacs) |
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 |
1. Add Site | |
appcmd add site /name:MySite /bindings:http://*:80 /physicalpath:”d:\MySitePath” | |
2. Add App Pool | |
appcmd add apppool /name:MyAppPool /managedRuntimeVersion:v4.0 (e.g. targeting .NET 4.0) | |
3. Set App Pool Credential | |
appcmd set config /section:applicationPools /[name='MyAppPool'].processModel.identityType:SpecificUser /[name='MyAppPool'].processModel.userName:MyDomain\MyAccount /[name='MyAppPool'].processModel.password:MyAccountPassword | |
4.Add App | |
appcmd add app /site.name:"MySite" /path:/MyApp /physicalpath:"d:\MySitePath\MyApp" | |
5. Assign/Change App Pool to an App |
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
choco feature enable -n=allowGlobalConfirmation | |
choco install googlechrome | |
choco install firefox | |
choco install brave | |
choco install greenshot | |
choco install microsoft-teams | |
choco install python | |
choco install octopustools | |
choco install foxitreader |
///////////////////////////////////////////////////////// | |
// 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:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" | |
cinst -y --ignore-checksums` | |
choco feature enable -n=allowGlobalConfirmation | |
choco install googlechrome | |
choco install firefox | |
choco install brave | |
choco install greenshot | |
choco install microsoft-teams | |
choco install octopustools | |
choco install flashplayerplugin |
REM Dev Box Setup | |
REM This script sets up my dev boxes for virtual machines that I use. | |
REM It will go through and 1st install Chocolatey, then it will installs extensions for vs code and perform various | |
REM other setup functions. | |
REM M. Mahon | |
REM @jetstreamin | |
REM Chocolaty Command Reference: https://chocolatey.org/docs/commands-reference |
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() | |
} |