systemctl status shows inactive dead

You have set Type=Forking, but your service doesn’t work. Try Type=oneshot You have a “&” your ExecStart line, which is not necessary. The service is disabled, which means it was not enabled to start at boot. You should run systemctl enable hello to set it to start at boot. You can check man systemd.directives to … Read more

How to automate creation of new Xcode targets from Applescript/Automator/Shell Script

let me start with this script (for Xcode 4.2.1), Open an XCode project at /this/path/project.xcodeproj (done) Duplicate an existing target and rename it (not implemented) Edit the Build Settings of the new target (done) Add a group to the Source and Resources section, then rename them (done) Add source files to the groups, and add … Read more

Forcing cURL to get a password from the environment

This bash solution appears to best fit my needs. It’s decently secure, portable, and fast. #!/bin/bash SRV=”example.com” URL=”https://$SRV/path” curl –netrc-file <(cat <<<“machine $SRV login $USER password $PASSWORD”) “$URL” This uses process substitution (<( command ) runs command in a sub-shell to populate a file descriptor to be handed as a “file” to the parent command, … Read more

tech