Skip to content

Instantly share code, notes, and snippets.

View ederrafo's full-sized avatar

Eder Rafo Jose Pariwana Espinhal ederrafo

View GitHub Profile

Copy line down

commands are editor.action.copyLinesDownAction and editor.action.copyLinesUpAction

Shift + Alt + DownArrow

Windows: Shift+Alt+Down and Shift+Alt+Up

Mac: Shift+Option+Down and Shift+OptionUp

@ederrafo
ederrafo / vagrant-create-vm.md
Last active February 26, 2020 19:31
devops vagrant virtual machine vm
@ederrafo
ederrafo / ssl.md
Last active December 20, 2024 14:30
ssl https

Install in apache

<VirtualHost *:443 *:80>
        SSLEngine on
        SSLCertificateFile /home/administrator/ssl/star_costamaragencias_com.crt
        SSLCertificateKeyFile /home/administrator/ssl/star_costamaragencias_com.key
        SSLCertificateChainFile /home/administrator/ssl/gd_bundle-g2-g1.crt
        # The ServerName directive sets the request scheme, hostname and port that
@ederrafo
ederrafo / win-executable-commands
Last active October 20, 2019 04:57
shortcuts win keyboard run executable commands
So, before the command almost always use the program name.
Windows
control printers : Impresoras y faxes.
control folders : Opciones de carpeta.
control keyboard : Propiedades de Teclado.
control desktop : Screen properties.
services.msc : Servicios.
devmgmt.msc : Administrador de dispositivos.
dfrg.msc : Desfragmentador de disco.
wscui.cpl : Centro de seguridad de Windows.
@ederrafo
ederrafo / git fetch.md
Last active January 13, 2020 19:56
git fetch

You can fetch all branches from all remotes like this:

$ git fetch --all

Download project

$ git init 
$ git remote add upstream https://[email protected]/user/repo.git
$ git fetch --all // download all branches
How to check whether a web page can be loaded in iframe
Cómo comprobar si una página web se puede cargar en iframe
Sometimes you may want to load other website's page in your own website's iframe, but due to some security concerns, other website may have security configurations which prevent you from loading their pages into your iframe.
In this case, if you try to load them, you would see a blank page or a text message telling that it's prohibited. Fortunately, you can detect this before you actually decide to load it.
https://www.pixelstech.net/article/1532747442-How-to-check-whether-a-web-page-can-be-loaded-in-iframe
@ederrafo
ederrafo / visual-studio-code.md
Last active January 22, 2023 03:10
visual studio code

In script list all functions: CTRL + Shit + O (but previously install PHP intelliSense) Install PHP IntelliSense: CTRL+Shift+X then type : php intelliSense

Own Snippet

Go: Preference > Configure User Snippet

@ederrafo
ederrafo / ssh.md
Last active September 14, 2020 03:17
linux ssh

SSH Es un protocolo para conectarnos a servers desde nuestra maquina local.

$ ssh -V
$ which ssh

ssh-keygen command

El comando ssh-keygen nos permite generar llaves publicas y privadas en nuestro so para conectarnos remotamente o permitir que otros se conecten a nuestra maquina

@ederrafo
ederrafo / google
Created September 2, 2019 22:37
api apis gmail
Create credential: https://console.developers.google.com/apis/credentials
Create a project: https://console.developers.google.com/projectcreate
src: https://medium.com/employbl/add-login-with-google-to-your-laravel-app-d2205f01b895
@ederrafo
ederrafo / composer errors
Created September 2, 2019 21:02
composer errors
========================================================================================================================
# $ sudo composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover