Skip to content

Instantly share code, notes, and snippets.

Avatar
🖖
.

Josh Dadak Bigtalljosh

🖖
.
View GitHub Profile
@Bigtalljosh
Bigtalljosh / bigtalljosh.omp.json
Last active Oct 21, 2021
bigtalljosh.omp.json
View bigtalljosh.omp.json
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
View PoweshellToString.ps1
function Convert-HashToString
{
param
(
[Parameter(Mandatory = $true)]
[System.Collections.Hashtable]
$Hash
)
$hashstr = "@{"
$keys = $Hash.keys
View kill-processes.ps1
# 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 Jan 17, 2018 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default
View HOWTO.md

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
View Annoy your ISP when the speeds aren't as advertised
#!/usr/bin/python
import os
import sys
import csv
import datetime
import time
import twitter
def test():
View Boxstarter-Work.txt
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
View keybase
### 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:
View Simple C++ to show off in Assembly.
int square(int num);
int main(int argc, const char* argv[])
{
int result = square(10);
}
int square(int num)
{
return num * num;
View DefinitelyNotPenis.js
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.
View Has weird right-to-left characters.txt
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶