Skip to content

Instantly share code, notes, and snippets.

View isomorpheric's full-sized avatar
🐱

Eric Crescioni isomorpheric

🐱
  • US (remote)
View GitHub Profile
@isomorpheric
isomorpheric / getdisplay.sh
Created June 30, 2022 16:14 — forked from pjobson/getdisplay.sh
gets the display for using cypress with wsl on and off a VPN
#!/bin/bash
# Check for user input
if [ -z "$1" ] || [ -z "$2" ]; then
echo "Expects: getdisplayip.sh \"VPN Interface\" \"Default Interface\""
exit 0
fi
VPNIFACE=$1
DEFIFACE=$2
@isomorpheric
isomorpheric / setup_cypress_wsl2.md
Created June 30, 2022 16:13 — forked from pjobson/setup_cypress_wsl2.md
Setting Up Cypress on Ubuntu WSL2

Setting Up Cypress on Ubuntu WSL2

No clue why the directions for this are buried deep in WLS issues. This is how I setup my Cypress on Ubuntu WSL2 working for both on and off VPN with some corp firewall.

Before executing any command, be sure to read and understand it, I ask you to run two shell scripts which I wrote. You should review any shell script provided by anyone before blindly running it. I'm not doing anyting bad, but I advise you to check for yourself.

Dependencies

sudo apt install libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev \

libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb \

@isomorpheric
isomorpheric / _document.tsx
Created February 23, 2022 18:36
Example MUI v5 Document Ts
import * as React from 'react';
import Document, { Html, Head, Main, NextScript } from 'next/document';
import createEmotionServer from '@emotion/server/create-instance';
import createEmotionCache from '../utility/createEmotionCache';
export default class MyDocument extends Document {
render() {
return (
<Html lang="en">
@isomorpheric
isomorpheric / useTailwindMediaQuery.ts
Created February 16, 2022 14:05
useTailwindMediaQuery.ts
import { useEffect, useState } from 'react';
interface ItwBreakpoints {
[key: string]: string;
}
// This is straight from default tailwind config.
// Would have loved to use resolveConfig but
// you try to get it to work with ts.
const twBreakpoints: ItwBreakpoints = {
@isomorpheric
isomorpheric / update-golang.md
Created December 8, 2021 04:32 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@isomorpheric
isomorpheric / update-golang.md
Created December 8, 2021 04:32 — forked from nikhita/update-golang.md
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@isomorpheric
isomorpheric / ImageBlurCSharp.cs
Last active February 23, 2017 01:37
Image Blur problem with C#
using System;
/* For every topic that I had to research, I wrote a REF down below (at the end of the
* document). They are all numbered and have a link to the resource. */
namespace ImageBlurCSharp
{
class Program
{
#Monster dictionary
monsterNames ={"skeleton":"Jack Skellington", "zombie":"Frankenstein", "wraith":"Nazgul", "lich":"Arthas"}
for key in monsterNames.keys():
print "I am a" + key + "and my name is" + monsterNames[key]
/*****************************
**** ALL BACKGROUND PICS *****
*****************************/
.pic1 {
background: url("images/simplebike.jpg") no-repeat;
}
.pic2 {
background: url("images/palmeras.jpg") no-repeat center center;
class BinaryTree
attr_accessor :payload, :left, :right
def initialize(payload, left=nil, right=nil)
@payload = payload
@left = left
@right = right
end
end