Skip to content

Instantly share code, notes, and snippets.

View Mostafa20946's full-sized avatar
🏠
Working from home

Mosi Mostafa20946

🏠
Working from home
View GitHub Profile
@Mostafa20946
Mostafa20946 / README.md
Last active March 16, 2023 16:54 — forked from jonathantneal/README.md
SASS @font-face mixin

Font Face

A mixin for writing @font-face rules in SASS.

Usage

Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.

@include font-face(Samplino, fonts/Samplino);
@Mostafa20946
Mostafa20946 / index.html
Created July 1, 2022 14:03
Vuetify Slide Groups @click=“toggle”
<div id="app">
<v-app id="inspire">
<v-sheet
class="mx-auto"
elevation="8"
max-width="800"
>
<v-slide-group
v-model="model"
class="pa-4"
@Mostafa20946
Mostafa20946 / index.html
Created May 20, 2022 13:53
Vuetify Desktop/Mobile Overlay Navbar
<div id="app">
<v-app id="inspire">
<v-layout row justify-center>
<v-toolbar app dark color="blue-grey darken-1" class="hidden-xs-and-down">
<v-toolbar-title>Desktop Menu</v-toolbar-title>
<v-spacer></v-spacer>
<v-toolbar-items>
<v-btn
v-for="item in nav"
:key="item.icon"
@Mostafa20946
Mostafa20946 / wp-database-migration.sql
Last active June 14, 2018 08:36
How to Mass Change old URLs in Wordpress Database after Migration
/* For updating the URL we need to run the below query over multiple tables and fields. */
UPDATE wp_options SET option_value = replace(option_value, 'Existing URL', 'New URL') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET post_content = replace(post_content, 'Existing URL', 'New URL');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'Existing URL','New URL');
UPDATE wp_usermeta SET meta_value = replace(meta_value, 'Existing URL','New URL');
UPDATE wp_links SET link_url = replace(link_url, 'Existing URL','New URL');
UPDATE wp_comments SET comment_content = replace(comment_content , 'Existing URL','New URL');