2,833 questions
Advice
0
votes
0
replies
17
views
How modify script with adding second task?
This script adds a line to add custom.js to vivaldi browser directory:
#!/bin/bash
vivaldi=/opt/vivaldi/resources/vivaldi
moddir=$HOME/vivaldi-modding/
sudo cp $moddir/custom.js $vivaldi
sudo sed -i -...
0
votes
0
answers
29
views
buildroot foces adding hash file in BR2_GLOBAL_PATCH_DIR?
I'm using buildroot 2024.02.
I set BR2_GLOBAL_PATCH_DIR+="$(BR2_EXTERNAL_MY_PATH)/patches". Its contents:
% tree /home/admin/buildroot-external-my/patches
/home/admin/buildroot-external-my/...
0
votes
0
answers
46
views
Can msimsp be used on msi where files are contained within the msi?
I am trying to create an msp file from two msi files.
The msi files were created using Advanced Installer. I've selected "Archive installation files into CAB files" but not "Compress ...
1
vote
2
answers
12k
views
Nodejs request patch
I'm currently trying to implement a patch request in my nodejs application. But I can't seem to get it to work. I have made sure my data structure is correct.
I've tried some different things like: ...
275
votes
10
answers
193k
views
What is the main difference between PATCH and PUT request?
I am using a PUT request in my Rails application. Now, a new HTTP verb, PATCH has been implemented by browsers. So, I want to know what the main difference between PATCH and PUT requests are, and when ...
169
votes
8
answers
44k
views
How can I visualize per-character differences in a unified diff file?
Say I get a patch created with git format-patch. The file is basically a unified diff with some metadata. If I open the file in Vim, I can see which lines have been modified, but I cannot see which ...
105
votes
14
answers
48k
views
git add --interactive "Your edited hunk does not apply"
I'm trying to use git add --interactive to selectively add some changes to my index, but I continually receive the "Your edited hunk does not apply. Edit again..." message. I get this ...
2
votes
1
answer
5k
views
Draw rounded fancyarrowpatch with midpoint arrow in matplotlib
I've been trying to push the boundaries of matplotlib's patches and instruct it to draw a rounded FancyArrowPatch with a directional arrow on its midpoint. This would prove incredibly useful in a ...
0
votes
1
answer
9k
views
Get software center updates install status from sccm client using powershell
I want to get the real time status of all patches currently in the SCCM Client Software center. I've attempted to use multiple scripts I've found online but none of them end up showing me real time ...
87
votes
2
answers
15k
views
git hunk edit mode - how to remove a '-' line?
+ bbb
- aaa
# ---
# To remove '-' lines, make them ' ' lines (context).
# To remove '+' lines, delete them.
# Lines starting with # will be removed.
#
# If the patch applies cleanly, the edited hunk ...
17
votes
3
answers
9k
views
How do I "inverse" a diff file?
Say I have a diff file looking basically like the following.
+line a
-line b
Is it possible to do one (or both) of the following:
Inverse this file (so I'd get)
-line a
+line b
Pass some argument ...
18
votes
3
answers
35k
views
kubectl patch: Is it possible to add multiple values to an array within a sinlge patch execution
I tried to use kubectl patch to add two more values to the args list of a kubernetes deployment. I've gone over the officially documented (https://kubernetes.io/docs/tasks/manage-kubernetes-objects/...
0
votes
1
answer
65
views
Create a git patch between repository and non-repository
I have a situation where a folder needs to be patched to be the same state as a repository. Consider this short tale:
Ten years age Goofus and Gallant are somewhat alike and at a fork in the road ...
11
votes
5
answers
14k
views
How to determine the Security Patch Level of an Android device?
How can I determine the security patch level of an Android device using an API or other mechanism? I'm looking for the same security patch information that can be found manually by clicking the ...
4
votes
4
answers
13k
views
Adding multiple patches to SRC_URI in a recipe -- Yocto
I would like to know is there an easy way of adding patches to the SRC_URI in Yocto. I am creating a BSP for a customized board using Yocto. I have some hundred plus patches for the Linux kernel and ...