Skip to content

Instantly share code, notes, and snippets.

@dvas0004
dvas0004 / recompile-and-run.sh
Created October 31, 2019 08:13 — forked from PuKoren/recompile-and-run.sh
Recompile APK + Sign with apktool
# You must first install apktool (https://github.com/iBotPeaches/Apktool) and android SDK
# and decompile apk using it
# apktool d -rf my-app.apk
# then generate a key for sign in:
# keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
rm signed-app.apk
apktool b -f -d com.myapp
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore my-release-key.keystore com.myapp/dist/com.myapp.apk alias_name
zipalign -v 4 com.myapp/dist/com.myapp.apk signed-app.apk
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.2">
<description></description>
<groupId>d562c994-016b-1000-4d13-1985463f364a</groupId>
<name>Alerting</name>
<snippet>
<connections>
<id>2afde8dc-2bf8-33e4-0000-000000000000</id>
<parentGroupId>308545b5-bdca-3d2b-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<template encoding-version="1.2">
<description></description>
<groupId>f83b243e-016a-1000-7ae4-d55879bd67a8</groupId>
<name>Beats (encrypted)</name>
<snippet>
<connections>
<id>5d08bc84-630a-3e17-0000-000000000000</id>
<parentGroupId>75fd9e98-7cb4-3d53-0000-000000000000</parentGroupId>
<backPressureDataSizeThreshold>1 GB</backPressureDataSizeThreshold>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { connect } from 'react-redux';
import {
testAction,
} from './redux';
import { Provider } from 'react-redux';
import logging
import sys, os
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('openzwave')
import openzwave
from openzwave.node import ZWaveNode
from openzwave.value import ZWaveValue
from openzwave.scene import ZWaveScene
@dvas0004
dvas0004 / employeeHarvesting.js
Created November 22, 2018 09:21
Employee Harvesting from Linked In (companion code to blog post)
const linkedinEmail = '*******';
const linkedinPassword = '*******';
const companyName = 'CHANGE ME';
const extraFilter = 'change me (or set to null)';
const maxPages = 2;
////////
@dvas0004
dvas0004 / ExtensionAllInOneNotes.java
Created October 1, 2018 14:31
zap-extensions, all in one notes
/*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dvas0004
dvas0004 / TLN_real_estate.py
Created August 13, 2018 14:13
Tallinn Real Estate - Scraping data using python and visualization
# only python 3.6 supported
# sudo pipenv --python=3.6 install requests requests_html numpy
import requests
import numpy as np
from requests_html import HTMLSession
class KVBuilder:
def __init__(self):
import requests
import urllib
from datetime import datetime
queries = ['react', 'angular', 'java', 'python', 'linux', 'machine learning', 'nodeJS', 'sql', 'full stack', 'microsoft, active directory', 'aws', 'ethereum,bitcoin', 'blockchain', 'scrum,agile', 'android', 'ios,xcode', 'devops', 'php', 'laravel', 'elasticsearch', 'mongodb', 'golang', 'oscp,cissp', 'neural network', 'postgres,postresql', '.net', 'ruby', 'macos']
for query in queries:
filename = '/tmp/Estonia/Job Market Eval/{}.csv'.format(query.replace(',','_'))