Skip to content

Instantly share code, notes, and snippets.

🕶
django_webpack_integration

Yegor Kazantsev saintbyte

🕶
django_webpack_integration
  • Ural
Block or report user

Report or block saintbyte

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@chrisiaut
chrisiaut / parse_austria.php
Created Aug 21, 2018
Parsing ip data from a file
View parse_austria.php
<?php
$infile = 'austria.csv';
$outfile = 'austria.ips';
$fp = fopen($outfile,'w');
$handle = fopen($infile, "r");
if ($handle)
{
while (($line = fgets($handle)) !== false) {
$line = trim($line);
@Wack0
Wack0 / upwned247.php
Last active Jan 23, 2019
UCam247/Phylink/Titathink/YCam/Anbash/Trivision/Netvision/others IoT webcams : remote code exec: reverse shell PoC. (works only in qemu usermode)
View upwned247.php
<?php
/*
Updated version, 2016-12-02: fixed shellcode so it *actually* works on QEMU
usermode emulation (seems I pushed an old version), and removed debug output.
-------------------------
NB: THIS PoC ONLY WORKS IN QEMU USERMODE EMULATION!
If anyone wants to fix this, go ahead (no pun intended).
However, I don't have a vulnerable product and am unwilling to acquire one.
@archon810
archon810 / BuildConfig.java
Last active Oct 10, 2019
Fake Virus Shield AV
View BuildConfig.java
package com.deviant.security.shield;
public final class BuildConfig {
public static final String BUILD_TYPE = "debug";
public static final boolean DEBUG;
public static final String FLAVOR = "";
public static final String PACKAGE_NAME = "com.deviant.security.shield";
public static final int VERSION_CODE = 4;
public static final String VERSION_NAME = "2.2";
View html-dicomment.sublime-snippet
<snippet>
<content><![CDATA[
<!-- begin $1 -->
<div class="$1">
$2
</div>
<!-- end $1 -->
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>di</tabTrigger>
@scaryguy
scaryguy / change_primary_key.md
Last active Oct 15, 2019
How to change PRIMARY KEY of an existing PostgreSQL table?
View change_primary_key.md
-- Firstly, remove PRIMARY KEY attribute of former PRIMARY KEY
ALTER TABLE <table_name> DROP CONSTRAINT <table_name>_pkey;
-- Then change column name of  your PRIMARY KEY and PRIMARY KEY candidates properly.
ALTER TABLE <table_name> RENAME COLUMN <primary_key_candidate> TO id;
View Simple DNS server (UDP and TCP) in Python using dnslib.py
# coding=utf-8
"""
LICENSE http://www.apache.org/licenses/LICENSE-2.0
"""
import datetime
import sys
import time
import threading
import traceback
import SocketServer
@tomasperezv
tomasperezv / gist:5175824
Last active Jun 12, 2018
Communication between multiple tabs, using local storage changes
View gist:5175824
// User has 2 tabs open: Page 1 and Page 2, both in the same domain
// , subdomain and protocotol
// Page1: https://subdomain.domain.com
...
var data = {
a: 5,
// Local storage won't be triggered unless the value is different,
// so we add a random identifier.
id: Math.floor((Math.random()*1000)+1)
@guillaumepiot
guillaumepiot / PYTHON - Convert URL in text to anchor tags (links)
Created Jan 15, 2013
PYTHON - Convert URL in text to anchor tags (links)
View PYTHON - Convert URL in text to anchor tags (links)
@madeye
madeye / ProxySettings.java
Created Apr 4, 2012
Set proxy for Android Webview
View ProxySettings.java
package me.madeye;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import org.apache.http.HttpHost;
import android.content.Context;
You can’t perform that action at this time.