Skip to content

Instantly share code, notes, and snippets.

Taras Kalapun xslim

Block or report user

Report or block xslim

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
View sailing_august.md

July

  • 27-28 July : Amsterdam -> Mademblick

August sailing

  • 3 : Mademblick -> West-Terschelling
  • 4 : Day on West-Terschelling island
  • 5 : Depart West-Terschelling towards Helgoland
  • 5-6 : West-Terschelling -> Helgoland
  • 7 : Day at Helgoland
  • 8 : Helgoland -> TBD
@xslim
xslim / before_after.md
Last active Feb 14, 2019
Trim receipt line in C
View before_after.md

Before

40|           Oracle HGBU HDS EMEA          
40|             VAT: 123 456 789            
40| 440010051  UK Manager                   
40| ----------------------------------------
40| CHK 1005                         TBL 9/1
40| ----------------------------------------
40|  1 Poached Pear                     4.50
@xslim
xslim / VirtualBox.md
Created Dec 13, 2018
VirtualBox things
View VirtualBox.md

Win10

Mac screen resolution

  • 2560x1600

  • 1280x800

  • VBoxManage modifyvm "Win10" --vram 256

  • VBoxManage getextradata "Win10" enumerate

  • VBoxManage setextradata "Win10" CustomVideoMode1 1920x1200x32

View Adyen_removeAllPaymentDevices.m
-(void)removeAllPaymentDevices:(id)args
{
NSLog(@"removing all payment devices");
ADYDeviceRegistry* deviceRegistry = [Adyen sharedInstance].deviceRegistry;
NSMutableArray* devices = deviceRegistry.devices.copy;
for (ADYDevice* device in devices) {
if (device.connectionType == ADYDeviceConnectionTypeWifi && device.hostname != nil && ![device.hostname isEqualToString:@""]) {
View nexo_cloud.sh
#!/bin/bash
POIID=YOUR_TERMINAL_SERIAL_NUMBER
url=https://terminal-api-test.adyen.com/sync
apikey="YOUR_CHECKOUT_API_KEY"
SaleID="${USER}-${HOSTNAME}"
ServiceID=$(date +%m%d%H%M%S)
TransactionID=$RANDOM
TimeStamp=$(date -u +%FT%T+00:00)
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
View keybase.md

Keybase proof

I hereby claim:

  • I am xslim on github.
  • I am kalapun (https://keybase.io/kalapun) on keybase.
  • I have a public key whose fingerprint is 3E8B 6BA3 7DA6 0C04 A12D 0298 369A FECC D6DD 12C0

To claim this, I am signing this object:

@xslim
xslim / menu.py
Created Oct 31, 2017
Python Menu 1
View menu.py
class Menu(object):
def __init__(self, title=None, options=None, message=None,
refresh=lambda: None, println=lambda: None, printend=lambda: None,
clear=lambda: None, iinput=lambda: None):
if options is None:
options = []
self.options = None
self.title = None
self.is_title_enabled = None
@xslim
xslim / ViewController.m
Created Jul 27, 2017
Adyen Barcode Example
View ViewController.m
#import "ViewController.h"
// Do not forget to put in Podfile:
// use_frameworks!
// pod "AdyenBarcoder"
#import <AdyenBarcoder/AdyenBarcoder-Swift.h>
@interface ViewController () <BarcoderDelegate>
@end
@xslim
xslim / AdyenPOSTransactionRecoveryIdea.m
Last active Dec 18, 2018
AdyenPOS check complete or refund
View AdyenPOSTransactionRecoveryIdea.m
// Adyen Delegates
-(void)transactionStarted:(ADYTransactionData *)transaction {
// Save tenderReference and terminalId to storage
NSUserDefaults *ud = [NSUserDefaults standardUserDefaults];
[ud setObject:transaction.tenderReference forKey:@"tx_tenderReference"];
[ud setObject:transaction.terminalId forKey:@"tx_terminalId"];
[ud synchronize];
}
You can’t perform that action at this time.