- install termux
- run ifconfig and get ip address
- run whoami and get uid
- set password
- run sshd
- connect to it using ssh client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$svg_content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
# create tex file first | |
with open("tmp.tex", "w", encoding="utf8") as out: | |
out.write("\\documentclass{article}\n") | |
out.write("\\usepackage{float}\n") | |
out.write("\\usepackage{graphicx}\n") | |
out.write("\\usepackage[a4paper, total={6in, 8in}]{geometry}\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def foo(implicit n: 42) = { n + 1 } | |
implicit n = 55; | |
foo // 56 | |
trait ConcurrentRunner { def run() } | |
class NilRunner < ConncurrentRunner; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🌞 Morning 88 commits █▍░░░░░░░░░░░░░░░░░░░ 7.0% | |
🌆 Daytime 558 commits █████████▎░░░░░░░░░░░ 44.3% | |
🌃 Evening 504 commits ████████▍░░░░░░░░░░░░ 40.0% | |
🌙 Night 110 commits █▊░░░░░░░░░░░░░░░░░░░ 8.7% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env python | |
# vim: tabstop=4 expandtab shiftwidth=4 | |
""" | |
vnote2txt - converts vNote files (e.g. from Galaxy S2 Memo app) to text | |
Windows users - please install Python from www.python.org | |
Can be double-clicked or run without arguments to show a file chooser | |
Or can be run from the commandline, e.g. python ./vnote2txt /home/user/docs/*.vn | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import io | |
import numpy as np | |
import torch | |
from u2net import U2Net | |
from yolov8 import detect_objects | |
from diffusion import StableDiffusionInpaintPipeline | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo vi host-darwin.c | |
sudo vi aarch64.h | |
sudo make |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="box"> 1 </div> | |
<div class="box2"> 2 </div> | |
<div class="box"> 3 </div> |
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
NewerOlder