Skip to content

Instantly share code, notes, and snippets.

@christopinka
christopinka / pull-request-reset.txt
Last active July 29, 2024 13:47
git - reset pull request to previous commit to get outgoing changes locally
taken from https://stackoverflow.com/a/72465195/2149240
good when you want to run static analysis on only the change set during a code review. And/or limit the scope of your review to only what's changed.
ex:
git fetch origin pull/65/head:test-branch
git checkout test-branch
git log # press 'q' to exit
git reset --soft 7d7fe166cd878ed70c559c4e98faf2323532
@christopinka
christopinka / gist:956c6ad31747280792970a61a1879c93
Created June 27, 2023 20:37
move git tag to HEAD on master
git switch master
git pull
git fetch --tags
# see the list of tags
git tag -l
# delete tag locally
git tag -d v0.8.0
# push change to remote
git push origin :refs/tags/v0.8.0 --no-verify
# recreate the tag at HEAD
<jaxws:client name="{http://tempuri.org/}WSHttpBinding_ISecureDirectorySearch" createdFromAPI="true">
<jaxws:properties>
<entry key="ws-security.signature.properties.sct" value="http://${system.ecs.host}/ecs/properties/CDR-XDS-ADDRESSBOOK/${system.cdr.xds.environment}/1.0.0" />
<entry key="ws-security.signature.username.sct" value="${org.apache.ws.security.crypto.merlin.keystore.alias}" />
<entry key="ws-security.encryption.properties.sct" value="http://${system.ecs.host}/ecs/properties/CDR-XDS-ADDRESSBOOK/${system.cdr.xds.environment}/1.0.0" />
<entry key="ws-security.encryption.username.sct" value="${org.apache.ws.security.crypto.merlin.keystore.alias}" />
<entry key="ws-security.callback-handler.sct" value="org.bjc.cdr.xds.addressbook.ClientPasswordCallback" />
</jaxws:properties>
</jaxws:client>
@christopinka
christopinka / image.gallery.R
Created May 25, 2012 18:21 — forked from flodel/image.gallery.R
Basic Craigslist API