Skip to content

Instantly share code, notes, and snippets.

@jasonbronson
jasonbronson / torrents.txt
Created April 11, 2023 17:31
testing parsing
This file has been truncated, but you can view the full file.
Futurama Benders Big Score XViD DVDRiP-ANiVCD Slayer
High School Musical 2 2007 EXTENDED DVDRip XviD-VoMiT Slayer
Dragon Wars DVDSCR XVID-ALLiANCE
Katt Williams American Hustle 2007 DVDRip-XviD-SiNK
Underdog DVDRip XviD-DiATRiBE Slayer
Hairspray DVDRip XviD-DiAMOND
The Notebook DVDRip XviD-Diamond-PVR
Harry Potter And The Order Of The Phoenix[2007]DvDrip[Eng]-aXXo *NORAR*
Hot Rod 2007 DVDRip XviD-FLAiTE
The Bourne Ultimatum DVDRip XviD-MDP
@jasonbronson
jasonbronson / docker_debian11.sh
Last active March 20, 2023 00:00
docker install debian 11
#!/bin/bash
# Modify the SSH configuration to disable password authentication
sudo sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config
sudo systemctl reload sshd
# Update the package index
sudo apt-get update
# Install packages to allow apt to use a repository over HTTPS
@jasonbronson
jasonbronson / ansibledockerinstall.sh
Created March 19, 2023 15:58
run ansible docker install
sudo apt-get update && sudo apt-get install -y ansible && ansible-playbook -c local -i "localhost," -e 'ansible_python_interpreter=/usr/bin/python3' -e 'docker_storage_path=/docker' https://gist.githubusercontent.com/jasonbronson/45d21ec3429b2d5c6da58dac4269a312/raw/ansible-playbook.yml'
@jasonbronson
jasonbronson / install_debian11_docker
Last active March 19, 2023 23:34
install_debian11_docker
---
- hosts: all
become: true
tasks:
- name: Modify SSHD config for public key auth and root password login
lineinfile:
path: /etc/ssh/sshd_config
regexp: '^#?PasswordAuthentication'
line: 'PasswordAuthentication yes'
state: present
@jasonbronson
jasonbronson / ufw_update.sh
Created November 18, 2021 21:05
Update ip address bash script for UFW firewall
#!/bin/bash
#allow a dyndns name
PATH="/usr/sbin:/usr/bin"
HOSTNAME=home.bronson.dev
LOGFILE=/tmp/updateip.log
Current_IP=$(host $HOSTNAME | cut -f4 -d' ')
touch $LOGFILE
@jasonbronson
jasonbronson / rancher.sh
Last active June 8, 2021 15:19
Rancher Docker Install Debian 10
#!/bin/sh
adduser --disabled-password --gecos "" jason
apt-get update
apt-get install \
apt-transport-https \
ca-certificates \
curl \
@jasonbronson
jasonbronson / dockerinstall.sh
Last active July 14, 2020 13:38
Install docker on Debian 10
sudo apt-get update;
sudo apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg-agent \
software-properties-common;
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -;
sudo apt-key fingerprint 0EBFCD88;
sudo add-apt-repository \
@jasonbronson
jasonbronson / insertjsfile
Created March 29, 2018 15:36
insert js file #optimizely
$(function(){var fileRef = document.createElement('script'); fileRef.setAttribute("type","text/javascript"); fileRef.setAttribute("src", "//assets.pinterest.com/js/pinit.js"); document.body.appendChild(fileRef);});
@jasonbronson
jasonbronson / insertcssfile
Last active March 29, 2018 15:35
Insert CSS file #optimizely
var ss = document.createElement("link");
ss.type = "text/css";
ss.rel = "stylesheet";
ss.href = "/path/to/cssfile/goeshere.css";
document.getElementsByTagName("head")[0].appendChild(ss);
insert raw css style
$('head').append('<style>del.redline{color:green !important;}</style>');
@jasonbronson
jasonbronson / build-apache-conf-web-directory.sh
Last active January 21, 2018 19:38
build the apache2 conf files from list of web directory
#!/bin/bash
#find /web/ -maxdepth 1 -type d > domainlist.csv
find /web/ -maxdepth 1 -type d | sed 's/\/web\///g' > domainlist.csv
apachelogdir=/var/log/apache2/
if [ "$(whoami)" != 'root' ]; then
echo "You have to execute this script as root user"
exit 1;
fi