Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
Log of the following commands: | |
uname -r | |
cat /etc/issue | |
lsusb | |
lsusb -v -d 22f0:0008 | |
dmesg | |
5.4.0-37-generic | |
Linux Mint 20.3 Una \n \l |
<?php | |
namespace App\Providers; | |
use App\Support\Utils\OctaModal; | |
use App\Support\Utils\OctaResponse; | |
use Illuminate\Support\Facades\Cache; | |
use Illuminate\Support\Facades\Session; | |
use Illuminate\Support\ServiceProvider; | |
use Inertia\Inertia; |
<?php | |
namespace App\Http\Controllers; | |
use App\Http\Requests\StoreOrganization; | |
use App\Organization; | |
use Illuminate\Support\Facades\Auth; | |
use Illuminate\Support\Facades\Redirect; | |
use Illuminate\Support\Facades\Request; | |
use Inertia\Inertia; |
' Disables Vanguard from starting when you boot your computer | |
Call CreateObject("Shell.Application").ShellExecute("cmd.exe", "/c ""sc config vgc start= disabled & sc config vgk start= disabled""", "", "runas") |
import useScrollRestoration from "utils/hooks/useScrollRestoration"; | |
const App = ({ Component, pageProps, router }) => { | |
useScrollRestoration(router); | |
return <Component {...pageProps} />; | |
}; | |
export default App; |
import React, {useState} from "react"; | |
import axios from "axios"; | |
import config from "../config" | |
const endpoint = config.apiGateway.URL; | |
export const Upload = () => { | |
const [file, setFile] = useState<File | undefined>() |
Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font
To setup native Linux, see this gist
import React from 'react'; | |
import styled from '@emotion/styled'; | |
import { css } from '@emotion/core'; | |
import { CSSTransition } from 'react-transition-group'; | |
const has = (key, obj) => Object.prototype.hasOwnProperty.call(obj, key); | |
const keyframes = [ | |
'appear', | |
'enter', |
const SCROLL_UP = "up"; | |
const SCROLL_DOWN = "down"; | |
const useScrollDirection = ({ | |
initialDirection, | |
thresholdPixels, | |
off | |
} = {}) => { | |
const [scrollDir, setScrollDir] = useState(initialDirection); |
// Usage | |
function App() { | |
const [darkMode, setDarkMode] = useDarkMode(); | |
return ( | |
<div> | |
<div className="navbar"> | |
<Toggle darkMode={darkMode} setDarkMode={setDarkMode} /> | |
</div> | |
<Content /> |