Skip to content

Instantly share code, notes, and snippets.

View cesarmiquel's full-sized avatar

Cesar Miquel cesarmiquel

View GitHub Profile
@cesarmiquel
cesarmiquel / apple2c-serial-applesoft.md
Created September 29, 2025 01:23
Use Apple 2C serial from Applesoft

Serial port communication on Apple IIc.

(original is here: https://c64retr.blogspot.com/2013/11/serial-port-communication-on-apple-iic.html)

Apple II was a very good and quite popular 8-bit machine in its time. It features a hardware UART for RS-232 port communication that can still be used today. Even from the BASIC language level, it is quite simple to make the use of that feature. I happen to own Apple IIc, which I did not own in the 80-s. I bought the set of the computer, monitor, printer and software on e-bay out of curiosity. I have to admit I also like the look of the little machine which was advertised as a portable Apple II. It would no pass the standards of portability today, however in the early to mid 1980-s it was enough if the computer had a carrying handle and/or some sort of a case. Apple IIc has an UART/RS-232 built in permanently as it does not feature the expansion bus as its bigger brother Apple II does.

The basics are as follows:

On the PC side setup port to 300 baud (default apple

@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>