Skip to content

Instantly share code, notes, and snippets.

View FKRIK's full-sized avatar

Fernando Krik FKRIK

  • UFPR
  • Curitiba, Brazil
View GitHub Profile

PHP e PDO: trabalhando com banco de dados

  • Versão mínima do PHP 7.4
  • Composer (autoloader)
Para instanciar uma conexão com o banco usando o SQLite

Criar um arquivo .sqlite

Blender Shortcuts ⌨️

X - Left & Right
Y - Forward & Back
Z - Up & Down

Resets

@FKRIK
FKRIK / git_config.txt
Created December 22, 2022 04:21
Basic configuration of git and github SSH key
$ git config --global user.name "usuario"
$ git config --global user.email [email protected]
$ git config --global core.editor kate
$ git config --list
$ ssh-keygen -t ed25519 -C "[email protected]"
- Ir para o diretório que salvou a chave pública e copiá-la;
- Github > Settings > SSH > New SSH Key > colar a chave pública;
@FKRIK
FKRIK / dotnet_ArchLinux.md
Last active December 28, 2022 21:21
How to install dotnetSDK/dotnetRUNTIMe/aspnetRUNTIME on archlinux

Dotnet on ArchLinux

How to install dotnetSDK/dotnetRUNTIME/aspnetRUNTIME on archlinux.

Fazer o download dos pacotes dotnet-sdk & dotnet-runtime & aspnet-runtime

BigLinux -> As instalações podem ser feitas pelo Adiconar/Remover programas (MUITO mais fácil)

Versão mais atualizada

Clique aqui para acessar o AR do dotnet-sdk & dotnet-runtime

@FKRIK
FKRIK / win-format.md
Last active May 21, 2023 21:59
Check this in a fresh windows install

Formatação

Checar esta anotação sempre que fizer uma nova formatação do computador.

Windows

Open the shell as administrator and follow the steps:

  1. Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.
  2. Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
  3. Chocolatey instalation should be completed.
@FKRIK
FKRIK / settings.json
Last active December 11, 2022 19:58
vscode_settings_json
{
"workbench.colorTheme": "Origamid Next",
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "'Fira Code SemiBold'",
"editor.fontLigatures": true,
"editor.fontSize": 14,
"editor.lineHeight": 1.5,
"editor.wordWrap": "on",
"workbench.startupEditor": "newUntitledFile",
"files.autoSave": "afterDelay",
@FKRIK
FKRIK / sge.sql
Last active February 2, 2021 20:31
/*
*/
CREATE TABLE departamento(
cod_depart INT NOT NULL AUTO_INCREMENT,
nome VARCHAR(45) NOT NULL,
PRIMARY KEY (cod_depart)