Skip to content

Instantly share code, notes, and snippets.

View 3m1n3nc3's full-sized avatar
๐Ÿ˜œ
Not hearing word

Legacy 3m1n3nc3

๐Ÿ˜œ
Not hearing word
View GitHub Profile
@3m1n3nc3
3m1n3nc3 / gtbr.js
Last active March 22, 2024 06:02
Remove google translate branding
addEventListener("DOMContentLoaded", (event) => {
const rmIt = setInterval(function() {
if (rmGTB()) clearInterval(rmIt)
}, 100)
});
function rmGTB() {
const gadg = document.querySelector('.goog-te-gadget')
if (gadg) {
const el = gadg.childNodes[0];
@3m1n3nc3
3m1n3nc3 / README.md
Created July 30, 2023 15:01
SPA hosting tip on Nginx

When hosting an spa on Ngix we often run across one simple bug that keeps our pages out of reach when not accessed from a link on the landing page. And example scenario would be when navigating directly to https://spa-app.com/login without accessing the landing page, we are greated by a 404 Not found error even though we are certain that our content exists.

A rather simple solution to this would be adding the following line before the end of our Nginx Vhost configuration:

server {
  ...
  try_files $uri  $uri/ /index.html;
}
@3m1n3nc3
3m1n3nc3 / Creditcard.md
Last active March 22, 2024 04:17
Creditcard SVG

Add the flipped class name to the creditcard class div to flip the card

<html>
  <head>
    <link rel="preconnect" href="https://fonts.bunny.net">
    <link href="https://fonts.bunny.net/css?family=rock-salt:400" rel="stylesheet" />
    <style>
      .bodyTag {
        margin: 0;
@3m1n3nc3
3m1n3nc3 / ci_pre_xcodebuild.sh
Last active April 26, 2024 08:24
Installs node, Quasar and build your project in preparation for Xcode Cloud *Workflow*
#!/bin/bash
# ci_post_clone.sh
# App
#
# Created by xXx on 26/04/2024.
#
get_abs_filename() {
# $1 : relative filename
@3m1n3nc3
3m1n3nc3 / currency_symbols.php
Created August 31, 2024 03:16 — forked from gibbs/currency_symbols.php
An array of currency symbols as HTML entities
<?php
$currency_symbols = array(
'AED' => '&#1583;.&#1573;', // ?
'AFN' => '&#65;&#102;',
'ALL' => '&#76;&#101;&#107;',
'AMD' => '',
'ANG' => '&#402;',
'AOA' => '&#75;&#122;', // ?
'ARS' => '&#36;',
'AUD' => '&#36;',