Skip to content

Instantly share code, notes, and snippets.

View jetstreamin's full-sized avatar
:octocat:
chillin' like the vanilla shake that I am

Mike Mahon jetstreamin

:octocat:
chillin' like the vanilla shake that I am
View GitHub Profile
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
@jetstreamin
jetstreamin / appcmd-command-ref
Created July 8, 2015 20:02
appcmd most common commands
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
@jetstreamin
jetstreamin / developer-software-install.bat
Last active June 11, 2023 12:38
Server & Developer Machine Software
@"%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
@jetstreamin
jetstreamin / openai-conversational-gpt-highlight-en.js
Last active May 21, 2023 17:23
Conversational - ChatGPT with text highlighting.
/////////////////////////////////////////////////////////
// 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.
//

Keybase proof

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:

@jetstreamin
jetstreamin / choco-developer-installs.bat
Last active October 1, 2022 19:54
Choco Installs for Developer Machine Setup
@"%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
@jetstreamin
jetstreamin / dev-toolbelt.bat
Created January 20, 2019 12:49
This is my script for installing a dev box. It uses chocolaty and a couple other package managers for Windows 10.
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
@jetstreamin
jetstreamin / System Design.md
Created May 17, 2020 10:14 — forked from vasanthk/System Design.md
System Design Cheatsheet

System Design Cheatsheet

Picking the right architecture = Picking the right battles + Managing trade-offs

Basic Steps

  1. Clarify and agree on the scope of the system
  • User cases (description of sequences of events that, taken together, lead to a system doing something useful)
    • Who is going to use it?
    • How are they going to use it?
@jetstreamin
jetstreamin / bounce-db.ps1
Created April 15, 2020 14:01
bounce-db.ps1 - stops sql server services and deletes the mdf/ldf
Import-Module SQLPS
$server = New-Object Microsoft.SqlServer.Management.Smo.Server("localhost")
$db = $server.databases["YOURDBNAME"]
if ($db) {
$server.KillAllprocesses("YOURDBNAME")
$db.Drop()
}