Skip to content

Instantly share code, notes, and snippets.

@pathtolearn
pathtolearn / composing-software.md
Created January 5, 2021 17:18 — forked from rosario/composing-software.md
Eric Elliott's Composing Software Series
Sample .NET Core + Npgsql for RC2
1] Project.json
{
"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Npgsql": "3.1.0"
##############################
## Java
##############################
.mtj.tmp/
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
@pathtolearn
pathtolearn / base64.js
Created April 15, 2020 07:13 — forked from enepomnyaschih/base64.js
https://www.npmjs.com/package/byte-base64 - Encode JS Uint8Array, simple array of bytes or native JS string to base64 and back
/*
MIT License
Copyright (c) 2020 Egor Nepomnyaschih
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@pathtolearn
pathtolearn / envoy-config.yml
Created April 14, 2020 11:56
Envoy Configuration
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address: { address: 0.0.0.0, port_value: 9901 }
static_resources:
listeners:
- name: listener_0
address:
socket_address: { address: 0.0.0.0, port_value: 8080 }
See forum post Any way to view Android screen remotely without root? - Post #9.
Connect the device via USB and make sure debugging is working;
adb tcpip 5555. This makes the device to start listening for connections on port 5555;
Look up the device IP address with adb shell netcfg or adb shell ifconfig with 6.0 and higher;
You can disconnect the USB now;
adb connect <DEVICE_IP_ADDRESS>:5555. This connects to the server we set up on the device on step 2;
Now you have a device over the network with which you can debug as usual.
To switch the server back to the USB mode, run adb usb, which will put the server on your phone back to the USB mode. If you have more than one device, you can specify the device with the -s option: adb -s <DEVICE_IP_ADDRESS>:5555 usb.
@pathtolearn
pathtolearn / 2'scomplement
Created February 2, 2019 15:25
2's complement
https://www.cs.cornell.edu/~tomf/notes/cps104/twoscomp.html
@pathtolearn
pathtolearn / mysql
Created November 4, 2018 05:41
Uninstall mysql ubuntu
sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
sudo rm -rf /etc/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean
@pathtolearn
pathtolearn / See Links
Created October 11, 2018 17:23
Flutter Android Licenses Issue
@pathtolearn
pathtolearn / B4 Timeline
Created October 3, 2018 14:18
B4 Timeline
https://www.codeply.com/go/1aIPD46B3f/bootstrap-4-timeline