# Create a keystore
keytool -genkey -v -keystore /path/to/example-key.keystore -keyalg RSA -keysize 2048 -alias alias_name -validity 10000
# Get expiration dates in the store
keytool -list -v -keystore keystore.jks
Add to ant.properties
key.store=/path/to/example-key.keystore
key.alias=alias_name
This includes Solaris derivatives as well, such as OpenSolaris and the Illumos project http://www.brendangregg.com/blog/2017-09-05/solaris-to-linux-2017.html
svcadm clear <FMRI>
svcs -a
/var/svc/log
boot cdrom
test-all
banner
.enet-addr
show-devs
- vmadm - start, stop, etc virtual machines
- imgadm - find, download, install images
sdc-vmapi vms | json -H -c "this.alias && this.alias.match(/riak)"
sdc-fwapi /rules
sdc-vmapi /vms/?action=update -d '{ "resolvers": ["8.8.8.8", "8.8.4.4"]}'
pcidump -v
pkg_add <package>
ifconfig carp0 inet alias 192.0.1.2 netmask 255.255.255.255
ifconfig carp0 delete 192.0.1.2
cd /usr
cvs get ports
dd if=install*.fs of=/dev/sd1c bs=1m
# See installed patches
syspatch -l
# See uninstalled patches
syspatch -c
# Install any uninstalled patches
syspatch
Edit /etc/rc.securelevel or sysctl kern.securelevel
num | desc |
---|---|
-1 | permanently insecure |
0 | insecure |
1 | secure |
2 | highly secure |
See man 8 release
# get documentation
man ld.so
# get information about what is getting loaded at run-time
LD_DEBUG=1 ./a.out
ifconfig bge0 up
ifconfig bge1 up
ifconfig trunk0 trunkport <proto> bge0 trunkport bge1 \
192.168.1.1 netmask 255.255.255.0
proto | desc |
---|---|
failover | Fails over to next link |
lacp | increases link speed and redundancy, requires lacp-capable switch |
loadbalance | load-balancing |
roundrobin | Use round-robin scheduler to distribute traffic |
master advertises on port 112
ifconfig carpN create
ifconfig carpN [advbase n] [advskew n] [balancing mode] \
[carpnodes vhid:advskew,vhid:advskew,...] [carpdev iface] \
[[-]carppeer peer_address] [pass passphrase] [state state] [vhid host-id]
# Force master to give up control
ifconfig carp0 down
# Allow preemption
sysctl net.inet.carp.preempt=1
flag | command |
---|---|
-e | Enable pf |
-d | Disable pf |
-nf | parse file, don't load |
-f | load pf.conf file |
-sr | show rulesets |
-ss | show state table |
-si | show filter stats+counters |
-sl | show label counters |
-sa | show everything |
action [direction] [log] [quick] [on interface] [af] [proto protocol] \
[from src_addr [port src_port]] [to dst_addr [port dst_port]] \
[flags tcp_flags] [state]
action | pass/block |
---|---|
direction | in/out |
quick | if packet matches rule, do action and skip rest of rules |
af (address family) | inet/inet6 |
protocol | udp/tcp/icmp |
($ext_if
) is shorthand for "use the IP address for the rule" (handy with NAT)
block in all
block out all
table <firewall> const { self }
net.inet.carp.preempt=1
ifconfig em1 10.10.10.2 netmask 255.255.255.0
ifconfig pfsync0 syncdev em1
ifconfig pfsync0 up
- AsiaBSDCon
- BSDCan
- All Systems Go
- Quickly press and let go of the volume up button
- Quickly press and let go of the volume down button
- Press and hold the right side button until reboot
- viewDidLoad
- viewWillAppear
- viewDidAppear
- vieWillDisappear
- viewDidDisappear
-
On Mac
Safari -> Preferences -> Advanced -> Show Develop in menu bar
-
On iPhone
Settings -> Safari -> Advanced -> Web Inspector
<title>WebApp</title>
Rounded corners, no added shiny (iOS 4.2):
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-precomposed.png"/>
Added shiny:
<link rel="apple-touch-icon" href="touch-icon-iphone.png" />
<link rel="apple-touch-icon" sizes="72x72" href="touch-icon-ipad.png" />
<link rel="apple-touch-icon" sizes="114x114" href="touch-icon-iphone4.png" />
With no sizes the default is 57x57 px
(Multiple sizes iOS 4.2+)
<link rel="apple-touch-startup-image" href="/startup.png">
320x460 px, portrait
<meta name="apple-mobile-web-app-capable" content="yes" />
You might think it's an innocent meta tag, but in fact it's a powerful and dangerous meta tag if you add it irresponsibly. You must provide a single page application solution offering back buttons inside the UI -or use location.href instead of normal links if you don't want them to be opened in the browser instead of your app's container-. https://medium.com/@firt/dont-use-ios-web-app-meta-tag-irresponsibly-in-your-progressive-web-apps-85d70f4438cb
That will involve: a) adding back navigation everywhere, b) create a SPA experience or use location.href instead of links for internal navigation, c) if the load process is done in fullscreen mode (navigator.standalone==true), always load the home screen not matter what the stored URL says and please d) don't suggest me to "download an app" if I'm already inside an app-like experience.
NB - must have standalone mode on.
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport" content="initial-scale=1.0">
<meta name="viewport" content="maximum-scale=1.0">
<meta name="viewport" content="user-scalable=no">
<meta name="viewport" content="width=device-width">
watchOS app bundled in iOS app
The visual element on the watchface
- useful for frequently used info
- app stays in memory
- app receives more time to execute background tasks
- Aople recommends creating a complication, even if it is only a button to launch the app
short look - glanceable version of notification content if the wrist remains raised, goes to long look
- The title string in the status bar
- App name in short-look notifications
stored in Global Tint property of an app's storyboad
Add interface controllers
https://developer.apple.com/documentation/tvservices https://developer.apple.com/documentation/avkit https://developer.apple.com/documentation/mediaplayer https://developer.apple.com/documentation/tvmljs
select pid,path,uid from processes where on_disk=0;
https://fuchsia.googlesource.com/fuchsia/+/refs/heads/main
built in FORTRAN
- (WP) PRIMOS
- ftp://ftp.lysator.liu.se/pub/primos/
- http://bitsavers.informatik.uni-stuttgart.de/bits/Prime/