For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
# Modify this file accordingly for your specific requirement. | |
# http://www.thegeekstuff.com | |
# 1. Delete all existing rules | |
iptables -F | |
# 2. Set default chain policies | |
iptables -P INPUT DROP | |
iptables -P FORWARD DROP | |
iptables -P OUTPUT DROP |
# -*- coding:utf-8 -*- | |
""" | |
lib/RedisSessionStore.py | |
~~~~~~~~~~~~~~ | |
Flask 0.7, session store in redis | |
ref by https://gist.github.com/994937 |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>CFBundleDevelopmentRegion</key> | |
<string>English</string> | |
<key>CFBundleExecutable</key> | |
<string>ifd-ccid.bundle</string> | |
<key>CFBundleIdentifier</key> | |
<string>org.debian.alioth.pcsclite.smartcardccid</string> |
description = [[ | |
Issues an arbitrary HTTP GET request | |
]] | |
--- | |
-- @usage | |
-- nmap --script http-get [--script-args http-get.path=/status] -p <port> <host> | |
-- @args http-get.path The path to request (defaults to /) | |
-- http-get.match String to match in the HTTP response (incl. headers) | |
-- @output |
var fs = require('fs'); | |
var Buffer = require('buffer').Buffer; | |
var id3Reader = new (function(){ | |
// Credits to esailja // | |
var self = this; | |
function id3Size( buffer ) { | |
var integer = ( ( buffer[0] & 0x7F ) << 21 ) | | |
( ( buffer[1] & 0x7F ) << 14 ) | | |
( ( buffer[2] & 0x7F ) << 7 ) | |
#!/bin/bash | |
# If the process is already running, you can use the following: | |
PID=`pgrep processname` | |
renice -n 19 $PID | |
ionice -c 3 -p $PID | |
# For new processes, just chain them together | |
nice -n 19 ionice -c 3 processname |
# encoding : utf-8 | |
require 'openssl' | |
require 'digest/sha1' | |
require 'base64' | |
module Aws | |
extend self | |
def signed_url(path, expire_date) | |
digest = OpenSSL::Digest::Digest.new('sha1') | |
can_string = "GET\n\n\n#{expire_date}\n/#{S3_BUCKET}/#{path}" |
# ... | |
gem 'sidekiq' | |
# ... |