Skip to content

Instantly share code, notes, and snippets.

@RubenKelevra
RubenKelevra / fast_firefox.md
Last active June 21, 2024 15:08
Make Firefox fast again
@ruario
ruario / authy-fetch-extract-snap.md
Last active June 16, 2024 11:32
How to download and install Twilio Authy on a desktop Linux system without snap support
  • Make an install directory somewhere convenient and switch to it
mkdir -p ~/.local/share/authy
cd ~/.local/share/authy
  • Fetch the current Authy snap
@sxiii
sxiii / README-Remove-Locales.md
Last active March 8, 2024 17:41
Remove Unnecessary Locales Fedora

Small guide that helps to free up space by removing unneccessary locales from Fedora
With some additional information on how to make more space on your system (advices in the end)
Tried on Fedora 34, but should work on other distros as well (RPM-Based?)

Step 0. Bonus step -- check available space before procedure:

df -lh

Step 1. Enter the locales directory

cd /usr/share/locale/

Step 2. Check that there is files to remove

ls

@xd003
xd003 / selenium-setup.sh
Last active April 21, 2024 13:33
Bash Script to setup Python + Selenium + chromedriver on a Headless Chrome Browser
#!/usr/bin/env bash
echo "This script will setup webdriver of your choice for selenium and create a template script with appropriate settings"
sleep 2
echo "This Script only supports Linux 64 bit and arm64/aarch64 kernel architecture currently"
sleep 2
uname="$(uname -m)"
case $uname in
arm64|aarch64|x86_64 )
@Humoud
Humoud / new_domains.sh
Created April 23, 2020 17:35
Tracking Newly Registered Domains
#!/bin/bash
# upgraded and modified from: https://isc.sans.edu/forums/diary/Tracking+Newly+Registered+Domains/23127/
TODAY=`date --date="-1 day" +"%Y-%m-%d"`
PARAM=`echo -n "$TODAY.zip" | base64`
DESTDIR="/opt/dns/domains"
URL="https://whoisds.com/whois-database/newly-registered-domains/$PARAM/nrd"
USERAGENT="DataBot/1.0"
TEMPFILE=`mktemp /tmp/wget_XXXXXX.zip`
From: http://web.archive.org/web/20160904174444/http://andreafrancia.it/2010/03/understanding-the-output-of-rsync-itemize-changes.html
As you may know the rsync's --delete options if misused could make severe damage.
To prevent this you can use the --itemize-change and the --dry-run options to figure out how the command will behave before launching the real one.
The output will be something like that:
.d..t..g... ./
.f...p.g... Something.pdf
@chrisswanda
chrisswanda / WireGuard_Setup.txt
Last active June 6, 2024 08:21
Stupid simple setting up WireGuard - Server and multiple peers
Install WireGuard via whatever package manager you use. For me, I use apt.
$ sudo add-apt-repository ppa:wireguard/wireguard
$ sudo apt-get update
$ sudo apt-get install wireguard
MacOS
$ brew install wireguard-tools
Generate key your key pairs. The key pairs are just that, key pairs. They can be
@deeso
deeso / download_new_domains.py
Created March 22, 2018 03:02
Download new domains from Whois Newly Registered Domains
from pymongo import MongoClient
import json, os, time, signal, threading, sys
from datetime import datetime, timedelta
from gglsbl import SafeBrowsingList
import requests
from datetime import datetime
from datetime import datetime, timedelta
from virus_total_apis import PrivateApi, PublicApi
import argparse
atl*CLI> core show help
! -- Execute a shell command
acl show -- Show a named ACL or list all named ACLs
ael reload -- Reload AEL configuration
ael set debug {read|tokens|macros|contexts|off} -- Enable AEL debugging flags
agi dump html -- Dumps a list of AGI commands in HTML format
agi exec -- Add AGI command to a channel in Async AGI
agi set debug [on|off] -- Enable/Disable AGI debugging
agi show commands [topic] -- List AGI commands or specific help
aoc set debug -- enable cli debugging of AOC messages
@BrianRossmajer
BrianRossmajer / gist:e82e9944d2b246587be4baa9aeac3b98
Created December 26, 2017 14:48
Using sshfs high-speed no-encryption
http://pl.atyp.us/wordpress/index.php/2009/09/file-transfer-fun/
File Transfer Fun
17 September, 2009 8:32 am
I’ve written before about the extreme usefulness of sshfs for accessing files remotely without having to install server software. It continues to be an important part of my toolbox, as does its cousin CurlFtpFS which – unlike sshfs – I can even use to mount a directory here on my web host. Of course, either becomes even more useful when combined with some easy method of synchronization. You probably have rsync already. You can also use Unison if you need bidirectional synchronization – which you generally will if you’re trying to use a single directory somewhere as a “drop box” to share between multiple machines.
I just found another sshfs trick today. If the connection between your two machines is already secure – e.g. on the same private network or connected via a secure VPN/tunnel – you might want to avoid an extra round of encryption and decryption by using the “-o directport” option to sshfs. T