Skip to content

Instantly share code, notes, and snippets.

View admaesmo's full-sized avatar

Adrian Espinosa admaesmo

View GitHub Profile
@admaesmo
admaesmo / docker-compose-wordpress.yaml
Created June 13, 2022 17:48 — forked from pablokbs/docker-compose-wordpress.yaml
Docker-compose para wordpress con mysql
## docker-compose para correr wordpress con una base de datos en mysql
## by PeladoNerd https://youtu.be/eoFxMaeB9H4
version: '3.1'
services:
wordpress:
image: wordpress:php7.1-apache
ports:
public class NewsSqlRepository implements Repository<News> {
private final SQLiteOpenHelper openHelper;
private final Mapper<News, ContentValues> toContentValuesMapper;
private final Mapper<Cursor, News> toNewsMapper;
public NewsSqlRepository(SQLiteOpenHelper openHelper) {
this.openHelper = openHelper;
this.toContentValuesMapper = new NewsToContentValuesMapper();
@admaesmo
admaesmo / HOWTO.md
Created March 25, 2019 11:48 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you
@admaesmo
admaesmo / Flexslider header
Created March 6, 2019 07:40 — forked from warrendholmes/Flexslider header
Embed the Flexslider script
<!-- Place somewhere in the <head> of your document -->
<link rel="stylesheet" href="flexslider.css" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script src="jquery.flexslider.js"></script>
@admaesmo
admaesmo / custom-admin-logo.php
Created February 19, 2019 21:21 — forked from avillegasn/custom-admin-logo.php
How to add a custom logo in WordPress login page
function my_login_logo() { ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url(<?php echo get_stylesheet_directory_uri(); ?>/img/nelio-icon.png);
height: 84px;
width: 84px;
background-size: cover;
background-repeat: no-repeat;
}
</style>
.root__container {
width: 100vw;
height: 100vh;
display: grid;
grid-template-columns: auto;
grid-template-rows: 0.5fr auto;
position: relative;
}
/*