Skip to content

Instantly share code, notes, and snippets.

View gauravssnl's full-sized avatar
😸
use code::latest ;

GAURAV gauravssnl

😸
use code::latest ;
View GitHub Profile
@vvb2060
vvb2060 / am_proc_start.cpp
Created July 19, 2022 17:12
monitor app process start
#include <unistd.h>
#include <string>
#include <cinttypes>
#include <android/log.h>
#include <sys/system_properties.h>
using namespace std;
extern "C" {
@cronokirby
cronokirby / eprintdl.py
Created June 25, 2022 21:39
Script to download papers from eprint to pdf and markdown
from bs4 import BeautifulSoup
from dataclasses import dataclass
import os
from typing import List
import re
import requests
import sys
HEADERS = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36"
@zander21510
zander21510 / fix-magisk-stock-backup-does-not-exist.md
Last active January 16, 2024 14:03 — forked from pexcn/fix-magisk-stock-backup-does-not-exist.md
Added additional instructions and corrected/explained filename issues.

How To Fix "Stock Backup Does Not Exist" message in Magisk when using "Restore Images" to flash OTA

DISCLAIMER: I didn't come up with these steps, nor do I provide any support for these steps. I just wanted to add some additional information that helped me. Not responsible if you brick your phone/cause thermonuclear war/etc. Use at your own risk/PLEASE google/research if you are unsure of what you're doing.

STEP 1:

Connect your phone to your computer via ADB. If you don't know how to do this, please search before following these steps

STEP 2:

put stock boot.img into /sdcard/boot.img. MAKE SURE the name of the file is "boot.img", otherwise you will need to alter the following commands to use the name of the file. MAKE SURE your stock boot.img IS A VALID BOOT FILE, if it is not, Magisk will still restore the image, but the OTA will not work and your phone will not work upon reboot.

I've recently joined Amazon Dublin from India and got opportunities to interview with Meta London, Zalando Berlin & some other companies. I extensively researched about companies hiring internationally which support visa & relocation for Tech roles. So sharing list of companies:

Do consider to STAR, if it helped you.

London

@julianxhokaxhiu
julianxhokaxhiu / README.md
Last active November 4, 2023 11:05
Windows 11 22H2 - Create local account on first boot and other useful tricks

Create a local account on Windows 11 22H2 clean install ( and first boot ):

NEW METHOD

Feel free to try this method if it works, if not switch back to the old one below.

  1. Reach the account creation and choose Personal Account
  2. Use as email test@test.com
  3. Use as password test
  4. Let Windows 11 fail the login and click Next
import android.app.AppComponentFactory;
import android.content.pm.ApplicationInfo;
import android.util.Log;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.Channels;
import java.util.ArrayList;
import java.util.List;
import java.util.zip.ZipFile;
@lupyuen
lupyuen / tauri-yew-pinephone.md
Last active August 19, 2022 07:17
Rust GUI App on PinePhone with Tauri + Yew

How to create a Bootable Monterey ISO

set -e
set -u

# Create an empty
hdiutil create -o /tmp/empty -size 8400m -volname "Monterey" -layout SPUD -fs HFS+J

# Rename to .img since this isn't a compressed disk image
@paulshen
paulshen / tictactoe.rs
Created August 13, 2021 18:30
egui tictactoe
use super::hyperlink::Hyperlink;
use eframe::{egui, epi};
use egui::{pos2, vec2, Color32, Pos2, Rect, Stroke, Widget};
use rand::seq::SliceRandom;
#[derive(Copy, Clone, Debug, PartialEq)]
enum Player {
User,
Computer,
}