- No inline JavaScript within HTML
This file contains 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
'use strict'; | |
class ServerlessPluginJSON { | |
constructor() { | |
this.configurationVariablesSources = { | |
jsonStringify: { | |
async resolve({ params }) { | |
return { | |
value: JSON.stringify( (params[0] || {}) ), | |
}; |
This file contains 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
#!/usr/bin/env bash | |
# | |
# GPLv3 / Stefan Morgenthaler, 2015; | |
# | |
# What? | |
# | |
# traverses a given directory down till no subdirectories are present. The pdf | |
# files within the 'last' directory are merged together and stored in the | |
# parents folder. The merged document uses the name of the directory, the pdfs | |
# where located in. |
This file contains 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
# | |
# Copyright (C) 2015 Stefan Morgenthaler | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, | |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains 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
class CloneTest | |
constructor: (options = {}) -> | |
@default_options = { | |
foo: false, bar: false, baz: false | |
} | |
$.extend(@default_options, options) | |
getValues: -> |
This file contains 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
require 'cgi' | |
require 'digest/md5' | |
require 'net/https' | |
require 'uri' | |
module Jekyll | |
class GistTag < Liquid::Tag | |
def initialize(tag_name, text, token) | |
super | |
@text = text |
This file contains 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
\ProvidesFile{absender.lco} | |
\KOMAoptions{% | |
% fromemail=true, % Email wird im Briefkopf angezeigt | |
% fromphone=true, % Telefonnumer wird im Briefkopf angezeigt | |
% fromfax=true, % Faxnummer wird im Briefkopf angezeit | |
% fromurl=true, % URL wird im Briefkopf angezeigt | |
% fromlogo=true, % Logo wird im Briefkopf angezeigt | |
% subject=titled, % Druckt "Betrifft: " vor dem Betreff | |
locfield=wide, % Breite Absenderergänzung (location) |
This file contains 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
#!/usr/bin/env bash | |
# q&d; WTFPL; | |
count_off=0; | |
count_onl=0; | |
for n in {1..254}; do | |
ip="151.236.12.${n}"; | |
ping -c1 -t1 ${ip} > /dev/null 2>&1 |
This file contains 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
domain (ip) { | |
table filter { | |
# | |
# Subchains: Portknocking | |
# ################################################################################ | |
chain PORT_KNOCKING_1 { | |
protocol tcp { | |
mod recent name "port_knock_seq_01" set NOP; | |
} |
This file contains 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
## INSTALL | |
curl -o ~/bin/knockp https://gist.github.com/moregeek/7599055/raw/knockp | |
chmod +x ~/bin/knockp | |
## USAGE | |
### With ssh config (~/.ssh/config) | |
host example.org | |
ProxyCommand sh -c "~/bin/knockp -s example.org 2000 3000 4000; nc %h %p" |
NewerOlder