Skip to content

Instantly share code, notes, and snippets.

View martin12333's full-sized avatar

Martin Milan martin12333

View GitHub Profile
@martin12333
martin12333 / GitCommitEmoji.md
Created February 2, 2023 19:07 — forked from parmentf/GitCommitEmoji.md
Git Commit message Emoji
@martin12333
martin12333 / compile-lynx-wasm.sh
Created January 19, 2023 09:35 — forked from Potherca/compile-lynx-wasm.sh
Steps to compile the Lynx web browser to Web Assembly
# Sources used in figuring this out:
#
# - https://developer.mozilla.org/en-US/docs/WebAssembly/C_to_wasm
# - https://emscripten.org/docs/compiling/Building-Projects.html#building-projects
# Set up Emscripten SDK
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk/
./emsdk install latest
./emsdk activate latest
@martin12333
martin12333 / pycurses.py
Created January 16, 2023 10:12 — forked from claymcleod/pycurses.py
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()
@martin12333
martin12333 / ubuntu-setup.sh
Created November 10, 2022 17:03 — forked from wildlyinaccurate/ubuntu-setup.sh
Setting up a new Ubuntu machine
#!/usr/bin/env bash
# Generate an ED25519 key and display the public key
ssh-keygen -o -a 100 -t ed25519
cat ~/.ssh/id_ed25519.pub
read -p 'You should add your public key to GitHub now. Press any key to continue...'
read -p 'Now you will generate a GPG key. Please use RSA/RSA with a keysize of 4096 bits. Press any key to continue...'
gpg --default-new-key-algo rsa4096 --gen-key
@martin12333
martin12333 / Dockerfile
Created November 10, 2022 15:52 — forked from psychemedia/Dockerfile
First sketch of a contentmine dockerfile
FROM node:4.3.2
##Based on
MAINTAINER Tony Hirst
RUN apt-get clean -y && apt-get -y update && apt-get -y upgrade && \
apt-get -y update && apt-get install -y wget ant unzip openjdk-7-jdk && \
apt-get clean -y
@martin12333
martin12333 / ohayo-22ah.sh-session
Last active October 20, 2022 17:13
obsoleted by https://github.com/breck7/ohayo/issues/91 ... now I have used ➜ ~ git:(wsl) ✗ git clone https://github.com/breck7/ohayo ; npm i . ;
➜ ~ git:(wsl) ✗
➜ ~ git:(wsl) ✗
➜ ~ git:(wsl) ✗ mkdir ohayo # EDITED
➜ ~ git:(wsl) ✗ cd ohayo # EDITED
➜ breck7 git:(wsl) ✗ npm i ohayo
at <https://github.com/visionmedia/superagent/releases>.npm WARN deprecated [email protected]: Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIaunpm WARN saveError ENOENT: no such file or directory, open '/home/martin/breck7/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN enoent ENOENT: no such file or directory, open '/home/martin/breck7/package.json'
npm WARN breck7 No descriptionnpm WARN breck7 No repository field.
npm WARN breck7 No README datanpm WARN breck7 No license field.
@martin12333
martin12333 / nested-code-blocks.md
Created October 6, 2022 17:03 — forked from mbigras/nested-code-blocks.md
Nested code blocks in technical documentation

Nested code blocks

Nested code blocks clarify technical documentation but rendering them with markdown is tricky.

Overview

Google Cloud Platform (GCP) technical documentation is formatted well enough; however, emulating that format with markdown is tricky.

The following are the main features about GCP documentation that I like:

@martin12333
martin12333 / copy-details-to-clipboard.log
Last active November 21, 2022 15:57
an attachment to the screenshots of my Anaconda reinstallation ... Anaconda installation log
Output folder: D:\conda\Lib
Extract: _nsis.py
Extract: _system_path.py
Output folder: D:\conda\conda-meta
Extract: history
Output folder: D:\conda
Extract: _conda.exe
Output folder: D:\conda
Output folder: D:\conda\pkgs
Extract: env.txt

Datasette tutorial written by GPT3

Prompt: a step by step tutorial for getting started with Datasette

This is a guide for getting started with Datasette. Datasette is a tool for creating and publishing data-driven websites. It is designed to make it easy to publish structured data, such as the results of a database query, in a way that is highly visible and interactive.

Datasette can be used to create websites that allow users to explore and visualize data, or to build applications that expose data via APIs. It can also be used as a static site generator, creating a completely static HTML website that can be deployed anywhere.

This guide will cover the basics of how to install and use Datasette. It will also show you how to create a simple data-driven website using Datasette.

ERROR line number at source: 1541
ERROR at line 2024:
Traceback (most recent call last):
File "/mnt/d/umarti/dowNLOADS--SYMLINKED/hyperpolyglot/./bin/wikidot_to_html.py", line 1743, in <module>
Wikidot(args).to_html(sys.stdin, sys.stdout)
File "/mnt/d/umarti/dowNLOADS--SYMLINKED/hyperpolyglot/./bin/wikidot_to_html.py", line 1728, in to_html
BlockParser(self, input_stream).process_lines(output_stream)
File "/mnt/d/umarti/dowNLOADS--SYMLINKED/hyperpolyglot/./bin/wikidot_to_html.py", line 1707, in process_lines
self._process_lines(NullOutputStream())
File "/mnt/d/umarti/dowNLOADS--SYMLINKED/hyperpolyglot/./bin/wikidot_to_html.py", line 1689, in _process_lines