Skip to content

Instantly share code, notes, and snippets.

View cyfrost's full-sized avatar
👨‍💻

Cyrus Frost cyfrost

👨‍💻
View GitHub Profile

iOS, The Future Of macOS, Freedom, Security And Privacy In An Increasingly Hostile Global Environment

This post by a security researcher who prefers to remain anonymous will elucidate concerns about certain problematic decisions Apple has made and caution about future decisions made in the name of “security” while potentially hiding questionable motives. The content of this article represents only the opinion of the researcher. The researcher apologises if any content is seen to be inaccurate, and is open to comments or questions through PGP-encrypted mail.



TL;DR

@cyfrost
cyfrost / install-latest-vscodium-ubuntu.sh
Last active June 3, 2022 21:25
[Ubuntu] Simple shell script to install (or update to) latest version of VSCodium
#!/bin/bash
# This script will check if VSCodium is installed in your machine, if yes, then tries to update it to the latest version
# else, installs whichever the latest version is.
#
# NOTE: There's already this repo (https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo) that provides
# the codium package for APT based distros but for some reason the download was extremely slow.
# This script pulls the download from github directly (which is hopefully a tad bit faster).
# Thanks to https://stackoverflow.com/a/4024263/2631023
@cyfrost
cyfrost / sinkholes.txt
Last active May 18, 2022 19:46
sinkhole lists
https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
https://raw.githubusercontent.com/cyfrost/dotfiles/master/dnsmasq_notracking_hosts.txt
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/add.Spam/hosts
https://v.firebog.net/hosts/static/w3kbl.txt
https://adaway.org/hosts.txt
https://v.firebog.net/hosts/AdguardDNS.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext
https://raw.githubusercontent.com/FadeMind/hosts.extras/master/UncheckyAds/hosts
https://v.firebog.net/hosts/Easyprivacy.txt
@cyfrost
cyfrost / cloudSettings
Last active July 5, 2021 12:42
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-07-05T12:42:56.820Z","extensionVersion":"v3.4.3"}
@cyfrost
cyfrost / TheMonkeySphere.md
Last active June 6, 2021 12:15
The Monkey Sphere (article written by Jason Pargin in 2007 for cracked.com), this article has stuck and resonates with me since a long time. Preserving it in markdown for future reference (because I hate ads and love markdown)

What is the Monkeysphere?

by Jason Pargin, September 30, 2007

"One death is a tragedy. One million deaths is a statistic." -Kevin Federline

What do monkeys have to do with war, oppression, crime, racism and even e-mail spam? You'll see that all of the random ass-headed cruelty of the world will suddenly make perfect sense once we go Inside the Monkeysphere.

@cyfrost
cyfrost / convert-osm-maps-url.sh
Last active February 2, 2020 04:41
convert OSM maps URL to Google Maps URL
#!/bin/sh
# Script example usage: ./convert-osm-maps-url.sh "https://www.openstreetmap.org/?mlat=35.462558&mlon=-99.122877"
osm_url="$1"
lat=$(echo "$osm_url" | sed -E 's/.*mlat=([^&]+).*/\1/')
lon=$(echo "$osm_url" | sed -E 's/.*mlon=([^&]+).*/\1/')
gmaps_link="https://www.google.com/maps/?q=$lat,$lon"
@cyfrost
cyfrost / install-latest-vscodium-fedora.sh
Last active November 8, 2019 04:01
[Fedora] Simple shell script to install (or update to) the latest version of VSCodium
#!/bin/bash
# This script will check if VSCodium is installed in your machine, if yes, then tries to update it to the latest version
# else, installs whichever the latest version is.
#
# NOTE: There's already this repo (https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo) that provides
# the codium package for RPM based distros but for some reason the download was extremely slow.
# This script pulls the download from github directly (which is hopefully a tad bit faster).
# Thanks to https://stackoverflow.com/a/4024263/2631023
@cyfrost
cyfrost / install-latest-android-studio.sh
Last active October 13, 2019 17:06
[Linux only] Download and Install latest Android Studio anytime
#!/bin/bash
# For most (if not all) Linux distros, there is no official repository package available to install Android Studio
# and still get regular updates. I made the below bash script that'll automatically scrape their download site for
# the download link of the latest version and can also optionally install it.
# As a forewarning, the method used to scrape the download link (sed and grep) may not always work, in which case,
# the script will notify it and exit without making any changes.
pageSource="/tmp/androidStudioHTML" && \
@cyfrost
cyfrost / install_lamp_18.sh
Created July 17, 2019 06:36 — forked from ankurk91/install_lamp_ubuntu.sh
Ubuntu 18.04 - PHP development (php 7.2, MySQL 5.7, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 18.04 dev Server
# Run like - bash install_lamp.sh
# Script should auto terminate on errors
echo -e "\e[96m Adding PPA \e[39m"
sudo add-apt-repository -y ppa:ondrej/apache2
@cyfrost
cyfrost / get-private-repos-from-github.py
Created March 30, 2019 12:02
A basic pygithub3 example that shows how to get all the public and PRIVATE repos of a github user
#!/usr/bin/env python3
# This python script allows you to get all public and private repos of a given user (either by their name or by their OAuth token)
#
# For me, the intended use of this example is to use it backup all my repos to my machine (just in case :p)
#
# Usage:
#
# First install dependency using command: pip3 install pygithub3 --user
#