Skip to content

Instantly share code, notes, and snippets.

View endeveit's full-sized avatar

Nikita Vershinin endeveit

  • Ankorstore
  • Berlin, Germany
View GitHub Profile
module main
type Number = any_int | any_float
fn is_gt(val string, dst Number) bool {
match dst {
any_int {
return val.int() > dst
}
any_float {
@endeveit
endeveit / Main.java
Created April 9, 2014 04:53
WhatsApp msgstore crypt5 decryptor
package net.endeveit.wad;
import javax.crypto.*;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.*;
<?php
function arrayWalkCallback()
{
// … some business logic
// Уберём из системных свойств все кроме информации об услугах
$serviceKeys = ['re', 'hot', 'color', 'up', 'torg', 'wphoto', 'hasphoto', 'auto_re', 'uuid'];
// … other business logic
}
--- Extended.php 2014-01-11 14:22:43.000000000 +0600
+++ Library/Phalcon/Queue/Beanstalk/Extended.php 2014-01-11 14:24:59.000000000 +0600
@@ -263,12 +263,13 @@
$result = null;
$lines = $this->getResponseLinesText('ignore ' . $this->getTubeName($tube));
- if (null !== $lines) {
+ if (null !== $lines) {
list($name, $value) = explode(' ', $lines);
if (null !== $value) {