Skip to content

Instantly share code, notes, and snippets.

View aceberg's full-sized avatar
🏠
Working from home

Andrew Erlikh aceberg

🏠
Working from home
  • 15:37 (UTC +07:00)
View GitHub Profile
@FreddieOliveira
FreddieOliveira / docker.md
Last active May 24, 2024 06:30
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@venkatsgithub1
venkatsgithub1 / ParallelScroll.css
Last active August 12, 2023 18:02
Small Demo on creation of Parallel Scrolls in two Div elements.
#sb1 {
width:400px;
height:400px;
display:inline-block;
border: 3px solid lime;
word-wrap:break-word;
overflow-x:scroll;
overflow-y:scroll;
}
p {
@anhtran
anhtran / base.html
Last active July 9, 2023 16:09
Multiple template files in Go with gin framework
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{if .title}}{{.title}}{{else}}{{block "title" .}}My Website{{end}}{{end}}</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
{{block "media_head" .}}{{end}}
</head>
<body>
<div class="container">
@esperlu
esperlu / mysql2sqlite.sh
Created April 27, 2011 05:46
MySQL to Sqlite converter
#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite