Skip to content

Instantly share code, notes, and snippets.

View HighTide2020's full-sized avatar
🤖

Nicholas Cappello HighTide2020

🤖
View GitHub Profile
{
"git.ignoreLimitWarning": true,
"files.eol": "\n",
"breadcrumbs.enabled": true,
"debug.onTaskErrors": "prompt",
"editor.fontWeight": "400",
"editor.cursorStyle": "block",
"editor.cursorBlinking": "phase",
"editor.cursorWidth": 2,
@HighTide2020
HighTide2020 / NodeCheatSheet.js
Created September 7, 2022 02:04
NodeJS Cheat Sheet for quick reference
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
var http = require('http');
// An example of a web server written with Node which responds with 'Hello World'.
// To run the server, put the code into a file called example.js and execute it with the node program.
@HighTide2020
HighTide2020 / cheatsheet.sh
Created September 7, 2022 02:03
Bash CheatSheet for Mac OSX
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
#
#####################################################
@HighTide2020
HighTide2020 / arrays.js
Last active September 7, 2022 02:01
JavaScript Array Cheat Sheet
/*
* Just a cheat sheet for JavaScript Array usage for quick reference.
*
**/
// Global object: properties
Array.length // Reflects the number of elements in an array
// Global object: methods
Array.from(arrayLike[, mapFn[, thisArg]]) // Creates a new Array instance from an array-like or iterable object.
@HighTide2020
HighTide2020 / download-file.js
Created September 7, 2022 01:31 — forked from javilobo8/download-file.js
Download files with AJAX (axios)
axios({
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([response.data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
document.body.appendChild(link);
@HighTide2020
HighTide2020 / comcast.js
Created September 7, 2022 01:30 — forked from Jarred-Sumner/comcast.js
Comcast injects this into webpages to show copyright notices
// Comcast Cable Communications, LLC Proprietary. Copyright 2014.
// Intended use is to display browser notifications for critical and time sensitive events.
var _ComcastAlert = (function(){
return {
SYS_URL: '/e8f6b078-0f35-11de-85c5-efc5ef23aa1f/aupm/notify.do'
, dragObj: {zIndex: 999999}
, browser: null
, comcastCheck: 1
, comcastTimer: null
, xmlhttp: null
@HighTide2020
HighTide2020 / cognito.yaml
Created February 1, 2022 08:36 — forked from singledigit/cognito.yaml
Create a Cognito Authentication Backend via CloudFormation
AWSTemplateFormatVersion: '2010-09-09'
Description: Cognito Stack
Parameters:
AuthName:
Type: String
Description: Unique Auth Name for Cognito Resources
Resources:
# Creates a role that allows Cognito to send SNS messages
SNSRole:
@HighTide2020
HighTide2020 / code.settings.json
Last active September 7, 2022 01:24
Code settings November 2021
{
// 09/2022
// Editor
"editor.fontWeight": "400",
"editor.cursorStyle": "block",
"editor.cursorBlinking": "phase",
"editor.cursorWidth": 2,
"editor.minimap.enabled": true,
"editor.glyphMargin": true,
{
"always_show_minimap_viewport": true,
"auto_close_tags": true,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
@HighTide2020
HighTide2020 / .htaccess
Last active January 12, 2021 19:27
new login URL's for wp admin & wp login
# part 3
RewriteRule ^adminLoginUrl/(.*) wp-admin/$1?%{QUERY_STRING} [L]