Skip to content

Instantly share code, notes, and snippets.

View kovkor's full-sized avatar

Kornel Kovacs kovkor

View GitHub Profile
@rlanyi
rlanyi / PKPass.md
Last active August 22, 2025 18:28
How to create Apple PKPass .p12 certificate using Linux

How to create Apple PKPass .p12 certificate using Linux

You don't need a Mac to do this :-)

For generating PKPass files, you'll need 4 things after this tutorial:

  • Certificate Identifier (pass.com.example.www)
  • Team Identified (Organizational Unit (OU) in the cert generated by Apple)
  • The .p12 file
  • The password for the .p12 file
@ugraphix
ugraphix / temp.php
Last active April 8, 2024 08:03
Temperature conversions (Fahrenheit, Celsius, Kelvin) using PHP
<?php
//temp.php
//Celsius to Fahrenheit ° F = 9/5 ( ° C) + 32
//Fahrenheit to Celsius ° C = 5/9 (° F - 32)
//Celsius to Kelvin K = ° C + 273.15
//Kelvin to Celsius ° C = K - 273.15
//Fahrenheit to Kelvin K = 5/9 (° F - 32) + 273.15
//Kelvin to Fahrenheit ° F = 9/5 (K - 273.15) + 32
@openam
openam / rmkdir.php
Created February 26, 2014 17:19
Make Directories Recursively in PHP 4
<?php
/**
* rmkdir is a recursive mkdir function. PHP4 doesn't have the recursive paramater,
* so this was added to use on a PHP 4 server. These references could be changed back to
*
* @param string $path
* @param int $mode of the file permissions
* @param boolean $recursive not used, but is there so that you can easly change from rmkdir (PHP 4) to mkdir(PHP 5) easily
* @return boolean true if directories were successfully created
*/