Skip to content

Instantly share code, notes, and snippets.

View cezarignat's full-sized avatar
🎯
Focusing

Cezar Mihail Ignat cezarignat

🎯
Focusing
View GitHub Profile
.container {
max-width: 1200px;
margin: auto;
}
.czr {
display: flex;
flex-wrap: wrap;
align-items: center;
width: 100%;
@cezarignat
cezarignat / move-wordpress.sql
Created May 19, 2019 21:26
Change the domain of your wordpress site to a new domain
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');
.halfhalf {
display: table;
width: 100%;
}
.half {
position: relative;
display: table-cell;
width: 50%;
padding: 150px 120px;
@cezarignat
cezarignat / selfsign-vmware-modules.sh
Last active November 1, 2023 15:09
Self sign the required modules, vmmon and vmnet, for VMWARE to work with SecureBoot on, Ubuntu 17
#!/bin/sh
#Asking for sudo because the script needs it almost all the time
sudo echo -n
#Creating the key used to sign the two modules
echo 'Preparing vmware key...'
openssl req -new -x509 -newkey rsa:2048 -keyout VMWAREKEY.priv -outform DER -out VMWAREKEY.der -nodes -days 36500 -subj "/CN=VMware/"
#Sign the modules
@cezarignat
cezarignat / equalElements.js
Last active April 12, 2021 12:30
Make all the elements the same height (using the biggest value)
/*
* Dependencies: jQuery 1.x / 2.x / 3.x
*
* Make all the elements the height of the biggest one
* elementsSelector is the general selector used to get all the elements
* that you want to equalise. e.g '#foo li'
*
* Use the extra argument to add extra pixels to the final height
*
*