Skip to content

Instantly share code, notes, and snippets.

View vstyler96's full-sized avatar
🐧
In the internet no one knows you are a penguin

Vicente G, BSc. vstyler96

🐧
In the internet no one knows you are a penguin
View GitHub Profile
@vstyler96
vstyler96 / keybase.md
Created January 19, 2024 16:42
Keybase Proof

Keybase proof

I hereby claim:

  • I am vstyler96 on github.
  • I am kingbeencent (https://keybase.io/kingbeencent) on keybase.
  • I have a public key ASAJfcCoJGRYPD3jNt64inX27nJ9mx2pjA5udiOzXaVLwQo

To claim this, I am signing this object:

@vstyler96
vstyler96 / VueCryptoComposable.js
Created November 2, 2023 20:55
Cryptographic Helper for Vue 3 using Web Crypto API
/* eslint-disable */
export function useCrypto() {
const { crypto: { subtle: KeyLoader } } = window;
/**
* Create RSA Key Pair.
*
* @returns {Object}
*/
async function createKeyPair() {
@vstyler96
vstyler96 / 2019-https-localhost.md
Created February 6, 2023 02:50 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@vstyler96
vstyler96 / laravel.yml
Created January 27, 2023 23:53
Github Action for Laravel Dusk CI and PostgreSQL
on: push
name: Testing Laravel with PostgreSQL
jobs:
laravel:
name: Build and Test
runs-on: ubuntu-latest
container:
image: chilio/laravel-dusk-ci:latest
services:
redis:
@vstyler96
vstyler96 / VueCryptoMixin.js
Last active November 2, 2023 20:49
Cryptographic Helper for Vue 2 using Web Crypto API
const { crypto: { subtle: KeyLoader } } = window;
export default {
methods: {
/**
* Create RSA Key Pair.
*
* @returns {Object}
*/
async $createKeyPair() {
@vstyler96
vstyler96 / storage.js
Last active November 2, 2023 20:40
Access to your localStorage easier than ever!
/**
* @author Vincent GS
* @username vstyler96/kingbeencent
* @email [email protected]/[email protected]
*
* This library serves as an easier way to CRUD your localStorage variables.
*/
/**
* Put a new object item on the localStorage and return the recent created one item.
@vstyler96
vstyler96 / destroyAfterPlay.js
Last active November 2, 2023 20:39
Play your guilty pleasures on YouTube and once finished, return to the home page.
let destroyAfterPlay = () => {
const video = document.querySelector(".html5-main-video");
video.currentTime = 0;
video.play();
setTimeout(() => {
window.location.href = "https://youtube.com";
}, video.duration * 1000);
};
{
"private": true,
"scripts": {
"dev": "npm run development",
"development": "cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"hot": "cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --inline --hot --disable-host-check --config=node_modules/laravel-mix/setup/webpack.config.js",
"prod": "npm run production",
"production": "cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js",
"watch": "npm run development -- --watch",
"watch-poll": "npm run watch -- --watch-poll"
@vstyler96
vstyler96 / app.blade.php
Created May 7, 2020 20:34
New Blade App Layout
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
@vstyler96
vstyler96 / app.js
Created May 7, 2020 20:30
the new app.js for integrating vuetify.
import _ from "lodash"
import axios from "@/plugins/Axios"
import Vue from "vue"
import vuetify from "@/plugins/vuetify"
/**
* Enable Axios Settings.
*/
axios.enableSettings();