Skip to content

Instantly share code, notes, and snippets.

View jkamiphi's full-sized avatar

Julian Santana jkamiphi

View GitHub Profile
function getParameterFromUrl(url, parm) {
var re = new RegExp(".*[?&]" + parm + "=([^&]+)(&|$)");
var match = url.match(re);
return (match ? match[1] : "");
}
@jkamiphi
jkamiphi / WireGuard_Setup.txt
Created November 7, 2020 01:00 — forked from chrisswanda/WireGuard_Setup.txt
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@jkamiphi
jkamiphi / .gitignore
Created October 25, 2019 20:41 — forked from iffy/.gitignore
Example using electron-updater with `generic` provider.
node_modules
dist/
yarn.lock
wwwroot
@jkamiphi
jkamiphi / fish_alias.md
Created October 8, 2019 15:04 — forked from tikolakin/fish_alias.md
Create alias in Fish shell and save this as a permanent function

Directly from CLI

alias x='exit'
funcsave x

or create a file in

~/.config/fish/functions 

with name

@jkamiphi
jkamiphi / Colaborar Proyecto GitHub.markdown
Created August 3, 2019 03:51 — forked from BCasal/Colaborar Proyecto GitHub.markdown
Pasos a seguir para colaborar en un proyecto de GitHub

Cómo colaborar en un proyecto en GitHub

  • Fork del repositorio
  • Clonar el repositorio
  • Actualizar la rama master
  • Crear una rama
  • Hacer los cambios
  • Hacer un Pull Request

Fork del repositorio

@jkamiphi
jkamiphi / .htaccess
Created April 1, 2019 18:43 — forked from fitorec/.htaccess
Un simple .htaccess para wordpress
AddHandler x-httpd-php5 .php
#########################################################################
# Wordpress Base #
#########################################################################
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
@jkamiphi
jkamiphi / meta-tags.md
Created March 31, 2019 15:46 — forked from lancejpollard/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 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">
<meta name="language" content="ES">
@jkamiphi
jkamiphi / .gitconfig
Created February 18, 2019 02:12 — forked from Kovrinic/.gitconfig
git global url insteadOf setup
# one or the other, NOT both
[url "https://github"]
insteadOf = git://github
# or
[url "[email protected]:"]
insteadOf = git://github