Edit: To clarify, by "running manually" I mean that sudo run-parts /etc/cron.daily/ works as expected without raising any errors.
ostensibly_work
u/ostensibly_work
I hope the question makes sense. Basically, I have three replica sets and I want to add one without causing an election.
Can someone elaborate on this StackOverflow answer? With `find`, why does quoting the -exec option arguments cause bash to interpret it as a separate command?
stackoverflow.com/a/655116I'm trying to simplify my dotfile management, and I've heard a lot of praise for stow, and it seems like a useful tool. The one issue I've ran into is that, by default, my dotfiles like ~/.bashrc aren't symlinks. So when I try to use stow, it fails with the message:
WARNING! stowing bar would cause conflicts:
* existing target is neither a link nor a directory: foo
All operations aborted.
From my reading of the stow manpage, you can tell it to overwrite existing files iff they're symlinks using the --override option, but no such option exists for files that aren't symlinks.
I'm pretty sure the answer is "no, that's not what stow was designed for", but I thought I'd ask to be
So here's what I have written so far. You can probably see very quickly where things are going wrong. Please don't judge me too harshly.
# Adjust image brightness/contrast and add noise
pngs = ['foo.png', 'bar.png', ]
contrast_range = (0.9, 1.1)
brightness_range = (-0.025, 0.025)
noise_range = (0, 5)
augmentations_per_image = 5
with tf.Session() as sess:
for png in tqdm(pngs):
img = tf.image.decode_png(tf.read_file(png), channels=1)
for aug_num in range(augmentations_per_image):
# Get the particular augmentation values for this image
delta_contrast = random.uniform(*contrast_range)
d
I'm trying to figure out what the best practices are for running privileged commands with Ansible, and I ran across this upvoted StackExchange answer
The relevant part:
[OP's suggestion] Create a unprivileged user dedicated for Ansible with sudo access / let the Ansible user to run every commands through sudo without specifying any password
[Reply] Exactly. An unprivileged user that you can audit back to ansible, with sudo roles. Ideally, create a standard user dedicated to server-to-server/ansible communications with sudo access (without password).
From what I understand, this is saying
- The remote devices (clients) will be using reverse-SSH to connect to a local server, using keyed no-password logins.
- Each device will get a unique keypair, so if a device is stolen, we can remove their key from the authorized list.
- All clients log in as the same user on the server. This user's shell is set to rbash, has an empty path variable, and isn't part of any groups, so they can't do anything.
- Each client connects with a unique (non-sequential?) port number.
- Clients' SSH connections are initiated by a systemd service calling autossh.
- The server's private key, and the public keys of the clients will be backed up, so we can maintain access even if the server dies.
Any way yo
This isn't actually relevant to anything, I'm just curious.
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
$ME tty7 :0 11:38 1:09m 2:15 0.18s cinnamon-session --session cinnamon
$ME pts/0 m 11:38 1.00s 0.03s 0.00s tmux
Hi, I'm reading up on Linux session management. A user here posted this blog, which has been a fantastic resource. However, I'm still pretty uncertain about a couple concepts.
Here's the output of running loginctl list-sessions on my PC (Mint 18.3).
SESSION UID USER SEAT
c2 1000 $ME seat0 # The usual desktop session
5 1000 $ME # SSH localhost
4 1000 $ME seat0 # Accessed thru Ctrl-Alt-F6
My questions are:
- Why doesn't my SSH session report a seat? From what I understand, seats provide a collection of physical interfaces that are only available to sessio
For example, does a GUI program running in X behave like this:
kernel <- TTY <- Xorg <- program
or this:
kernel <- Xorg <- program
Or something else entirely? Hope the question makes sense, thanks.
Any ideas where I can find the file that started this process? Alternatively, is it possible the process wasn't started by init, but somehow ended up appearing that way to pstree?
I'm on Linux Mint 17.1
In my experience, Python has always had extremely good documentation, so I'm surprised to be running into this. But on the tkinter-modules documentation page, it seems that there is no documentation for several modules: colorchooser, commondialog, etc. I found that there is a Python documentation page listing which modules are undocumented, but I don't see these tk modules on there.
Now I'm just feeling a bit confused and annoyed. Am I misunderstanding something, is this a problem, and/or have I found myself in some little-used part of the standard library that no one has found
Hi, apologies if this is a dumb question. I googled it, and I couldn't find anything relevant, so I thought I'd ask here. If there's a good resource I can read on the matter, feel free to just post a link.
I'm attempting to train a mobilenet model. I'm able to get reasonably good results using a couple hundred images, that have been augmented to a few thousand images. I obviously want to increase the size of the main dataset, but should I also increase the number of ways the data has been augmented?
Thanks!
I've never had a command-line application spawn a popup for a password before. I'd like ssh to behave like sudo and every other tool I use, by allowing me to enter the password in the terminal.
I found this StackOverflow page with the same question, but no one answered.
I can split the files up by date, and delete the old ones, but that would be less convenient that what I'm imagining.