Skip to content

Instantly share code, notes, and snippets.

View SpyPower's full-sized avatar

Spyros Psarras SpyPower

  • @adminkitas
  • Sandefjord, Norway
View GitHub Profile
@Ponce
Ponce / latest-thunderbird.sh
Last active October 29, 2021 11:28 — forked from ruario/latest-firefox.sh
This script will find the latest Thunderbird binary package, download it and repackage it into Slackware format.
#!/bin/bash
# latest-thunderbird Version 0.1
# This script will find the latest Thunderbird binary package, download it
# and repackage it into Slackware format.
# It's shamelessly copied from ruario's latest-firefox.sh script,
# hope he doesn't mind. :P
# Copyright 2018 Ruari Oedegaard, Oslo, Norway
@jaygooby
jaygooby / nginx-google-domain-csp-map.sh
Created February 6, 2020 15:30
Use the correct google country domain in your nginx content-security-policy header, instead of all of them
#!/bin/bash
#
# Generates an nginx compatible map that you can use to
# put the relevant Google country code in your Content-Security-Policy
# instead of having them all.
#
# Add these to your nginx config:
# geoip2 /path/to/GeoLite2-Country.mmdb {
# $geoip2_country_code default=US source=$remote_addr country iso_code;
# $geoip2_country_name country names en;
@rise-worlds
rise-worlds / For Mac 4.2.6 unlimited trial.md
Last active April 29, 2024 05:02 — forked from satish-setty/trial.md
Beyond Compare 4 license for Windows, Mac, Linux

for 4.2.4 or higher, 4.2.5,4.2.6,4.3.7, it's works, this is the way which makes Always in evaluation mode.

  1. open Terminal, go to the dir : cd /Applications/Beyond Compare.app/Contents/MacOS
  2. change the name BCompare to BCompare.bak: mv BCompare BCompare.bak
  3. touch a file name BCompare , and chmod a+ux BCompare : touch BCompare && chmod a+ux BCompare
  4. open BCompare with text editor, insert the script :
#!/bin/bash
rm "/Users/$(whoami)/Library/Application Support/Beyond Compare/registry.dat"
"`dirname "$0"`"/BCompare.bak $@