Skip to content

Instantly share code, notes, and snippets.

View edm00se's full-sized avatar

Eric McCormick edm00se

View GitHub Profile
@edm00se
edm00se / robots.txt
Last active October 5, 2023 15:08
Disallow ChatGPT GPTBot scraping
User-agent: CCBot
Disallow: /
User-agent: ChatGPT-User
Disallow: /
User-agent: GPTBot
Disallow: /
User-agent: Google-Extended
@edm00se
edm00se / print_url.css
Created July 27, 2023 17:04
print url after hyperlinks
@media print {
a::after{
content: " (" attr(href) ") ";
}
}
@edm00se
edm00se / com.hello.servlets.ExampleAbstractedServlet.java
Last active July 21, 2023 21:32
Ultra simple examples of HttpServlet, DesignerFacesServlet, and AbstractXSPServlet.
package com.hello.servlets;
import java.util.Enumeration;
import javax.faces.context.FacesContext;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.ibm.commons.util.StringUtil;
@edm00se
edm00se / UltiBroc.md
Last active April 26, 2023 18:21
Ultimate Broccoli!

Ultimate Broccoli

broc and roll

Prep

  1. preheat your oven to 500F (yes it's hot, it'll roast quickly)
  2. cut up your broccolii into bite sized pieces, small-ish
  3. cover a 1/4 or 1/2 sized sheet pan with aluminum foil
  4. drizzle some olive oil on the pan, add broccoli and shuffle it around a bit ("tossing" the broc' in the olive oil)
@edm00se
edm00se / ReadMe.md
Last active April 3, 2022 00:53
Sample nginx.conf settings to perform reverse proxy functionality to.

Read Me

In order to access a server hosted within a vm (guest), for development purposes from the host OS, which is restricted to same origin / localhost only requests, I set up a siple nginx reverse proxy to forward my requests.

Steps

  1. To install in a Windows VM, download and install nginx from the current, stable release; I installed to C:\nginx\
  2. Edit the <install path>/conf/nginx.conf file with the marked changes in the file of the same name in this gist.
  3. Start the nginx executable, located in your install path. There are service wrappers for Windows, or you can just kill the process to stop the nginx instance.

Commands for Windows

@edm00se
edm00se / NotesForOlderMacs.md
Last active May 28, 2021 15:01
Mac Setup for Homebrew, Casks, and Required Xcode CLI Tools

Older Macs

You probably need to:

  • install XCode CLI Tools (which can be difficult on older versions)
  • update OpenSSL
  • upgrade git

Install XCode CLI Tools

@edm00se
edm00se / ReadMe.md
Created January 31, 2020 19:39
DIY scroll to top widget for vue.js use

Scroll Top

A vue.js component to provide "scroll to top" of page functionality. Uses font awesome svg loader for the button/icon.

Issue

Currently there's an issue with this implmementation, in that mobile Safari tap events aren't triggering the click event as the desktop does.

This approach for its current project has been currently held in favor of vue-scroll-up

@edm00se
edm00se / About.md
Last active August 29, 2019 12:37
Progress bar indicator (jQuery).
@edm00se
edm00se / reset_https_npm.sh
Last active June 27, 2019 20:03
for re-setting https when npm install is dumb and removes https
# for re-setting https when npm install is dumb and removes https
# explainshell: https://www.explainshell.com/explain?cmd=sed+-i+-e+%27s%2Fhttp%3A%5C%2F%5C%2F%2Fhttps%3A%5C%2F%5C%2F%2Fg%27+package-lock.json
sed -i -e 's/http:\/\//https:\/\//g' package-lock.json
@edm00se
edm00se / Example.md
Last active January 19, 2019 03:15
How to Embed "Spoiler" Expandable Code Block in GitHub MD (Issues, etc.)
stuff with *mark* **down**

formatted heading with a

<omg>amazing code!</omg>