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
import board | |
import digitalio | |
import time | |
import pulseio | |
import adafruit_motor.servo | |
import random | |
pwm = pulseio.PWMOut(board.A2, frequency=50) | |
servo = adafruit_motor.servo.Servo(pwm, min_pulse=900, max_pulse=2400) | |
led = digitalio.DigitalInOut(board.D13) |
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
https://reputation.alienvault.com/reputation.generic.gz | |
https://reputation.alienvault.com/reputation.generic | |
https://reputation.alienvault.com/reputation.data | |
https://reputation.alienvault.com/reputation.snort.gz | |
https://reputation.alienvault.com/reputation.snort | |
https://reputation.alienvault.com/reputation.iptables.gz | |
https://reputation.alienvault.com/reputation.iptables | |
https://reputation.alienvault.com/reputation.squid.gz | |
https://reputation.alienvault.com/reputation.squid | |
https://reputation.alienvault.com/reputation.unix.gz |
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
8.2.3. HTTP log format | |
---------------------- | |
The HTTP format is the most complete and the best suited for HTTP proxies. It | |
is enabled by when "option httplog" is specified in the frontend. It provides | |
the same level of information as the TCP format with additional features which | |
are specific to the HTTP protocol. Just like the TCP format, the log is usually | |
emitted at the end of the session, unless "option logasap" is specified, which | |
generally only makes sense for download sites. A session which matches the | |
"monitor" rules will never logged. It is also possible not to log sessions for |
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
#!/bin/sh | |
TMPFILE="/tmp/innobackupex-runner.$$.tmp" | |
USEROPTIONS="--user=XXX --password=XXX" | |
FILTERTABLES="--include=.*[.].*" | |
BACKDIR=/var/mysql-bak | |
BASEBACKDIR=$BACKDIR/base | |
INCRBACKDIR=$BACKDIR/incr | |
FULLBACKUPLIFE=3600 #604800 # How long to keep incrementing a backup for, minimum 60 | |
KEEP=1 # Keep this number of backups, appart form the one currently being incremented |
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 | |
# Step 1: Fill in EMAIL, TOKEN, DOMAIN and SUBDOMAIN. Your API token is here: https://www.cloudflare.com/a/account/my-account | |
# Make sure the token is the Global token, or has these permissions: #zone:read, #dns_record:read, #dns_records:edit | |
# Step 2: Create an A record on Cloudflare with the subdomain you chose | |
# Step 3: Run "./ddns.sh -l" to get the zone_id and rec_id of the record you created. | |
# Fill in ZONE_ID and REC_ID below | |
# This step is optional, but will save you 2 requests every time you this script | |
# Step 4: Run "./ddns.sh". It should tell you that record was updated or that it didn't need updating. | |
# Step 5: Run it every hour with cron. Use the '-s' flag to silence normal output |
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
#!/bin/sh | |
WAN_IP=`curl ifconfig.io/ip` | |
OLD_WAN_IP=`cat /var/CURRENT_WAN_IP.txt` | |
if [ "$WAN_IP" = "$OLD_WAN_IP" ] | |
then | |
echo "IP Unchanged" | |
else | |
curl https://www.cloudflare.com/api_json.html \ | |
-d 'a=rec_edit' \ | |
-d 'tkn=8afbe6dea02407989af4dd4c97bb6e25' \ |
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
rpmcve () { | |
rpm -qa --changelog $1 | grep $2 | |
} |
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/python | |
#Run this locally on your remote gns3 server | |
#copy output to file on your local desktop | |
#upload license file at gns3.yourdomain:8000/upload | |
#upload your iou file at same spot if you haven't done so | |
print "\n*********************************************************************" | |
print "Cisco IOU License Generator - Kal 2011, python port of 2006 C version" | |
import os | |
import socket | |
import hashlib |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
# For a list of vagrant boxes visit the site below | |
# http://www.vagrantbox.es/ | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
NewerOlder