Skip to content

Instantly share code, notes, and snippets.

View ederrafo's full-sized avatar

Eder Rafo Jose Pariwana Espinhal ederrafo

View GitHub Profile
hyper 2.1.2 estable
widnows 10
https://medium.com/@myrlandnu/guide-to-install-and-configure-hyper-for-windows-10-52a829c97b25
resume:
# Solved problem text no dissapear
This is also an issue when trying to use vim in hyper on windows, or other programs/commands that requires to clear the output.
Well, there is one more thing you have to do. In the hyper settings, find the env property, and add the following:
@ederrafo
ederrafo / gulp
Last active January 17, 2019 17:21
gulp nodejs node npm javascript
- Funciona sobre nodejs
- Gulp permite automatizar tareas comunes (build system): minified, reload browser, compression of images, validation sintaxis code , etc
- Guidlines: Your plugin should only do one thing, and do it well.
- Gulp utiliza el modulo stream de node.js, lo cual lo hace mas rapido para construir a diferencia de grunt.
# Installation:
if we will use one linux guest in a windows host:
https://github.com/npm/npm/issues/992
In Host: - Go to windows/execute -> secpol.msc
- Directivas locales > Asignacion de derechos de usuario > crear vinculos simbolicos -> doble clic y añadirtu usuario
@ederrafo
ederrafo / find.md
Last active January 14, 2021 02:14
linux unix command find search
find . -iname "my-file"
find . -not -name "my-file"
$ sudo find / -name "version.sh"
$ sudo find / -name "tomcat7"
@ederrafo
ederrafo / curl-with-sftp-https.md
Created December 11, 2018 16:42 — forked from tr4nk/curl-with-sftp-https.md
Install curl with sftp and https support on Ubuntu
  • Download latest curl
  • Manual install curl:
sudo apt install libssh2-1-dev libssl-dev
cd curl/
./configure --with-ssl --with-libssh2
make
sudo make install
  • Test installation:
@ederrafo
ederrafo / Ftp
Last active December 11, 2018 19:42
ftp sftp ftps ssl secure transfers data
SFTP: SSH File Transfer Protocol
- Is a standard network protocol that is used to transfer the data from one host to another host over a secure connection.
FTPS : File Transfer Protocol /SSL
@ederrafo
ederrafo / laravel-install.md
Last active July 12, 2020 01:38
laravel install

Laravel install

Upgrade

Upgrading :

# php --version
PHP 7.2.24-0ubuntu0.18.04.6 (cli) (built: May 26 2020 13:09:11) ( NTS )
# php artisan --version
@ederrafo
ederrafo / linux-groups.md
Last active April 13, 2022 01:02
linux ubuntu groups users

create group

# list all available grouos
$ compgen -g

# create group
$ groupadd sftpusers

# view users in group
@ederrafo
ederrafo / soapclient-consumer.php
Last active November 8, 2018 18:51
php soapclient soap native
<?php
$uri = 'http://eder.domain.net';
$options = [
'trace' => 1, // See the actual XML generated by PHP SOAP Client Class
'encoding' => 'UTF-8',
'exceptions' => true,
'uri' => 'http://tempuri.org/',
// this solve: text/xml; charset=utf-8 was not the expected type 'application/soap+xml; charset=utf-8'
'soap_version' => SOAP_1_2,
];
Use in ubuntu 14.04 lts
-- Install all stack developr
$ sudo apt-get update && sudo apt-get -y install apache2 php5 php5-mcrypt php5-mysql php5-odbc php5-mcrypt && sudo a2enmod rewrite && sudo service apache2 restart && cd ~ && curl -sS https://getcomposer.org/installer | sudo php && sudo mv composer.phar /usr/local/bin/composer && composer -V
$ sudo apt-get -y install git && git config --global user.email "[email protected]" && git config --global user.name "eder rafo" && git config --global alias.st status && git config --global alias.cm commit && git config --global alias.co checkout && git config --global alias.br branch && git config core.filemode false
-- Create administrator in sf2.8 compatible
$ php --version
PHP 5.5.9-1ubuntu4.26 (cli) (built: Sep 17 2018 13:46:30)
1. Authenticate the user via an API key(when developing a web service for instance)
2. The API key is provided for every request and is passed as a query string parameter or via an HTTP header.
https://www.cloudways.com/blog/symfony-api-token-authentication/