Skip to content

Instantly share code, notes, and snippets.

View surajsharma's full-sized avatar
⚕️
turning pro

Suraj Sharma surajsharma

⚕️
turning pro
View GitHub Profile
@0xdevalias
0xdevalias / reverse-engineering-webpack-apps.md
Last active April 26, 2025 14:26
Some notes and techniques for reverse engineering Webpack (and a little bit about React/Vue/Angular) apps
@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active April 26, 2025 20:19
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!

These are the current alternatives (with links when possible):

@hobgoblina
hobgoblina / anti-capital.sh
Last active March 22, 2025 11:44
anti-capital shell script ... lowercase + convert camel to snake_case for everything in the current or provided directory and recursively in all subdirectories without discretion. will break binaries and hashes - this is intended because they were a function of capital
#!/bin/bash
dir=$(pwd)/$1
if [[ $1 = /* ]]; then
dir=$1
fi
regex='s/\([a-z0-9]\)\([A-Z]\)/\1_\2/g;s/\([A-Z0-9]\)\([A-Z0-9]\)\([a-z]\)/\1_\2\3/g;s/\(.*\)/\L\1/g'
@kristofgilicze
kristofgilicze / terminal-line-cursor-effect.css
Created March 30, 2021 13:07
Terminal cursor style blinking dash at the end of the element with pure css
.terminal-line-cursor-effect::after {
content: ' _';
animation: animate 1.5s linear infinite;
}
@keyframes animate {
0% {
opacity: 0;
}
50% {
@micjabbour
micjabbour / install-ycm-termux.md
Last active April 12, 2025 09:42
How to install YouCompleteMe on Termux

How to install YouCompleteMe on Termux

Problem

As of March 2021, YouCompleteMe compiles fine on Termux, but it crashes once the plugin is loaded. The following error can be noticed in the logs:

ImportError: dlopen failed: cannot locate symbol "_ZNSt6__ndk14__fs10filesystem18__weakly_canonicalERKNS1_4pathEPNS_10error_codeE" referenced by "/data/data/com.termux/files/home/.vim/bundle/YouCompleteMe/third_party/ycmd/ycm_core.so"...
@FreddieOliveira
FreddieOliveira / docker.md
Last active April 27, 2025 16:55
This tutorial shows how to run docker natively on Android, without VMs and chroot.

Docker on Android 🐋📱

Edit 🎉

All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually.


Summary

@baumandm
baumandm / Chakra-UI x React-datepicker.md
Last active May 29, 2024 05:29
Chakra-UI x React-datepicker

⚠️ I'd recommend using this fork by @igoro00 which has better theme support.


Tiny wrapper component for React-Datepicker to stylistically fit with Chakra-UI 1.x.

<DatePicker selectedDate={myDate} onChange={(d) => console.log(d)} />
@dcts
dcts / workbench.colorCustomizations.json
Created April 14, 2020 16:51 — forked from jacklorusso/workbench.colorCustomizations.json
A list of all Visual Studio Code customizable colors, grouped by UI region. Copy and paste into User Settings (comments are allowed) to tweak an existing theme or work on your own.
"workbench.colorCustomizations": {
// Contrast Colors - The contrast colors are typically only set for high contrast themes. If set, they add an additional border around items across the UI to increase the contrast.
"contrastActiveBorder": "",
"contrastBorder": "",
// Base Colors
"focusBorder": "",
"foreground": "",
"widget.shadow": "",
"selection.background": "",
"descriptionForeground": "",
@tanaikech
tanaikech / submit.md
Last active January 5, 2025 06:09
Simple Script of Resumable Upload with Google Drive API for Node.js

Simple Script of Resumable Upload with Google Drive API for Node.js

This is a simple sample script for achieving the resumable upload to Google Drive using Node.js. In order to achieve the resumable upload, at first, it is required to retrieve the location, which is the endpoint of upload. The location is included in the response headers. After the location was retrieved, the file can be uploaded to the location URL.

In this sample, a PNG file is uploaded with the resumable upload using a single chunk.

Sample script

Before you use this, please set the variables.

@dctalbot
dctalbot / get_color.js
Created June 26, 2019 20:26
Get Common or "Dominant" Color from Image
drawImage = async img_path => {
let canvas = document.createElement("canvas");
canvas.src = img_path;
const context = canvas.getContext("2d");
const img = await loadImage(img_path);
canvas.width = img.width;
canvas.height = img.height;
context.drawImage(img, 0, 0);