Skip to content

Instantly share code, notes, and snippets.

@rootVIII
rootVIII / sec_browse.py
Last active May 31, 2022 21:19
Python sec_browse.py - Auto-configures Firefox network settings and opens a secure Tor/Firefox browser session for the # time specified by -t
#! /usr/bin/python3
from os import popen, remove, getcwd
from selenium import webdriver
from subprocess import call
from sys import exit
from time import sleep
from argparse import ArgumentParser
from threading import Thread
# rootVIII
# sec_browse.py - Auto-configures Firefox network settings
@rootVIII
rootVIII / port_scanner.py
Last active May 30, 2022 16:18
Python Port scanner, scan another Linux host
#! /usr/bin/python3
import socket
from threading import Thread
from argparse import ArgumentParser
class PortScanner:
def __init__(self, target_ip, show):
self.show_ranges = show
self.target_ip = target_ip
@Axel-Erfurt
Axel-Erfurt / AudioConverter.py
Last active May 30, 2021 16:11
AudioConverter
#!/usr/bin/python3
# -*- coding: utf-8 -*-
########################################################
from PyQt5.QtCore import (QDir, Qt)
from PyQt5.QtWidgets import (QApplication, QGridLayout,
QTableWidget, QTableWidgetItem, QWidget, QPushButton, QFileDialog,
QMainWindow, QMessageBox, QAbstractItemView, QComboBox, QLabel)
from PyQt5.QtGui import QIcon
import os, subprocess
import pydub
@Dev-Dipesh
Dev-Dipesh / nginx-ssl.md
Last active April 27, 2024 07:37
Setting SSL/TLS in Nginx Using Godaddy as CA Provider

CA PROVIDER - GODADDY

Certificates

Ones you have generated, downloaded and extracted the certificate zip, you will find 2 files in it:

  • gd_bundle-g2-g1.crt Intermediate Certificate
  • RANDOM_NUM.crt Your SSL Certificate

Creating single chained certificate

@dkarchmer
dkarchmer / supervisord.conf
Created April 26, 2016 17:01
Sample supervisord conf for running a python script in the background
; Assumes dockerfile with:
; ENTRYPOINT ["/usr/bin/supervisord", "-c", "/var/app/supervisord.conf"]
[supervisord]
;logfile=/var/app/logs/ ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=5 ; (num of main logfile rotation backups;default 10)
loglevel=debug ; (log level;default info; others: debug,warn,trace)
pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=true ; (start in foreground if true;default false)
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active June 5, 2024 22:16
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@austinmarton
austinmarton / sendRawEth.c
Created February 27, 2012 08:40
Send a raw Ethernet frame in Linux
/*
* 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.
*/
#include <arpa/inet.h>
#include <linux/if_packet.h>
#include <stdio.h>
@limed
limed / resnet-test.py
Created November 10, 2011 18:27
Using PUT in urllib2
#!/usr/bin/python
import urllib2
import json
apikey = ''
user = ''
baseurl = ''
query_enable = { 'is_enabled' : True }