Skip to content

Instantly share code, notes, and snippets.

@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active May 20, 2024 01:18
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@macrat
macrat / README.md
Last active May 20, 2024 01:15
ChatGPT on Vim

ChatGPT on Vim

This is just a experimental code. Not for practical use.

More useful version is on macrat/askgpt.vim.

  1. Place autoload-chatgpt.vim to ~/.vim/autoload/chatgpt.vim.

  2. Write this to your vimrc:

@leesh3288
leesh3288 / vm2_3.9.19_sandbox_escape_1.md
Last active May 20, 2024 01:14
Sandbox Escape in vm2@3.9.19 via `Promise[@@species]`

Sandbox Escape in vm2@3.9.19 via Promise[@@species]

Summary

In vm2 for versions up to 3.9.19, Promise handler sanitization can be bypassed with @@species accessor property allowing attackers to escape the sandbox and run arbitrary code.

Proof of Concept

@KarlRamstedt
KarlRamstedt / FirstPersonCameraRotation.cs
Created January 8, 2020 10:17
A simple First Person Camera rotation script for Unity.
using UnityEngine;
/// <summary>
/// A simple FPP (First Person Perspective) camera rotation script.
/// Like those found in most FPS (First Person Shooter) games.
/// </summary>
public class FirstPersonCameraRotation : MonoBehaviour {
public float Sensitivity {
get { return sensitivity; }
@jjuanrivvera99
jjuanrivvera99 / mssql-docker-compose.yml
Last active May 20, 2024 01:12
SQL Server with Docker Compose
version: '3.3'
services:
mssql:
container_name: sql-server
image: mcr.microsoft.com/mssql/server:2017-latest
#image: mcr.microsoft.com/mssql/server:2017-CU11-ubuntu
restart: always
environment:
ACCEPT_EULA: "Y"
@ymuichiro
ymuichiro / SIP-1.md
Last active May 20, 2024 01:06
SIP-1.md

Symbol Improvement Proposals (SIPs)

The goal of the Symbol Improvement Proposals (SIP) project is to standardize Symbol itself and its associated practices while providing high-quality documentation. This repository is used to track past and ongoing improvement proposals (SIPs) for Symbol. SIP-1 outlines how SIPs are published.

On the status page, SIPs are tracked and listed in the following categories:

  • Core SIPs: Improvements to Symbol's consensus protocol.
  • Networking SIPs: Specifications for Symbol's peer-to-peer network layer.
  • Interface SIPs: Standardization of Symbol interfaces, determining how users and applications interact with the blockchain.
  • Application SIPs: Standards for the application layer, specifying how applications operating on Symbol interact with each other.
@safijari
safijari / readme.org
Last active May 20, 2024 01:06
How to use Orange Pi 5B for 4k 120hz (non HDR) streaming with Moonlight

IMPORTANT: DON’T USE THIS GUIDE AS IS. GNOME HAS A WEIRD VSYNC ISSUES. Instead you can use the official Debian image and make sure all the updated drivers are installed and the rest should remain the same.

Preamble

This guide is made using the Orange Pi 5B 4GB+32GB. The device is capable of handling a 4k 120hz stream but you should know that the decode time for 4k stream hovers around 8ms and can spike up to 15ms during a benchmark. I can’t feel any added latency from it and I don’t have any dropped frames. The decode time goes down to 4ms for 1440p. It’s certainly not the blazing fast sub ms decode latency we get on the Steam Deck or mini PCs. I bought the device for $99 and for that price I think this performance is fantastic, but your mileage/expecations may vary.

How to get this result (or rather how I got it)

  1. Install the official Gnome Ubuntu Jammy image using Balena Etcher onto a 16+ GB microSD card
@denis-ismailaj
denis-ismailaj / SwipeToDelete.kt
Last active May 20, 2024 01:01
SwipeToDelete is a boilerplate-free simple implementation of SwipeToDismiss for bidirectional delete gestures in Jetpack Compose.
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Delete
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Scrollbar Windows 95 Style</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;