Skip to content

Instantly share code, notes, and snippets.

View matteobaccan's full-sized avatar
🖥️
I write code from home for fun

Matteo Baccan matteobaccan

🖥️
I write code from home for fun
View GitHub Profile
openssl.exe smime -verify -noverify -in IT01004999999_0FKD3.xml.p7m -inform DER -out IT01004999999_0FKD3.xml
@matteobaccan
matteobaccan / remove-remote-commit.txt
Last active October 26, 2021 07:55
Remove remote commit
For remove remote push/commit you can simply use this command
git push -f origin <last_known_good_commit>:<branch_name>
for example if you need to remove last commit in origin\master
git push -f origin f07c605:master
where f07c605 is the commit id of your last good commit
@matteobaccan
matteobaccan / git-tips.txt
Last active October 14, 2021 01:51
Delete a remote git tag
I have created a tag "master", so I have this error during push
"dst refspec master matches more than one"
to remove wrong remote tag name I have used
git push origin <tag name>
for example
query GetUsers {
search(query: "location:italy", first: 100, type: USER) {
userCount
pageInfo {
endCursor
hasNextPage
}
edges {
node {
... on User {
@matteobaccan
matteobaccan / TestDictionary.bat
Last active November 11, 2019 22:30
Test Dictionary class in c#
::SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v2.0.50727\
SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v4.0.30319\
::SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v3.5
csc test.cs