Skip to content

Instantly share code, notes, and snippets.

@msanders
msanders / README.md
Last active September 23, 2024 17:47
Backup and restore cookie and site exception list in Firefox

Installation

mkdir -p ~/bin
curl --proto "=https" --tlsv1.2 "https://gist.githubusercontent.com/msanders/57837aaf6f7da30dcc1eb0bdf6b0b733/raw/firefox_export_cookie_exceptions" > ~/bin/firefox_export_cookie_exceptions
curl --proto "=https" --tlsv1.2 "https://gist.githubusercontent.com/msanders/57837aaf6f7da30dcc1eb0bdf6b0b733/raw/firefox_restore_cookie_exceptions" > ~/bin/firefox_restore_cookie_exceptions
chmod u+x ~/bin/firefox_export_cookie_exceptions  ~/bin/firefox_restore_cookie_exceptions 
mkdir -p ~/.local/share/fxcookies

# NOTE: Firefox must be closed in order for restore to unlock the database.
@IverCoder
IverCoder / office-guide.md
Last active October 5, 2024 08:22
Install and Activate Microsoft Office for Free - A Step-by-Step Guide

Please leave a star at the GitHub Gist mirror if this guide has helped you! You can also ask questions/assistance there.

Install and Activate Microsoft Office 365 for Free - A Step-by-Step Guide

This is a guide on how to install the latest version of Microsoft Office for free. For this method, we will use the Office Deployment Tool. The Microsoft Office Deployment Tool is a command-line program that IT managers use to configure and deliver Office products to PCs in their businesses, but in this guide, we will use it to install Microsoft Office with additional customization options and download it straight from Microsoft's servers.

NOTE: You will not need to repeat this step again to upgrade. Just keep your Office up to date and you will not have any issues.

NOTE: Make sure you have recently reloaded your number with at least 5GB of internet if you use your mobile internet through a hotspot to download. If your telecom

@lbrame
lbrame / archtweaks.md
Last active September 27, 2024 19:33
Tweaks I've made to my Arch Linux installation

Arch Linux tweaks

This is a collection of the tweaks and modification I've made to my Arch Linux installation over the months. These may be applicable to other distros, but please check first before doing anything. I also included Arch Wiki references for all the procedures I mentioned. My recommendation is not to blindly follow this gist but to always check with the Arch Linux wiki first. Things move fast and by the time you're reading this my gist may be out of date. Lastly, the golden rule: never execute a command you don't understand.

Installing the KDE Plasma desktop

My current DE of choice is KDE's Plasma. I find it just about perfect.

There are various ways to install it on Arch. The most popular one is to install plasma and plasma-applications, but I don't like doing that because it comes with too many programs I'll never use. I, instead, install the base plasma group, remove the few extra packages that come with it, then I finish off by installing a few KDE apps that don't come with th

@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active October 4, 2024 12:42
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@gamunu
gamunu / firefox-quantum-telemetry
Last active September 26, 2023 13:56
Disabling Firefox Quantum telemetry
Disabling telemetry takes a little more work but can be accomplished in about five minutes. Type "about:config" in the address bar, and you will be notified that you could void your warranty (Firefox has a warranty?). Click on "I accept the risk." Type in "telemetry" in the search bar to see the results. Only some can be changed, and according to Mozilla, they are:
browser.newtabpage.activity-stream.feeds.telemetry
browser.newtabpage.activity-stream.telemetry
browser.ping-centre.telemetry
toolkit.telemetry.archive.enabled
toolkit.telemetry.bhrPing.enabled
toolkit.telemetry.enabled
toolkit.telemetry.firstShutdownPing.enabled
toolkit.telemetry.hybridContent.enabled
@thefranke
thefranke / RSS.md
Last active October 2, 2024 03:34
A list of RSS endpoints, readers and resources

The RSS Endpoint List

Please refer to this blogpost to get an overview.

Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.

Social Media

Twitter

@SeanChristopherConway
SeanChristopherConway / docker-compose.yaml
Last active June 15, 2022 00:30
Docker Pihole with unbound for authoritative, validating, recursive caching DNS
version: "3.7"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
dns: 127.0.0.1
restart: unless-stopped
links:
- unbound
@holmberd
holmberd / linux-kill-pts.md
Last active July 13, 2024 18:38
Kill tty/pts sessions in Linux

Kill user tty/pts sessions in Linux

Commands

  • w: show who is logged on and what they are doing
  • who: show who is logged on
  • tty: show current users pseudo terminal
  • ps -ft pts/1: get process id for the pseudo terminal
  • pkill: signal process based on name and other attributes
@onedr0p
onedr0p / transmission-gc.sh
Last active October 21, 2023 19:04
Transmission Garbage Collector
#!/bin/sh
#
# INFO
#
# This works if sonarr and radarr are set up to have a Category of sonarr and radarr respectively
# If you are using other Categories to save your automated downloads, update the script where you see:
# "radarr"|"sonarr")
# This script will not touch anything outside those Categories
@primaryobjects
primaryobjects / m3u8.md
Last active October 5, 2024 16:38
How to download m3u8 and ts video movie streams.

m3u8 Downloading

  1. Open Chrome Developer tools and click the Network tab.
  2. Navigate to the page with the video and get it to start playing.
  3. Filter the list of files to "m3u8".
  4. Find master.m3u8 or index.m3u8 and click on it.
  5. Save the file to disk and look inside it.
  6. If the file contains a single m3u8 master url, copy that one instead.
  7. Run the program m3u8x.
  8. Paste the same m3u8 url in both textboxes (URL and Quality URL) and click "Headers" and set the referral url and user-agent from the request as found in Chrome.