-
Fix any inconsistent indentation in your existing files, or Python code will break, since it considers a tab to be 8 and we're about to make it 4.
-
Populate
.gitattributes
in your repository, as below.*.py filter=spabs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
cd public_html/ | |
find . -type f \( -iname "1.*" -o -iname "sh.php" \) -print0 >> ../php_backdoors | |
find . -type f \( -iname "*.php" -o -iname "*.inc" \) -print0 | xargs -0 -r grep -REn \ | |
'(c99|r57|exif_read_data|extract|passthru|shell_exec|base64_decode|fopen|fclose|eval|Refresh|refresh|justrulz)' >> ../php_backdoors |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Date IP:Port URL Location ASN | |
07-09 06:49 109.239.48.152:123 freiwuppertal.de Germany AS34011 domainfactory GmbH | |
07-09 06:46 176.9.92.196:123 log1.nierle.com Germany AS24940 Hetzner Online AG | |
07-09 06:45 78.47.93.200:123 maggo.info Germany AS24940 Hetzner Online AG | |
07-09 06:44 85.25.105.105:123 static-ip-85-25-105-105.inaddr.ip-pool.com Germany AS8972 intergenia AG | |
07-09 06:09 5.83.190.253:123 arcticfox.doridian.net Germany AS31400 Accelerated IT Services GmbH | |
07-09 01:11 146.76.14.132:123 static.132.14.76.144.clients.your-server.de Germany AS24940 Hetzner Online AG | |
07-09 00:12 78.46.53.8:123 gromit.nocabal.de Germany AS24940 Hetzner Online AG | |
07-08 22:58 178.63.14.131:123 frankfurt1.firstlinkn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Bash-style progress bar (/w elapsed time) to show while long-running sub-processes being called. | |
# Copyright: 2015, Stephan Schmitz <[email protected]> | |
# License: MIT | |
# 1. Paste the `progress` function in your bash script. | |
function progress () { | |
s=0.5; | |
f=0.25; | |
echo -ne "\r\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($Object, $Function, privates, cls, superclass) {'use strict'; | |
function Event() { | |
var privateObj = $Object.create(cls.prototype); | |
$Function.apply(cls, privateObj, arguments); | |
privateObj.wrapper = this; | |
privates(this).impl = privateObj; | |
}; | |
if (superclass) { | |
Event.prototype = Object.create(superclass.prototype); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html i18n-values="dir:textdirection"> | |
<head> | |
<meta charset="utf-8"> | |
<title i18n-content="page-title"></title> | |
</head> | |
<body> | |
<input type="hidden" name="test" id="test" value="12345"/> | |
<script type="text/javascript"> | |
// ---------------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!C:/Python27/python.exe | |
# | |
# Convert PDF files to Microsoft Office Word compatible doc/docx files, | |
# using LibreOffice's command line interface. | |
# | |
# http://stackoverflow.com/questions/26358281/convert-pdf-to-doc-python-bash | |
# http://ask.libreoffice.org/en/question/20111/converting-files-using-soffice-convert-to-with-embedded-images-html-to-doc/ | |
# http://cgit.freedesktop.org/libreoffice/core/tree/filter/source/config/fragments/filters | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- | |
Copyright (C) 2015 The Android Open Source Project | |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a gist for my blog/tutorial, "Creating a Chat App with Material Design using Polymer" |