Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
h0lybyte committed Aug 29, 2023
1 parent 736c820 commit 48c660d
Show file tree
Hide file tree
Showing 17 changed files with 1,172 additions and 650 deletions.
47 changes: 36 additions & 11 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,9 @@ declare module 'astro:content' {

type BaseSchemaWithoutEffects =
| import('astro/zod').AnyZodObject
| import('astro/zod').ZodUnion<import('astro/zod').AnyZodObject[]>
| import('astro/zod').ZodUnion<[BaseSchemaWithoutEffects, ...BaseSchemaWithoutEffects[]]>
| import('astro/zod').ZodDiscriminatedUnion<string, import('astro/zod').AnyZodObject[]>
| import('astro/zod').ZodIntersection<
import('astro/zod').AnyZodObject,
import('astro/zod').AnyZodObject
>;
| import('astro/zod').ZodIntersection<BaseSchemaWithoutEffects, BaseSchemaWithoutEffects>;

type BaseSchema =
| BaseSchemaWithoutEffects
Expand Down Expand Up @@ -1510,6 +1507,34 @@ declare module 'astro:content' {
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-25.md": {
id: "08-25.md";
slug: "08-25";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-26.md": {
id: "08-26.md";
slug: "08-26";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-27.md": {
id: "08-27.md";
slug: "08-27";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"08-28.md": {
id: "08-28.md";
slug: "08-28";
body: string;
collection: "journal";
data: InferEntrySchema<"journal">
} & { render(): Render[".md"] };
"asset.mdx": {
id: "asset.mdx";
slug: "asset";
Expand Down Expand Up @@ -1743,8 +1768,8 @@ declare module 'astro:content' {
} & { render(): Render[".mdx"] };
};
"project": {
"api.mdx": {
id: "api.mdx";
"api/api.mdx": {
id: "api/api.mdx";
slug: "api";
body: string;
collection: "project";
Expand All @@ -1757,8 +1782,8 @@ declare module 'astro:content' {
collection: "project";
data: any
} & { render(): Render[".mdx"] };
"charles.mdx": {
id: "charles.mdx";
"charles/charles.mdx": {
id: "charles/charles.mdx";
slug: "charles";
body: string;
collection: "project";
Expand Down Expand Up @@ -1827,8 +1852,8 @@ declare module 'astro:content' {
collection: "project";
data: any
} & { render(): Render[".mdx"] };
"stream.mdx": {
id: "stream.mdx";
"stream/stream.mdx": {
id: "stream/stream.mdx";
slug: "stream";
body: string;
collection: "project";
Expand Down
204 changes: 194 additions & 10 deletions .svelte-kit/ambient.d.ts

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
},
"devDependencies": {
"@types/eslint": "^8.44.2",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"astro-eslint-parser": "^0.14.0",
"eslint": "^8.46.0",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"astro-eslint-parser": "^0.15.0",
"eslint": "^8.48.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-import-resolver-typescript": "^3.6.0",
"eslint-plugin-astro": "^0.28.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-astro": "^0.29.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-tsdoc": "^0.2.17",
"sass": "^1.65.1",
"sass": "^1.66.1",
"svgo": "2.8.0",
"yarn-upgrade-all": "^0.7.2"
},
Expand All @@ -38,9 +38,9 @@
"@astrojs/partytown": "^1.2.3",
"@astrojs/preact": "^2.2.2",
"@astrojs/prefetch": "^0.3.0",
"@astrojs/react": "^2.2.1",
"@astrojs/sitemap": "^2.0.1",
"@astrojs/svelte": "^3.1.0",
"@astrojs/react": "^2.3.2",
"@astrojs/sitemap": "^2.0.2",
"@astrojs/svelte": "^3.1.1",
"@astrojs/tailwind": "^4.0.0",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
Expand All @@ -49,37 +49,37 @@
"@lottiefiles/lottie-player": "^2.0.2",
"@lottiefiles/react-lottie-player": "^3.5.3",
"@mdi/js": "^7.2.96",
"@mui/icons-material": "^5.14.3",
"@mui/material": "^5.14.4",
"@mui/icons-material": "^5.14.6",
"@mui/material": "^5.14.6",
"@nanostores/persistent": "^0.9.1",
"@nanostores/react": "^0.7.1",
"@react-three/fiber": "^8.13.6",
"@supabase/supabase-js": "^2.32.0",
"@sveltejs/kit": "^1.22.5",
"@react-three/fiber": "^8.13.7",
"@supabase/supabase-js": "^2.33.1",
"@sveltejs/kit": "^1.23.0",
"@tailwindcss/aspect-ratio": "^0.4.2",
"@tailwindcss/forms": "^0.5.4",
"@tailwindcss/forms": "^0.5.6",
"@tailwindcss/line-clamp": "^0.4.4",
"@tailwindcss/typography": "^0.5.9",
"@types/lodash": "^4.14.197",
"@types/react-router-dom": "^5.3.3",
"alpinejs": "^3.12.3",
"appwrite": "^11.0.0",
"astro": "^2.10.5",
"astro-compress": "^2.0.5",
"alpinejs": "^3.13.0",
"appwrite": "^11.0.1",
"astro": "^2.10.14",
"astro-compress": "^2.0.14",
"crypto-js": "^4.1.1",
"dompurify": "^3.0.5",
"flowbite": "^1.8.1",
"flowbite-react": "^0.5.0",
"interweave": "^13.1.0",
"jquery": "^3.7.0",
"jquery": "^3.7.1",
"lodash": "^4.17.21",
"mermaid": "^10.3.0",
"mermaid": "^10.4.0",
"micromodal": "^0.4.10",
"million": "^2.5.10",
"million": "^2.6.0-beta.10",
"nanostores": "^0.9.3",
"openpgp": "^5.9.0",
"react": "^18.2.0",
"react-cookie": "^4.1.1",
"react-cookie": "^6.1.0",
"react-dom": "^18.2.0",
"react-hook-form": "^7.45.4",
"react-icons": "^4.10.1",
Expand All @@ -88,11 +88,11 @@
"rehype-autolink-headings": "^6.1.1",
"rehype-external-links": "^2.1.0",
"rehype-slug": "^5.1.0",
"rehype-stringify": "^9.0.3",
"rehype-stringify": "^10.0.0",
"rehype-toc": "^3.0.2",
"remark-toc": "^8.0.1",
"sharp": "^0.32.4",
"svelte": "^4.1.2",
"sharp": "^0.32.5",
"svelte": "^4.2.0",
"tailwindcss": "^3.3.3",
"tailwindcss-fluid-type": "^2.0.3",
"three": "^0.155.0",
Expand Down
28 changes: 14 additions & 14 deletions src/content/.obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"type": "split",
"children": [
{
"id": "077e9b376ada5d4a",
"id": "0af5a14b15e8cf9d",
"type": "tabs",
"children": [
{
"id": "1e65db65e2721f35",
"id": "2e352c93516d3134",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "journal/08-24.md",
"file": "journal/08-28.md",
"mode": "source",
"source": false
}
Expand Down Expand Up @@ -93,7 +93,7 @@
"state": {
"type": "backlink",
"state": {
"file": "journal/08-24.md",
"file": "journal/08-28.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -110,7 +110,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "journal/08-24.md",
"file": "journal/08-28.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -133,7 +133,7 @@
"state": {
"type": "outline",
"state": {
"file": "journal/08-24.md"
"file": "journal/08-28.md"
}
}
}
Expand All @@ -155,8 +155,14 @@
"command-palette:Open command palette": false
}
},
"active": "1e65db65e2721f35",
"active": "2e352c93516d3134",
"lastOpenFiles": [
"journal/08-28.md",
"journal/08-27.md",
"journal/08-26.md",
"journal/08-25.md",
"application/ml/_services/clarifai.mdx",
"journal/08-24.md",
"project/charles/_machine/Machine.astro",
"project/charles/_machine/ram.mdx",
"project/charles/_machine/gpu.mdx",
Expand All @@ -166,10 +172,7 @@
"project/charles/_notes/short-story.mdx",
"project/charles/_notes",
"project/charles/charles.mdx",
"project/charles",
"project/api/_api/auth.mdx",
"journal/08-23.md",
"journal/08-24.md",
"journal/08-22.md",
"journal/08-21.md",
"journal/08-20.md",
Expand All @@ -189,9 +192,6 @@
"journal/08-13.md",
"theory/bizops/_graph/business-model.md",
"theory/bizops/_notes/notes.md",
"application/pocketbase/_journal/j1.md",
"application/pocketbase/_notes/pocketbase_docker.md",
"application/pocketbase/_notes/pocketbase_notes.md",
"application/pocketbase/_data/_backups/pocketbase_backups.md"
"application/pocketbase/_journal/j1.md"
]
}
18 changes: 18 additions & 0 deletions src/content/application/android/_android/Android.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
const android = await Astro.glob('./*.md*');
import MDXJS from '@w/MDXJS.astro';
---
{
android.map((note) => (
<MDXJS transparent={false}>
<div>
<article class="">
<h2>{note.frontmatter.title}</h2>
<p>{note.frontmatter.description}</p>

<note.Content />
</article>
</div>
</MDXJS>
))
}
93 changes: 93 additions & 0 deletions src/content/application/android/_android/device-commands.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
---
title: Android Device Commands
description: |
Android Device Commands
---


### Device Commands

Android ADB Device commands are commands that you can use to control the Android device over USB from a computer.
You can use them to list all devices, restart server and reboot!

- `adb devices` - List all connected devices.

- `adb devices -l` - Query additional information from devices.
- `adb get-state` - Information on the device state.
- `adb get-serialno` - Query the device serial number.

- `adb root` - Launch module adbd with root permission.
- Error 1: `adbd cannot run as root in production builds`
- Resolution:
- `adb start-server` - Start the adb server.
- `adb kill-server` - Terminate the adb server.
- `adb reboot` - Restart the current device.
- `adb help` - Display additional information.

### Shell

> Warning: Shell commands can brick your operating system, so make sure to double check them before running.
ADB shell is a command-line interface that you can use to access the shell and run various commands on your Android device.
You can use ADB shell commands to perform actions such as changing the resolution of your device display, uninstalling bloatware or system apps, enabling and disabling features, modifying the system files, ect..

> Remember to keep a backup of the commands that you run via shell, I recommend creating a `log.txt` file and output all the commands to that file.
- `adb shell` - Launch the shell terminal for the device.
- `adb -s $deviceString $deviceCommand` - Send the $deviceCommand to a specific device named $deviceString
- `adb shell pwd` - Command to list current directory.
- `adb shell ls` - Command to list all the directory contents of the device.
- `adb shell ls -s` - Additional size information.
- `adb shell ls -R` - Recursion of the folders.
- `adb shell netstat` - Query the TCP information
- `adb shell dumpsys` - An android tool that dumps information related to system services.
- `adb shell dumpsys iphonesybinfo` - Query the IMEI information.
- `adb shell dumpsys battery` - Query battery information.
- `adb shell dumpsys battery set level $v` - Device battery level from 0 to 100.
- `adb shell dumpsys battery reset` - Reset the device battery.
- `adb shell dumpsys activity $package` - Query activity of package.
- `adb shell pm list features` - Query device features.
- `adb shell service list` - Query device services.
- `adb shell wm` - ◈Null
- `adb shell wm size` - Current device screen resolution.
- `adb shell wm size $WxH` - Change device screen resolution.
- `adb shell wm size reset` - Reset device screen resolution.
- `adb shell wm density` - ◈Null
- `adb shell wm density reset` - Reset device density.
- `adb shell ps` - Query process status on the device.
- `exit` - To exit ADB.

---

### Key Events

Android Key Events - A quick breakdown for each event and how the operating system handles them.

Generic Android Keyevents:

- `adb shell input keyevent`

- `adb shell input keyevent 0` - Keycode 0
- `adb shell input keyevent 1` - Soft Left
- `adb shell input keyevent 2` - Soft Right
- `adb shell input keyevent 3` - Home Button Event.
- `adb shell input keyevent 4` - Back Button Event.
- `adb shell input keyevent 5` - Call Event.
- `adb shell input keyevent 6` - End Call / Hangup Event.
- Events 7 to 18 are generic cell phone events.
- `adb shell input keyevent 7` - Keycode 0
- `adb shell input keyevent 8` - Keycode 1 aka Number 1
- `adb shell input keyevent 9` - Keycode 2 aka Number 2
- `adb shell input keyevent 10` - Keycode 3 aka Number 3
- `adb shell input keyevent 11` - Keycode 4 aka Number 4
- `adb shell input keyevent 12` - Keycode 5 aka Number 5
- `adb shell input keyevent 13` - Keycode 6 aka Number 6
- `adb shell input keyevent 14` - Keycode 7 aka Number 7
- `adb shell input keyevent 15` - Keycode 8 aka Number 8
- `adb shell input keyevent 16` - Keycode 9 aka Number 9
- `adb shell input keyevent 17` - STAR Key
- `adb shell input keyevent 18` - Pound Key

- Koltin: `open class KeyEvent: InputEvent, Parcelable`

- Java: `pulibc class KeyEvent extends InputEvent implements Parcelable`
Loading

0 comments on commit 48c660d

Please sign in to comment.