Skip to content

Instantly share code, notes, and snippets.

View SwapnilSoni1999's full-sized avatar
👨‍💻
SGFoYSEgWW91IGRlY29kZWQgaXQuIGxldHMgY29ubmVjdC4K

Swapnil Soni SwapnilSoni1999

👨‍💻
SGFoYSEgWW91IGRlY29kZWQgaXQuIGxldHMgY29ubmVjdC4K
View GitHub Profile
@zoltan-magyar
zoltan-magyar / cadmium-playercore-6.0033.414.911.js
Last active March 14, 2024 05:12
Cadmium playercore modified to force DDPlus Dolby Atmos on Safari
This file has been truncated, but you can view the full file.
a000.Z4L = function() {
return typeof a000.D4L.g4L === 'function' ? a000.D4L.g4L.apply(a000.D4L, arguments) : a000.D4L.g4L;
};
a000.j4L = function() {
return typeof a000.D4L.V4L === 'function' ? a000.D4L.V4L.apply(a000.D4L, arguments) : a000.D4L.V4L;
};
function a000() {}
a000.J4L = function() {
return typeof a000.D4L.V4L === 'function' ? a000.D4L.V4L.apply(a000.D4L, arguments) : a000.D4L.V4L;
};
@mvaisakh
mvaisakh / Bringup.md
Last active May 2, 2024 08:27
An Android Device Tree Bringup Guide

A small Device Tree Bringup Guide

Introduction

So, you guys might be wondering, how do these "Developers" get your favourite Custom roms, such as LineageOS, Paranoid Android etc., to their own devices. Well I'm here to Guide you on how to do it, specifically on how to bringup or make your own device tree from scratch or adapting.

Gist of this Guide: This is for people with genuine interest in Android OS porting/development. After going through this guide, you should be able to do a total device tree bringup on your own.

Prerequisite: Certain requirements are to be met before you start with this amazing journey.

@sindresorhus
sindresorhus / esm-package.md
Last active May 3, 2024 10:19
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active April 30, 2024 08:44
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@dikiaap
dikiaap / git-io-custom-url.md
Last active August 5, 2023 04:21
git.io custom URL

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
@ryanqy
ryanqy / selenium_chrome_driver_proxy_with_authentication.py
Created January 29, 2018 13:18
selenium chrome driver proxy with authentication
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
def create_proxyauth_extension(proxy_host, proxy_port,
@sclark39
sclark39 / InstagramIdConvert.js
Last active July 18, 2023 11:59
Convert from Instagram Shortcode to Id and Back using big-integer
var bigint = require( 'big-integer' )
var lower = 'abcdefghijklmnopqrstuvwxyz';
var upper = lower.toUpperCase();
var numbers = '0123456789'
var ig_alphabet = upper + lower + numbers + '-_'
var bigint_alphabet = numbers + lower
function toShortcode( longid )
@qti3e
qti3e / README.md
Last active April 13, 2024 15:50
List of file signatures and mime types based on file extensions