Skip to content

Instantly share code, notes, and snippets.

@zyrup
zyrup / mysql.php
Last active December 4, 2022 16:34
tiny class for mysqli
<?php
// tiny class for mysqli
// $ip = MySql::select('o','
// SELECT ip FROM users AS WHERE name LIKE %s AND id = %i',
// $name, $id)[0]->ip;
// MySql::update('
// INSERT INTO users (id,name) VALUES (null, %s)',
@zyrup
zyrup / eurotax.php
Last active November 17, 2020 19:27
SOAP php wsdl eurotax/Autovista version 2.1.0
<?php
$web_service_url = 'http://webservices.eurotaxglass.com/wsdl/identification-v2.wsdl';
$header_part = '
<ETGHeader>
<VersionRequest>2.1.0</VersionRequest>
<Originator>
<Signature>SIGNATURE</Signature>
<LoginData>
@zyrup
zyrup / install_php_7.4_on_catalina.md
Last active November 17, 2020 19:28
install php 7.4 on Catalina
  • turn off mac and turn on with cmd+r
  • open terminal type csrutil disable (and later enable it again)
  • type reboot
  • open terminal type sudo mount -uw /
  • type killall Finder
  • make a backup of usr/bin/php
  • type sudo rm -r /usr/bin/php (Giving terminal full disk access and running sudo won't do the trick)
  • type brew install php@7.4 (assuming you installed brew before. Also I had to update Xcode which required 40 GB of free space)

Ref: https://samsonasik.wordpress.com/2019/12/01/install-php-7-4-in-macos-sierra-with-homebrew/

@zyrup
zyrup / keybase.md
Created August 4, 2017 18:08
keybase

Keybase proof

I hereby claim:

  • I am zyrup on github.
  • I am zyrup (https://keybase.io/zyrup) on keybase.
  • I have a public key ASCqaLrstN-5VolgIIwxBz0uZJKBmpMnKZAbxJ_jjQNr-Qo

To claim this, I am signing this object: