Skip to content

Instantly share code, notes, and snippets.

View cesarmiquel's full-sized avatar

Cesar Miquel cesarmiquel

View GitHub Profile
@cesarmiquel
cesarmiquel / shinto-perspective-spirited-away.md
Last active October 23, 2024 06:58
Shinto Perspectives in Miyazaki’s Anime Film “Spirited Away”
title author
Shinto Perspectives in Miyazaki’s Anime Film “Spirited Away”
James W. Boyd & Tetsuya Nishimura

I. Synopsis of the film

Spirited Away is the story of a young Japanese girl named Chihiro, who, with her parents, is moving to a new city to live. The first scene shows Chihiro sulking in the back seat of the car when her father takes the wrong road as they

@cesarmiquel
cesarmiquel / rcvalle.asm
Created November 13, 2023 03:07
C64 left scroller
//============================================================
// resources
//============================================================
.const logo_width = 10 + 93 + 10
.const logo_height = 14
.const state_1 = 1
.const state_2 = 2
.const state_3 = 3
@cesarmiquel
cesarmiquel / notes.md
Last active August 16, 2023 18:00
Restore uid = 1 (admin) in Drupal 9.x

Restore uid = 1 (admin user) in Drupal 9.x

I accidentally deleted the admin (uid = 1) user in Drupal 9.x. Here's how you can re-create it:

  1. Generate new user:
drush user:create admin  --password="qwerty" --mail="[email protected]"
drush user:role:add "administrator" admin
@cesarmiquel
cesarmiquel / tmux.md
Last active October 17, 2021 02:54
TMux bindings and commands

CLI Commands

  • tmux new -t PROJECT - new session
  • tmux ls - list sessions
  • tmux a - attach to sessions

Key Bindings

  • ctrl-b , - rename pane
  • ctrl-b $ - rename session
  • ctrl-w - list sessions / panes
@cesarmiquel
cesarmiquel / gist:8388b4065c033daa67901412c62d29da
Created October 6, 2021 18:05
Execute composer without memory limits
```
php -d memory_limit=-1 composer.phar <command>
```
@cesarmiquel
cesarmiquel / smartlist.json
Created September 22, 2021 14:21
smartlist.json
{"html":"<!-- DUST PATH: /home/felipe/proyectos/pagina12/frontend-pagina12/src/templates/article_smartlist.dust/ --><!-- Region portada --><!-- DUST PATH: /home/felipe/proyectos/pagina12/frontend-pagina12/src/templates/partials/amp/region_home_amp.dust/ --><div class=\"secciones\"><div class=\"seccion\"><a href=\"http://localhost:4400\"><div class=\"title-deco-portada\"></div><span>Portada</span></a><div class=\"section-article-bar-opinion-default\"></div><div class=\"nota-destacada\"><figure><a href=\"http://localhost:4400/348531-la-cgt-y-la-propuesta-de-reforma-del-sistema-de-salu\"><!-- DUST PATH: /home/felipe/proyectos/pagina12/frontend-pagina12/node_modules/frontend-core/views/widgets/fc_displayImg_amp.dust/ --><amp-img class=\"\" src=\"https://i-dev.pagina12.com.ar/styles/focal_3_2_470x313/public/2021-06/170539-whatsapp-20image-202021-06-15-20at-2023-16-32.jpeg?itok=fd4ojc_m\"layout=\"responsive\"alt=\"\"width=\"470\"height=\"313\"srcset=\"https://i-dev.pagina12.com.ar/styles/focal_3_2_300x200/public/20
@cesarmiquel
cesarmiquel / docker-tips.md
Last active June 4, 2021 01:52
Useful Docker commands

Useful Docker commands

System usage

Docker images and volues consume space on your computer. To get a birds eye of the usage do

$ docker system df

Which yields something like this:

@cesarmiquel
cesarmiquel / gb-rs-232.b
Created May 30, 2021 23:06
Gameboy RS 232 interfacing
; Taken from: https://fruttenboel.verhoeven272.nl/Gameboy/GBrs232.html
;***********************************
;* RS232 9600,n,8,1 *
;* *
;* through serial port *
;* *
;* Ken Kaarvik May21/99 *
;* *
;***********************************
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="https://dev-go-news.pantheonsite.io/" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Alertas | GO Noticias</title>
<link>https://dev-go-news.pantheonsite.io/</link>
<description>Alertas</description>
<language>es</language>
<pubDate>Mon, 05 Apr 2021 18:37:21 +0000</pubDate>
@cesarmiquel
cesarmiquel / palette-sketch.js
Last active April 4, 2021 05:07
p5js sketch file with a nice color palette.
function setup() {
createCanvas(800, 800, WEBGL);
}
function draw() {
background("#fefefe");
let scaleFactor = 1;