Skip to content

Instantly share code, notes, and snippets.

View walkline's full-sized avatar
🇺🇦

Anton Popovichenko walkline

🇺🇦
  • Mendix
  • The Hague
View GitHub Profile
@walkline
walkline / gist:1382a2542cb2e2ba5e1dd64a710d7c6e
Created August 27, 2024 13:57
Add time fast forward command (.debug timeff 1200 - forwards for 20 minutes)
diff --git a/src/server/game/Server/WorldSession.cpp b/src/server/game/Server/WorldSession.cpp
index 253aeb9f6..b57812142 100644
--- a/src/server/game/Server/WorldSession.cpp
+++ b/src/server/game/Server/WorldSession.cpp
@@ -291,8 +291,8 @@ bool WorldSession::Update(uint32 diff, PacketFilter& updater)
///- Before we process anything:
/// If necessary, kick the player because the client didn't send anything for too long
/// (or they've been idling in character select)
- if (sWorld->getBoolConfig(CONFIG_CLOSE_IDLE_CONNECTIONS) && IsConnectionIdle() && m_Socket)
- m_Socket->CloseSocket();

Keybase proof

I hereby claim:

  • I am walkline on github.
  • I am walkline (https://keybase.io/walkline) on keybase.
  • I have a public key ASDCccvepsIlHI7i3kceae5V_aplKdwE1B_zRPYOQSGVtAo

To claim this, I am signing this object:

11:59:34.994 PEBBLE_DATA(Queue): sending 0x1...
....
11:59:36.625 Received ping timeout.
11:59:36.626 CONNECTOR: Verifing Connection Prereqs
11:59:36.626 CONNECTOR: Launching app...
11:59:36.626 PEBBLE_DATA: Launching application.
11:59:37.286 PEBBLE_DATA(Queue): sending 0x1...
11:59:37.313 PEBBLE_DATA: Message 0x1 successfully sent to pebble
11:59:37.313 CONNECTOR: Wainting until device will be booted...
@walkline
walkline / logs.md
Last active September 23, 2016 14:03

[16:57:31] app_messages.c:483> APDU Exec CMD

[16:57:31] app_messages.c:492> pkg_num: 1

[16:57:31] app_messages.c:502> seq_num: 1

[16:57:31] apdu_strap.c:56> Executing APDU ID (0x): 0001-0001

[16:57:31] apdu_strap.c:175> Strap exec result 0x0 for 0x#0001-0001

/* only for demo -------------------------*/
.footerLinks {
padding-bottom: 10px;
}
.wallet-button-add {
-webkit-tap-highlight-color: transparent
}
/* /demo -------------------------*/
@walkline
walkline / demo.md
Last active September 6, 2016 14:58

TASK PLAT-1396

https://travis-ci.org/fitpay/fitpay-ios-sdk

Setting environment variables from repository settings
$ export FITPAY_SDK_CLIENT_ID=[secure]
$ export FITPAY_SDK_CLIENT_SECRET=[secure]
$ export FITPAY_SDK_API_BASE_URL=[secure]
$ export FITPAY_SDK_AUTHORIZE_BASE_URL=[secure]
MIITwAYJKoZIhvcNAQcCoIITsTCCE60CAQExCzAJBgUrDgMCGgUAMIIDcQYJKoZIhvcNAQcBoIIDYgSCA14xggNaMAoCAQgCAQEEAhYAMAoCARQCAQEEAgwAMAsCAQECAQEEAwIBADALAgEDAgEBBAMMATAwCwIBCwIBAQQDAgEAMAsCAQ4CAQEEAwIBazALAgEPAgEBBAMCAQAwCwIBEAIBAQQDAgEAMAsCARkCAQEEAwIBAzAMAgEKAgEBBAQWAjQrMA0CAQ0CAQEEBQIDAV+QMA0CARMCAQEEBQwDMS4wMA4CAQkCAQEEBgIEUDIzOTAYAgEEAgECBBDIw/0+M/zj8hAmMXqMP7jJMBkCAQICAQEEEQwPY29tLmZsYXlrLkZsYXlrMBsCAQACAQEEEwwRUHJvZHVjdGlvblNhbmRib3gwHAIBBQIBAQQUE1/NihAFmbc34rrruUa7IS4LDpwwHgIBDAIBAQQWFhQyMDE1LTEwLTA4VDA4OjA4OjE1WjAeAgESAgEBBBYWFDIwMTMtMDgtMDFUMDc6MDA6MDBaMD4CAQcCAQEENg54/XxzidVaHzokaPJSgLe//Sud1iGBdkQEcbb27mfVhuAKbiyMLuCYfpWsefl4spp4hwcsXzBTAgEGAgEBBEuHnXMqTlqd+noBpHYu+NR2css3dQaBFqOi7d0WNrvEqoCxx4V1MTYXp3L5/MmB2n/I/RTGLcu3lGsKPk05xYRBHwan8JSIIGiMIl0wggFiAgERAgEBBIIBWDGCAVQwCwICBqwCAQEEAhYAMAsCAgatAgEBBAIMADALAgIGsAIBAQQCFgAwCwICBrICAQEEAgwAMAsCAgazAgEBBAIMADALAgIGtAIBAQQCDAAwCwICBrUCAQEEAgwAMAsCAga2AgEBBAIMADAMAgIGpQIBAQQDAgEBMAwCAgarAgEBBAMCAQIwDAICBq4CAQEEAwIBADAMAgIGrwIBAQQDAgEAMAwCAgaxAgEBBAMCAQAwGwICBqcCAQEE
@walkline
walkline / ebags.json
Last active September 24, 2015 13:44
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "eBags API",
"description": "\n## Authorization\nFor client authentication we will use `ApiAccessToken` which will be in the header of request.\n\nTo receive `ApiAccessToken`, client should make request to one of three endpoints - /members/RegisterResponsive, /members/SignInCustomer or /members/RefreshToken.\n\nAlso `ApiAccessToken` will be used in webview's requests. If site's backend will see `ApiAccessToken` in the header of request, and if client doesn't have cookies, than backend should create cookies using `ApiAccessToken`.\n\n## Steal/Deal of the Day\nWill be implemented by pushing notifications to customer.\n\nPayload for Steal/Deal of the Day should have `\"steal_deal_url\"` parameter.\n\nPayload for iOS device will be like:\n```json\n{\n \"aps\" : {\n ...\n }\n \n \"steal_deal_url\" : \"http://...\"\n}\n```\n## Bag Shazam\nWill be implemented by using api.pcsso.com. If we want to use this API
@walkline
walkline / tables.sql
Created September 14, 2015 13:34
tables.sql
DROP TABLE IF EXISTS `wp_masterslunch_dishes`;
CREATE TABLE `wp_masterslunch_dishes` (
`id` mediumint(9) NOT NULL AUTO_INCREMENT,
`name` varchar(255) NOT NULL,
`description` text,
`category` varchar(255) NOT NULL,
`user_id` mediumint(9) NOT NULL,
`price` int(11) NOT NULL,
`weight` int(11) DEFAULT NULL,
diff --git a/notification/sender.go b/notification/sender.go
index 8fca35e..6657b60 100644
--- a/notification/sender.go
+++ b/notification/sender.go
@@ -110,6 +110,7 @@ func (this *Sender) send(users []auth.User, vote storage.Vote) {
if len(devices.AppleIds) > 0 {
fmt.Printf("Notification sender debug: Server: %s, Cert: %s, Key: %s\n", this.AppleServer, this.AppleCertPath, this.AppleKeyPath)
apn, err := apns.NewClient(this.AppleServer, this.AppleCertPath, this.AppleKeyPath)
+ apn.MAX_PAYLOAD_SIZE = 2048
if err != nil {