Skip to content

Instantly share code, notes, and snippets.

View PH4NTOMiki's full-sized avatar
💭
Programming

Mihael Mutić PH4NTOMiki

💭
Programming
View GitHub Profile
If 2fa is enabled on github switch to ssh instead of https on linux
1. generate an ssh keypair on your linux box
ssh-keygen -t {rsa|dsa}
2. add the public key to github: profile - settings - ssh keys
3. switch from https to ssh
Check your repo remote:
@PH4NTOMiki
PH4NTOMiki / force-shortcodes-setting.js
Created June 26, 2024 12:05 — forked from frzsombor/force-shortcodes-setting.js
Fix WordPress Shortcodes in Query Loop Post Templates
/**
* Add "Force Shortcodes" setting to specific blocks
* by @frzsombor - 2024
*/
(function() {
/* Basic config */
const attributeNS = 'frzsombor/force-shortcodes'; // Namespace for JS filters
const attributeName = 'forceShortcodes'; // camelCasedName for storing data
@PH4NTOMiki
PH4NTOMiki / css_colors.js
Created November 6, 2022 15:10 — forked from ricealexander/css_colors.js
an array that associates CSS color names with their hex values
// CSS Color Names
// Compiled by @bobspace
// Updates by @ricealexander
// added Rebecca Purple
// associates color names with their hex values
// random color and locating a color in the array by its name
const colorValues = [
{hex: "#F0F8FF", name: "AliceBlue"},
@PH4NTOMiki
PH4NTOMiki / next.config.js
Created January 15, 2022 13:08 — forked from bietkul/next.config.js
Custom Next.js Config
if (typeof require !== 'undefined') {
require.extensions['.css'] = () => null;
}
const NextWorkboxPlugin = require('next-workbox-webpack-plugin');
const withCSS = require('@zeit/next-css');
const WebpackPwaManifest = require('webpack-pwa-manifest');
const path = require('path');
module.exports = withCSS({
webpack(config, { isServer, buildId, dev }) {
config.node = {
@PH4NTOMiki
PH4NTOMiki / README.md
Created January 13, 2022 14:20 — forked from giabao/README.md
bitwarden deduplicate import
  1. (optional) Import Data from chrome, firefox, keepass,..
  2. Export Vault to bitwarden.json file
  3. Get Ammonite
sudo sh -c '(echo "#!/usr/bin/env sh" && curl -L https://github.com/com-lihaoyi/Ammonite/releases/download/2.4.0/2.13-2.4.0) > /usr/local/bin/amm && chmod +x /usr/local/bin/amm' && amm
  1. Download the dedup.scala file below then run it in ammonite
amm dedup.scala bitwarden.json
@PH4NTOMiki
PH4NTOMiki / ghghgh
Created November 15, 2021 16:48
Created from Remix Form!
fgfgfg
@PH4NTOMiki
PH4NTOMiki / hjuzugzu
Created November 15, 2021 16:21
Created from Remix Form!
hjhghj
@PH4NTOMiki
PH4NTOMiki / abc
Created November 15, 2021 13:10
Created from Remix Form!
cba
@PH4NTOMiki
PH4NTOMiki / hjhjkhjk
Created November 15, 2021 12:59
Created from Remix Form!
bhjgbhhjgh
@PH4NTOMiki
PH4NTOMiki / index.html
Created October 1, 2021 16:24 — forked from maxkostinevich/index.html
Cloudflare Worker - Handle Contact Form
<!--
/*
* Serverless contact form handler for Cloudflare Workers.
* Emails are sent via Mailgun.
*
* Learn more at https://maxkostinevich.com/blog/serverless-contact-form
* Live demo: https://codesandbox.io/s/serverless-contact-form-example-x0neb
*
* (c) Max Kostinevich / https://maxkostinevich.com
*/