Skip to content

Instantly share code, notes, and snippets.

Avatar
🧩
wfh

Mikhail akkez

🧩
wfh
  • Russia, Saint Petersburg
View GitHub Profile
@esabook
esabook / frida-android-repinning.js
Created Nov 25, 2019
Mirror frida-android-repinning.js
View frida-android-repinning.js
/*
Android SSL Re-pinning frida script v0.2 030417-pier
$ adb push burpca-cert-der.crt /data/local/tmp/cert-der.crt
$ frida -U -f it.app.mobile -l frida-android-repinning.js --no-pause
https://techblog.mediaservice.net/2017/07/universal-android-ssl-pinning-bypass-with-frida/
*/
setTimeout(function(){
@htr3n
htr3n / macos-ramdisk.md
Last active Dec 3, 2020
Creating RAM disk in macOS
View macos-ramdisk.md

Built-in

diskutil erasevolume HFS+ 'RAM Disk' `hdiutil attach -nobrowse -nomount ram://XXXXX`

where XXXXX is the size of the RAM disk in terms of memory blocks.

Notes:

@Akryum
Akryum / vue.config.js
Created Sep 27, 2018
Per-page split chunks
View vue.config.js
module.exports = {
pages: {
pageA: 'src/pageA.js',
pageB: 'src/pageB.js',
pageC: 'src/pageC.js',
},
chainWebpack: config => {
const options = module.exports
const pages = options.pages
View clickhouse-get-tables-size.sql
SELECT table,
formatReadableSize(sum(bytes)) as size,
min(min_date) as min_date,
max(max_date) as max_date
FROM system.parts
WHERE active
GROUP BY table
@buonzz
buonzz / docker-compose-cheatsheet.sh
Last active Apr 16, 2020
docker-compose cheatsheet
View docker-compose-cheatsheet.sh
$ docker-compose up -d # start containers in background
$ docker-compose kill # stop containers
$ docker-compose up -d --build # force rebuild of Dockerfiles
$ docker-compose rm # remove stopped containers
$ docker ps # see list of running containers
$ docker exec -ti [NAME] bash # ssh to the container
# list all images
docker images
View Vk.comVulnerability.py
# -*- coding: utf-8 -*-
import requests
from time import sleep
from datetime import datetime
import json
import sys
database = {"admins":[],
"suggestions":{}
}
@adamghill
adamghill / messages_and_errors_django_template.html
Created Jan 3, 2014
Show messages and errors in Django templates. Useful to just throw in a base template.
View messages_and_errors_django_template.html
{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}">{{ message|safe }}</div>
{% endfor %}
{% endif %}
{% if form.errors %}
<div class="alert alert-error">
<h4>Please fix the following errors</h4>
<ul>
@Batschkoto
Batschkoto / Main.java
Created Sep 10, 2013
Example for forwarding data via plugin messages
View Main.java
package de.batschkoto.pluginmessagetest;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.plugin.messaging.PluginMessageListener;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
@econchick
econchick / gist:4666413
Last active Nov 6, 2020
Python implementation of Dijkstra's Algorithm
View gist:4666413
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
self.nodes.add(value)
def add_edge(self, from_node, to_node, distance):
@jpatters
jpatters / HeidiDecode.js
Last active Nov 17, 2020
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
View HeidiDecode.js
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;
}
document.write(heidiDecode('755A5A585C3D8141786B3C385E3A393'));
You can’t perform that action at this time.