This file contains hidden or 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
| # 1: Start Powershell and run the following to log into AWS console to grab the nvidia drivers, | |
| # and set the execution policy in order to run unsigned powershell scripts: | |
| # Invoke-AWSLogin | |
| # Set-ExecutionPolicy unrestricted | |
| # 12 Install Chocolatey (The Package Manager) | |
| Set-ExecutionPolicy Bypass -Scope Process -Force; | |
| [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; | |
| iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) |
This file contains hidden or 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
| #user http; | |
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; |
This file contains hidden or 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
| server { | |
| listen 443 ssl; | |
| server_name project_domain.tld www.project_domain.tld; | |
| root /home/project_owner/my_awesome_project/priv/static; | |
| ssl_certificate /etc/letsencrypt/live/project_domain_tld/cert.pem; | |
| ssl_certificate_key /etc/letsencrypt/live/project_domain_tld/privkey.pem; | |
| access_log /var/log/nginx/foo.access.log main; | |
| error_log /var/log/nginx/foo.error.log; |
This file contains hidden or 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
| #!/bin/bash | |
| # Cloudflare API credentials | |
| API_EMAIL="you@yourdomain.com" | |
| API_KEY="cloudflaire_api_key_goes_here" | |
| # Cloudflare zone and record details | |
| ZONE_ID="ZONE_ID_GOES_HERE" | |
| RECORD_NAME="DNS_RECORD_NAME_GOES_HERE" |
This file contains hidden or 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
| defmodule BetterFib do | |
| # Fib Calculator that pushes totals forward | |
| def fib(num) when is_number(num) and num == 0, do: 0 | |
| def fib(num) when is_number(num) and num == 1, do: 1 | |
| def fib(num) when is_number(num) and num >= 2 do | |
| numList = Enum.to_list(2..num) | |
| fib(0, 1, num, numList) | |
| end |
This file contains hidden or 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
| /* | |
| This is a simple JavaScript example that | |
| covers a clean way to create: | |
| Classes | |
| Inheritance | |
| Getters | |
| Setters | |
| Methods | |
| and making use of them | |
| */ |