Skip to content

Instantly share code, notes, and snippets.

divinity76

Block or report user

Report or block divinity76

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dergachev
dergachev / _msaccess_from_php.md
Last active May 17, 2018
Figuring out how to talk to MS Access from PHP
View _msaccess_from_php.md

Installation

Downloaded Windows XP / IE8 image from http://www.modern.ie/en-us/virtualization-tools

curl -O "https://az412801.vo.msecnd.net/vhd/IEKitV1_Final/VirtualBox/OSX/IE8_XP/IE8.XP.For.MacVirtualBox.ova"
  • Virtualbox -> Import > "IE8.XP.For.MacVirtualBox.ova"
@Xophmeister
Xophmeister / long2ip.sql
Last active Jan 1, 2016
Oracle SQL and PL/SQL function to convert proper IPv4 address (i.e., 32-bit integer) into the standard, "dotted" format
View long2ip.sql
-- We have a table (ip_log) of proper IPv4 addresses (ip)
select bitand(ip / 16777216, 255) || '.' || bitand(ip / 65536, 255) || '.' || bitand(ip / 256, 255) || '.' || bitand(ip, 255) ip
from ip_log;
-- ...or a function to do the same:
create or replace function long2ip(ip in number)
return varchar2 deterministic
as
begin
return bitand(ip / 16777216, 255) || '.' ||
@xcommerce-gists
xcommerce-gists / CreateAccount
Last active Dec 25, 2015
How to Create a PayPal Account Using Adaptive Accounts.curl
View CreateAccount
HTTP Headers
------------
-H "X-PAYPAL-SECURITY-USERID: <Caller-UID>" # UserID from the Caller account
-H "X-PAYPAL-SECURITY-PASSWORD: <Caller-Pswd>" # Password from the Caller account
-H "X-PAYPAL-SECURITY-SIGNATURE: <Caller-Sig>" # Signature from the Caller account
-H "X-PAYPAL-REQUEST-DATA-FORMAT: JSON"
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: JSON"
-H "X-PAYPAL-SANDBOX-EMAIL-ADDRESS: <Caller-Sandbox-edress>"
-H "X-PAYPAL-DEVICE-IPADDRESS: 192.0.2.0"
-H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" # Standard Sandbox App ID
You can’t perform that action at this time.