Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<style>
@raphaeldealmeida
raphaeldealmeida / wp-install.sh
Created June 14, 2021 18:21
Step-by-step wp install using wp-cli
mkdir blog
cd blog
wp core download
wp config create --dbname=wordpress_plugin --dbuser=root --dbpass=root
wp db create
wp core install --url=example.com --title=Example --admin_user=supervisor --admin_password=password [email protected]
wp server --port=8001
@raphaeldealmeida
raphaeldealmeida / MyComponent.tsx
Created July 15, 2023 13:00
Generic mithril js component snippet
import m from "mithril"
type TProps = {}
const MyComponent: m.ClosureComponent<TProps> = () => {
return {
view: () =>
{
return <>
function initPayPalButton() {
var shipping = 0;
var orderDescription = 'Additional Services';
if(orderDescription === '') {
orderDescription = 'Item';
}
paypal.Buttons({
style: {
shape: 'rect',
@raphaeldealmeida
raphaeldealmeida / typescriptreact.json
Last active June 28, 2024 12:49
Mithril VS Code snippets
{
// Mithril snippets
// Paste in File > Preferences > Configure User Snippets > typescriptreact.json
// ref: https://code.visualstudio.com/docs/editor/userdefinedsnippets
"Mithril component": {
"prefix": ["mcomp"],
"body": [
"import m from \"mithril\"",
"",
@raphaeldealmeida
raphaeldealmeida / codeigniter_iis.md
Created September 13, 2024 00:22
Instalar codeigniter 4 no IIS

O CodeIgniter vem com um arquivo .htaccess para rodar diretamente no servidor web Apache. Porém isso não funciona no IIS.

1 - Configurar as permissões no IIS

Abra o Gerenciador do IIS (IIS Manager).

Adicione um novo Website:

  • Clique com o botão direito em Sites e escolha Adicionar site.
  • Preencha os detalhes como o nome do site, caminho físico da sua aplicação (onde você colocou o CodeIgniter no servidor) e configure a porta.
  • Certifique-se de que o pool de aplicativos esteja configurado para rodar com a versão correta do PHP.