Skip to content

Instantly share code, notes, and snippets.

View Feliphegomez's full-sized avatar

Andres Felipe Gomez Maya Feliphegomez

  • deMedallo.com
  • Colombia
View GitHub Profile
@Feliphegomez
Feliphegomez / .deps...npm...@pancakeswap...pancake-swap-lib...contracts...GSN...Context.sol
Created January 26, 2022 19:05
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.6.12+commit.27d51765.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.4.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
@Feliphegomez
Feliphegomez / contracts...GSN...Context.sol
Created January 11, 2022 17:09
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.5.16+commit.9c3226ce.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.4.0;
/*
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with GSN meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
@Feliphegomez
Feliphegomez / meta-tags.md
Created October 27, 2021 00:55 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>
@Feliphegomez
Feliphegomez / prepareEmail.js
Created August 30, 2019 02:01 — forked from joshbtn/prepareEmail.js
Populate email fields in default email client - JavaScript.
// **prepareEmail(to, subject, body)**
// This comes in handy when attempting to obfuscate email address to prevent scrapers from grabbing them.
// This will take an email address, subject and a body and submit a form to the mailto: protocol, which should open up the default email client and populate the to, subject and body.
// For more information about what this does see http://support.microsoft.com/kb/279460.
// - *to* {String} - 'TO' e-mail address
// - *subject* {String} - subject line
// - *body* {String} - e-mail's body
function prepareEmail(to, subject, bodyText) {
var form = document.createElement('form');
@Feliphegomez
Feliphegomez / geoserver-install.sh
Last active May 23, 2019 15:40 — forked from iacovlev-pavel/geoserver-install.sh
Install GeoServer on Ubuntu 18.04
#
apt-get install openjdk-8-jre
# PostgreSQL and PostGIS
apt-get install postgresql postgresql-contrib postgis postgresql-10-postgis-2.4
# Create "geoserver" database
sudo -u postgres createuser -P geoserver
sudo -u postgres createdb -O geoserver geoserver
sudo -u postgres psql -c "CREATE EXTENSION postgis; CREATE EXTENSION postgis_topology;" geoserver
#! /bin/sh
### BEGIN INIT INFO
# Provides: geoserver
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: GeoServer OGC server
### END INIT INFO
#! /bin/sh
### BEGIN INIT INFO
# Provides: geoserver
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: GeoServer OGC server
### END INIT INFO