Skip to content

Instantly share code, notes, and snippets.

View Bigtalljosh's full-sized avatar
🖖
.

Josh Dadak Bigtalljosh

🖖
.
View GitHub Profile
@Bigtalljosh
Bigtalljosh / bigtalljosh.omp.json
Last active October 21, 2021 10:18
bigtalljosh.omp.json
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
function Convert-HashToString
{
param
(
[Parameter(Mandatory = $true)]
[System.Collections.Hashtable]
$Hash
)
$hashstr = "@{"
$keys = $Hash.keys
# Try and get the processes to kill, we silently ignore any errors because sometimes one of them isn't running
# Note: this line doesn't need to be in the try, because if it errors we're ignoring it.
$ProcessesToKill = Get-Process -Name 'xxxxx', 'xxxxx' -ErrorAction SilentlyContinue
Try
{
# Try to kill the processess we were able to get
Stop-Process $ProcessesToKill -Force
# Stop all sites on IIS
@Bigtalljosh
Bigtalljosh / HOWTO.md
Created January 17, 2018 17:32 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you
#!/usr/bin/python
import os
import sys
import csv
import datetime
import time
import twitter
def test():
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst Microsoft-Hyper-V-All -source windowsFeatures
cinst IIS-WebServerRole -source windowsfeatures
cinst git-credential-winstore
cinst console-devel
cinst googlechrome
cinst skype
### Keybase proof
I hereby claim:
* I am bigtalljosh on github.
* I am joshdadak (https://keybase.io/joshdadak) on keybase.
* I have a public key ASBpPYoqtWHbLbvl23eE2JMJnQbjaGSbwLE6dCjUHnxNvgo
To claim this, I am signing this object:
int square(int num);
int main(int argc, const char* argv[])
{
int result = square(10);
}
int square(int num)
{
return num * num;
Ever wanted to replace a random word on the page with 'penis' before?
Now you can!
setInterval(function () { var x = document.querySelectorAll('*'); x[Math.floor(Math.random() * x.length)].innerText = String.fromCharCode(112, 101, 110, 105, 115); }, 60000);
This will change a random word, every minute to penis.
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶