This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
#!/usr/bin/env bash | |
# Adapted from https://github.com/girst/hardpass-sendHID/blob/master/README.md | |
# Exit on first error. | |
set -e | |
# Treat undefined environment variables as errors. | |
set -u |
#!/usr/bin/env python3 | |
""" | |
Android11 | |
Pair and connect devices for wireless debug on terminal | |
python-zeroconf: A pure python implementation of multicast DNS service discovery | |
https://github.com/jstasiak/python-zeroconf | |
""" |
#!/bin/bash | |
# References: | |
# https://www.isticktoit.net/?p=1383 | |
# http://irq5.io/2016/12/22/raspberry-pi-zero-as-multiple-usb-gadgets/ | |
# After running this, use hid_gadget_test.c <https://github.com/aagallag/hid_gadget_test/blob/master/hid_gadget_test.c> | |
cd /sys/kernel/config/usb_gadget/ |
0.0.0.0 feedback.microsoft-hohm.com | |
0.0.0.0 search.msn.com | |
0.0.0.0 a.ads1.msn.com | |
0.0.0.0 a.ads2.msn.com | |
0.0.0.0 a.rad.msn.com | |
0.0.0.0 ac3.msn.com | |
0.0.0.0 ads.msn.com | |
0.0.0.0 ads1.msn.com | |
0.0.0.0 b.ads1.msn.com | |
0.0.0.0 b.rad.msn.com |
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
java -jar /home/expert/work/tools/apktool.jar d [email protected]
android:networkSecurityConfig="@xml/network_security_config"
attribute to application
element.<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config>
As a developer, it bothers me when someone sends me a large pdf file compared to the number of pages. Recently, I recieved a 12MB scanned document for just one letter-sized page... so I got to googlin, like I usually do, and found ghostscript!
to learn more abot ghostscript (gs): https://www.ghostscript.com/
What we are interested in, is the gs command line tool, which provides many options for manipulating PDF, but we are interested in compressign those large PDF's into small yet legible documents.
credit goes to this answer on askubuntu forum: https://askubuntu.com/questions/3382/reduce-filesize-of-a-scanned-pdf/3387#3387?newreg=bceddef8bc334e5b88bbfd17a6e7c4f9
Since macOS High Sierra sips --addIcon
is no longer supported.
An easier way to add and image to a file/folder is to use fileicon
npm package.
The new syntax is:
fileicon set foo img.png
AI development tools are giving us more ability to steer them and share the context that's in our heads. Some things are my global desires, while others apply project-wide or org-wide. This has all given birth to a plethora of "rules" files that we need to manage.
https://code.google.com/p/android/issues/detail?id=32696#c5 | |
If you have a certificate that is not | |
trusted by Android, when you add it, it goes in the personal cert store. | |
When you add a cert in this personal cert store, the system requires a | |
higher security level to unlock the device. But if you manage to add your | |
cert to the system store then you don't have this requirement. Obviously, | |
root is required to add a certificate to the system store, but it is quiet | |
easy. |