This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shortcuts | |
alias c="clear" | |
alias ..="cd .." | |
alias ...="cd ../.." | |
# git | |
alias gst="git status" | |
# artisan | |
alias art="php artisan" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<RadioGroup v-model="selected"> | |
<RadioGroupLabel v-if="label" class="block font-medium text-sm text-gray-700">{{ label }}</RadioGroupLabel> | |
<div class="space-y-2 mt-1"> | |
<RadioGroupOption | |
v-for="option in options" | |
:key="option.name" | |
v-slot="{ active, checked }" | |
:value="option" | |
as="template" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set t_Co=256 | |
syntax on | |
set linespace=15 | |
set showmode | |
set nowrap | |
set tabstop=4 | |
set smarttab | |
set tags=tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
export async function post(req, res, next) { | |
res.setHeader('Content-Type', 'application/json') | |
let response; | |
const secret = '<YOUR-SECRET-KEY>' | |
const { captchaToken } = req.body | |
const captchaResponse = await axios.post(`https://www.google.com/recaptcha/api/siteverify?secret=${secret}&response=${captchaToken}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
Disable-InternetExplorerESC | |
Disable-GameBarTips | |
Disable-BingSearch | |
cinst Microsoft-Hyper-V-All -source windowsFeatures | |
# Better Terminal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# generate encryption key .pem or .key | |
openssl genrsa 2048 > $1.key | |
# generate selfsigned certificate .crt optionally | |
openssl req -x509 -new -nodes -days $2 -key $1.key -subj "/CN=$1" > $1.pem | |
openssl genrsa 2048 > $1_device.key | |
# generate certificate sign request .pem or .csr | |
openssl req -new -key $1_device.key -subj "/CN=$1" > $1_device.csr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Automate mysql secure installation for Red Hat Enterprise Linux (RHEL) compatible distributions | |
# | |
# - Change a password for root accounts (CLI option) | |
# - Remove root account access from hosts other than localhost. (default behavior) | |
# - Remove anonymous-user accounts. (default behavior) | |
# - Remove the test database and privileges that permit anyone to | |
# access databases with names that start with test_. (default behavior) | |
# |