Skip to content

Instantly share code, notes, and snippets.

View kumlali's full-sized avatar

Ali Sadık Kumlalı kumlali

  • Merkezi Kayıt Kuruluşu A.Ş.
  • Istanbul
View GitHub Profile
@kumlali
kumlali / curl_http_transaction_timing.md
Last active December 11, 2018 06:04
Curl HTTP transaction timing

Curl HTTP transaction timing

By following https://blog.josephscott.org/2011/10/14/timing-details-with-curl/, create curl-format.txt having following lines:

\n
    time_namelookup:  %{time_namelookup}\n
       time_connect:  %{time_connect}\n
    time_appconnect:  %{time_appconnect}\n
   time_pretransfer:  %{time_pretransfer}\n

time_redirect: %{time_redirect}\n

@kumlali
kumlali / Retrieving_Entries_of_MANIFEST.MF_in_a_Jar_File_by_Ant.md
Created February 13, 2018 14:46
Retrieving Entries of MANIFEST.MF in a Jar File by Ant

Retrieving Entries of MANIFEST.MF in a Jar File by Ant

If we have myapp.jar file that has following MANIFEST.MF inside,

Manifest-Version: 1.0
Implementation-Title: My Project
Implementation-Version: 1.0.0-SNAPSHOT.18b47fff41d30758a2756c13844026d
 fee323b50.5
Jenkins-Build-Number: 8

Archiver-Version: Plexus Archiver

@kumlali
kumlali / Customizing_MANIFEST.MF_of_Maven_Projects_Built_by_Jenkins.md
Created February 9, 2018 08:59
Customizing MANIFEST.MF of Maven Projects Built by Jenkins

Customizing MANIFEST.MF of Maven Projects Built by Jenkins

While building a Maven project on Jenkins, environment variables(e.g. GIT_COMMIT, SVN_REVISION) set by Jenkins can be added to MANIFEST.MF file residing in JAR and WAR files.

For example, if we want to add Jenkins build number, Jenkins build url, Git commit id and custom implementation version to MANIFEST.MF of a JAR file, we can use:

<plugin>
  <artifactId>maven-jar-plugin</artifactId>
  <configuration>
@kumlali
kumlali / Setting_up_Debian_repositories_with_JFrog_Artifactory.md
Last active March 16, 2024 04:06
Setting up Debian repositories with JFrog Artifactory

Setting up Debian repositories with JFrog Artifactory

While I was searching for how I use Artifactory as Debian repository, I came across official Artifactory documentation: How do I cache artifacts from a remote Debian repository?. But, it did not work because there is no apt-add-repository command as documentation mentioned. I had to figure out the correct way by myself and following steps worked for me.

Resources

@kumlali
kumlali / Rolling_back_to_a_specific_git_commit.md
Last active December 29, 2017 08:00
Rolling back to a specific git commit
@kumlali
kumlali / Git_tagging_operations.md
Last active December 29, 2017 08:01
Git tagging operations

Git tagging operations

List tags:

git tag

Create a tag:

git tag -a 1.0 -m "The first stable release."
@kumlali
kumlali / Release_process_of_GitHub_projects.md
Last active March 21, 2018 12:11
Release process of GitHub projects

Release process of GitHub projects

When the code is ready to be released:

  • Add change log to CHANGELOG.md
  • Commit and push it to GitHub
  • Create release tag(e.g. 1.1) by providing changes added to CHANGELOG.md:
    • Create tag.md file and copy target release changes from CHANGELOG.md.
    • git tag -F tag.md 1.1
    • git push --tags
  • Visit the tag's page in GitHub