Skip to content

Instantly share code, notes, and snippets.

View atorresbr's full-sized avatar
🥰

Anderson Torres atorresbr

🥰
View GitHub Profile
@UbuntuEvangelist
UbuntuEvangelist / Completely Uninstall LAMP Ubuntu
Last active April 19, 2024 23:12
Completely Uninstall LAMP Ubuntu 20.04 LTS
Contact Me For Your Projects :)
Telegram: https://t.me/LinuxGun
WhatsApp: https://wa.link/5ow7oz
#!/bin/bash
# This will remove Apache
sudo service apache2 stop
sudo apt-get purge apache2 apache2-utils apache2.2-bin
@needim
needim / mediaqueries.css
Last active April 4, 2024 23:23
Device Specific CSS Media Queries Collection
/*
Based on:
1. http://stephen.io/mediaqueries
2. https://css-tricks.com/snippets/css/media-queries-for-standard-devices/
*/
/* iPhone X in portrait & landscape */
@media only screen
and (min-device-width : 375px)
and (max-device-width : 812px)
@jameskoster
jameskoster / functions.php
Last active June 20, 2018 07:57
WooCommerce - Add a message above the login / register form on the my account page
add_action( 'woocommerce_before_customer_login_form', 'jk_login_message' );
function jk_login_message() {
if ( get_option( 'woocommerce_enable_myaccount_registration' ) == 'yes' ) {
?>
<div class="woocommerce-info">
<p><?php _e( 'Returning customers login. New users register for next time so you can:' ); ?></p>
<ul>
<li><?php _e( 'View your order history' ); ?></li>
<li><?php _e( 'Check on your orders' ); ?></li>
<li><?php _e( 'Edit your addresses' ); ?></li>