Skip to content

Instantly share code, notes, and snippets.

daktak

Block or report user

Report or block daktak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@daktak
daktak / ffmpeg_record_screen.sh
Last active May 28, 2019
Ffmpeg record selected window. Written for Qubes-OS
View ffmpeg_record_screen.sh
#!/bin/bash
#pass in alsa or pulse to record from sound device
IFS=$
#omit the top pixels to hide tabs and address bar
FIREFOX_Y_BUFFER=94
FIREFOX_X_BUFFER=2
if [[ ${1} =~ alsa ]] ; then
sound="-f alsa -ac 2 -i hw:0"
fi
if [[ ${1} =~ pulse ]] ; then
@daktak
daktak / qvm-exposeip.sh
Last active Sep 17, 2019
Qubes-os port forwarding to allow external connections
View qvm-exposeip.sh
#!/bin/sh
ip() { qvm-ls --raw-data ip -- "$1"; }
netvm() { qvm-prefs -g -- "$1" netvm; }
forward() {
local from_domain=$1
local to_domain=$2
local port=$3
local type=$4
@daktak
daktak / qvm-talk.sh
Last active Jan 9, 2017
Qubes-OS allow two appvms to talk to each other
View qvm-talk.sh
#!/bin/bash
vm1=$1
vm2=$2
fw=$3
ip1=`qvm-run -p -u root ${vm1} "ifconfig eth0 | grep 'inet ' | column -t | cut -d ' ' -f3"`
ip2=`qvm-run -p -u root ${vm2} "ifconfig eth0 | grep 'inet ' | column -t | cut -d ' ' -f3"`
if [ -z ${fw} ]; then
fw=sys-firewall
fi
View permissions.py
#!/bin/env python2
#
#
##############################################################################
### NZBGET POST-PROCESSING SCRIPT ###
# chmod for nzbget
# NOTE: This script requires Python to be installed on your system.
##############################################################################
### OPTIONS ###
@daktak
daktak / SendFiles.py
Last active Aug 29, 2015
Modified to support conversion of files before sending
View SendFiles.py
#!/usr/bin/env python2
# GistID: 8f261d9852d5fc0bcfe8
#
# Send files post-processing script for NZBGet
#
# Copyright (C) 2013 Andrey Prygunkov <hugbug@users.sourceforge.net>
#
# 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 2 of the License, or
View NzbAddToQueue.py
#!/usr/bin/env python2
# GistID: 2a0460ce2b2243ffaa55
#
# Add NZB file to the queue
#
# Copyright (C) 2013 Andrey Prygunkov <hugbug@users.sourceforge.net>
#
# This program is free Series; 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 2 of the License, or
@daktak
daktak / FailEmail.py
Last active Aug 29, 2015
NZBGet ppscript modified to send email only on failure
View FailEmail.py
#!/usr/bin/env python2
# GistID: d92a0fccbe76f275ff2e
#
# E-Mail post-processing script for NZBGet that notifies on failure only
#
# Copyright (C) 2013 Andrey Prygunkov <hugbug@users.sourceforge.net>
# With modifications by Chris Pickett "Parnic"
#
# 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
@daktak
daktak / MoveFiles.py
Last active Feb 3, 2018
NZBGet script to move nzb files into watch dir
View MoveFiles.py
#!/usr/bin/env python2
# GistID: 581f5a91899f5662a4a8
#
# Move files post-processing script for NZBGet
#
# Copyright (C) 2013 Andrey Prygunkov <hugbug@users.sourceforge.net>
#
# 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 2 of the License, or
@daktak
daktak / vcftoxml.py
Created May 7, 2015
convert Contacts.vcf to XML format used by Pidgin (good for Whatsapp / Telegram contact list)
View vcftoxml.py
#!/usr/bin/env python
"""
Parse phone and email records out of vCard file and store them in an xml file to
be inserted into pidgins blist.xml.
Copyright (C) 2012 Senko Rasic <senko.rasic@dobarkod.hr>
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
@daktak
daktak / ng-iprules.sh
Last active Mar 12, 2016
Transparent Proxy mangle for NetGear router
View ng-iprules.sh
#!/usr/bin/expect
set timeout 20
set hostName [lindex $argv 0]
set userName [lindex $argv 1]
set password [lindex $argv 2]
spawn telnet $hostName
expect "DGN2200v3 login: "
send "$userName\r"
You can’t perform that action at this time.