I hereby claim:
- I am nkauppila on github.
- I am nkauppila (https://keybase.io/nkauppila) on keybase.
- I have a public key ASDGZrdtPzDAeGiu1nkVFvj2BL706P125UGxvUYbhfDXcAo
To claim this, I am signing this object:
#!/usr/bin/env python | |
from scapy.all import * | |
from argparse import ArgumentParser | |
parser = ArgumentParser() | |
parser.add_argument("-f", "--file", dest="filename", required=True, | |
help="pcap file to analyze", metavar="FILE") | |
args = parser.parse_args() |
I hereby claim:
To claim this, I am signing this object:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<html> | |
<head> | |
<title>asdasdasd</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/es5-shim/4.1.10/es5-shim.js"></script> | |
<script src="https://cdn.jsdelivr.net/refluxjs/0.2.11/reflux.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/superagent/1.2.0/superagent.js"></script> | |
</head> | |
<body> |
tr -dc A-Za-z0-9 < /dev/urandom|head -c 10M > file.txt |
awful.key({ modkey }, "s", | |
function () | |
local clients = { } | |
for i = 1,screen.count(),1 do | |
clients[i] = awful.client.tiled(i) | |
end | |
for s, ct in pairs(clients) do | |
for i, c in pairs(ct) do | |
awful.client.movetoscreen(c) | |
end |
#!/bin/bash | |
BACKUP_DIRS=("/home/niko/" "/etc/") | |
DEST="/media/backup" | |
EXCLUDE_LIST="/home/niko/bin/backup-exclude.txt" | |
WRITE_LOG=true | |
BACKUP_SOFWARE_LIST=true | |
DEST=$(echo $DEST |sed -e "s/\/$//") #remove possible trailing backslash. |
function get_screenshot_from_client(show, awful) | |
math.randomseed(os.time()) | |
local image_viewer = "/usr/bin/gthumb" | |
local image_name = "awesome-" .. math.random(0, 10000) .. ".png" | |
local image_path = "/tmp/" .. image_name | |
local command = image_viewer .. " " .. image_path | |
client.focus.content:save(image_path) | |
if show then awful.util.spawn(command) end | |
end |