Skip to content

Instantly share code, notes, and snippets.

View gormih's full-sized avatar
🧸
bear

Michael Alexeevich gormih

🧸
bear
View GitHub Profile
@ajinabraham
ajinabraham / MobSF REST API Python.py
Last active February 2, 2024 15:15
MOBSF REST API Python Requests Example
"""
MOBSF REST API Python Requests
"""
import json
import requests
from requests_toolbelt.multipart.encoder import MultipartEncoder
SERVER = "http://127.0.0.1:8000"
FILE = 'diva-beta.apk'
@gormih
gormih / postgresql_russian_unaccent_config.sql
Last active December 12, 2017 13:39
Create postgresql russian unaccent configuration
CREATE EXTENSION unaccent;
CREATE TEXT SEARCH CONFIGURATION russian_unaccent( COPY = russian );
ALTER TEXT SEARCH CONFIGURATION russian_unaccent
ALTER MAPPING FOR hword, hword_part, word
WITH unaccent, russian_stem;
@simahawk
simahawk / json.xsl
Created August 14, 2017 17:17
Icecast server JSON status
# place this into /usr/share/icecast2/web/json.xsl
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:output omit-xml-declaration="yes" method="text" indent="no" media-type="text/javascript" encoding="UTF-8"/>
<xsl:strip-space elements="*"/>
<xsl:template match="/icestats">{
<xsl:for-each select="source">
"<xsl:value-of select="@mount"/>":{
"server_name":"<xsl:value-of select="server_name"/>",
"listeners":"<xsl:value-of select="listeners"/>",
"description":"<xsl:value-of select="server_description"/>",