Skip to content

Instantly share code, notes, and snippets.

@TrevTV
TrevTV / ArcOn10.md
Last active May 4, 2024 18:18
Guide to installing Arc Browser on Windows 10

As this is not an official way of installing Arc, if you encounter any issues do NOT report them to the developers, they did not intend for people to be running Arc on Windows 10.

This guide is a bit more manual since I wanted to respect the developers' wishes and not directly link any downloads to the beta of Arc.

I don't know how this will work with updates, you may just need to redo the process to update it, but I'm not sure

  1. Install this font: https://aka.ms/SegoeFluentIcons (this fixes the icons since Windows 10 doesn't have this font installed by default)
  2. Download the Arc appinstaller and open it in notepad/some other text editor
  3. Copy everything inside and paste it into this website: https://codebeautify.org/xmlviewer (this is optional, but it makes reading and copying from the file easier)
  4. Find the mainpackage @Uri, it should end in Arc.x64.msix, and open that in a new tab. It should download that msix file.
@Rust1667
Rust1667 / download_all_fmhy_rentrys.py
Last active April 6, 2024 08:10
This is a script to download all rentrys from the FreeMediaHeckYeah Wiki including the base64 page. --- Requirements: You need to have the python package "rentry" installed ("pip install rentry" or download https://github.com/radude/rentry/blob/master/rentry.py in the same folder with the example.env file from that same repo renamed as ".env"))
import os
import base64
import re
import requests
import rentry
def extract_string_from_url(url):
# Define the regular expression pattern to match the string after the last '/'
pattern = r'https://rentry\.(?:co|org)/([^/]+)$'
@Sopor
Sopor / TransMac_Reset_Trial.cmd
Last active April 24, 2024 12:04
transmac reset
- Open Notepad.
- Copy everything from the comment below and paste it in Notepad.
- Press X to close Notepad, it will ask you to save the file.
- Choose an appropriate name eg. TransMac_Reset_Trial.cmd
You can place the file whatever you like as long as you have installed TransMac in the default install path.
You can also put TransMac_Reset_Trial.cmd in the same directory as TransMac.exe and run it from there.
This is useful if you want to put TransMac.exe in another path than default.
@Nagitch
Nagitch / make-setlist-as-plain-text-on-beatport-playlist-page-bookmarklet.js
Last active August 7, 2023 02:18
Make setlist (tracklist) as plain text on Beatport playlist page
// javascript:
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,b){a.raw=b;return a};(function(){var a=[{selector:".track-position__num",prefix:"",suffix:"."},{selector:".track-artists__artist",prefix:" ",suffix:""},{selector:".track-title__primary",prefix:" - ",suffix:""},{selector:".track-title__remixed",prefix:" (",suffix:")"}],b=[].slice.call(document.querySelectorAll(".track:not(.track--header)")).map(function(c){return a.reduce(function(d,e){var f;return d+(""+e.prefix+(null==(f=c.querySelector(e.selector))?void 0:f.innerText)+e.suffix)},"")}).reduce(function(c,d){return""+c+d+"\n"},"");navigator.clipboard.writeText(b);alert(b)})();
@Nagitch
Nagitch / make-setlist-as-plain-text-on-beatport-playlist-page.js
Last active August 7, 2023 02:18
Make setlist as plain text on Beatport playlist page
const keys = [
{ selector: '.track-position__num', prefix: '', suffix: '.' },
{ selector: '.track-artists__artist', prefix: ' ', suffix: '' },
{ selector: '.track-title__primary', prefix: ' - ', suffix: '' },
{ selector: '.track-title__remixed', prefix: ' (', suffix: ')' },
];
const asPlainText = [].slice.call(
document.querySelectorAll('.track:not(.track--header)')).map(e =>
keys.reduce((accum, current) =>
accum += `${current.prefix}${e.querySelector(current.selector)?.innerText}${current.suffix}`, '')
@lifofernandez
lifofernandez / bp-dump.sh
Last active December 29, 2022 23:29
Tracks download
w3m -dump BEATPORT_CHAR_URL | grep -A 10 "• \[" | grep -v -e '^$' | sed 's/--//g' | sed 's/ //g' | sed 's/• //g' > SALIDA.txt
cat SALIDA.txt | grep -A 3 "\[" | grep -v "\[" > SALIDA.clean.txt
cat SALIDA.clean.txt | grep -B 2 "-" | sed -z 's/--\n--\n/\n/g' >> SALIDA.clean2.txt
@Mavimarmara
Mavimarmara / roman-number-converter.js
Created April 20, 2022 21:09
Conversor de número romano para inteiro
/*
Objetivo:
Algoritmo para converter número romano para decimal.
Missing Test Case - 13. Roman to Integer of https://leetcode.com/problems/roman-to-integer/
Regra de negócio:
Os números romanos possuem um limite de letras com números correspondentes, e a partir delas é feito um cálculo para descobrir os demais números. São elas:
Symbol Value
I 1
@mrbid
mrbid / dl_gists.php
Last active December 8, 2022 04:38
A PHP-CLI script that downloads all gists from a specified user.
<?php
# https://gist.github.com/mrbid/9d2099a76691cc4ef435f0afbfb870f3
# April 2022
# php > python
# sudo apt install php8.0-cli
# use command: php dl_gists.php <github-username>
# a nice python alternative is; https://gist.github.com/selimslab/958e2255a105f9a3f4b421896bce715d
@ignaciocastro
ignaciocastro / ublock-youtube-annoyances
Created November 13, 2021 23:17
uBlock filters for Youtube search / homepage annoyances
##Add this to uBlock Origin > My filters
#Blocks unrelated results from search
www.youtube.com##ytd-shelf-renderer:has(#title:has-text(/^\s*(People also watched|For you|Previously watched|Latest from)\s*$/))
#Blocks list of recent uploads from a channel from search
www.youtube.com##ytd-shelf-renderer.style-scope:has-text(/Latest from/)
#Blocks Mix results from search
www.youtube.com##ytd-radio-renderer
#Blocks unrelated searches from search
www.youtube.com##ytd-horizontal-card-list-renderer.ytd-item-section-renderer:has-text(People also search for)