Skip to content

Instantly share code, notes, and snippets.

View rplaurindo's full-sized avatar
🎯
Focusing

Rafael rplaurindo

🎯
Focusing
  • Rio de Janeiro - RJ, Brasil
View GitHub Profile
@rplaurindo
rplaurindo / diskpart.md
Last active January 28, 2023 12:23
Managing Disks On Windows By Line Command

Managing Disks

Using the DISKPART

Open the terminal as administrator, and run:

$ diskpart

Listinig All Disks

On Windows

SHA256 Algorithm

Run the command below

$ certutil -hashfile <filepath> SHA256

See more here.

Syncronizing README Files Through the StackEdit

Consider that the "main menu" is at top right corner of the stackedit.io page.

In the first step, log in with a Google account to synchronize all data.

@rplaurindo
rplaurindo / 1. Running a script.md
Last active June 22, 2021 17:08
Google Apps Script

Openning the Script Editor

With a Google Docs opened, choose

Tools -> Script Editor.

For use the script it must be encapsulated in a isolated (out of a class) function.

Using

Setting up an environment variable

General procedures

  • On tab Advanced click on Environment Variables;
  • Select the environment variable in the "User variables" or "System variables" and click on Edit;

On Windows

  • Click with right button of mouse over My Computer in folder navigator;

Disabling Fast Boot and Hibernate

Open the console as administrator, so run

$ powercfg /h off

$ powercfg /hibernate off

Disabling the Encryption

Using

Installing dependencies

Inside the folder that contains the package.json, run:

$ npm i

Then the package-lock.json file will be created.

@rplaurindo
rplaurindo / 1. Angular.md
Last active March 23, 2026 15:14
Front-end framework for web applications

See how to install a specific version of the nodeJS.

Installing

Globally

$ npm i -g @angular/cli

Manually

@rplaurindo
rplaurindo / 1. PHP interpreter (on Windows).md
Last active October 9, 2024 04:51
Installing PHP interpreter

Downloading

Download the interpreter source code here.

After download the interpreter source code (preferable), set in the environment variables of the Windows.

Setting up the PHP interpreter in the environment variables

At Path key set the php interpreter path.

@rplaurindo
rplaurindo / Deploying a Rails app using RVM and Passenger.md
Last active May 24, 2018 22:26
Steps to deploy a Rails application with Passenger.

Deploying a Rails Application using RVM and Passenger

Instalations (via APT)

Required packages

  • curl
  • gnupg
  • build-essential
  • git