Skip to content

Instantly share code, notes, and snippets.

@katagaki
katagaki / SetupQEMU.sh
Last active May 21, 2024 15:44
Script to install QEMU with support for running iOS.
#!/bin/sh
echo You will need to install pip for Python3 and Homebrew for macOS before continuing.
echo Much of this script is provided by TrungNguyen1909.
echo Installing dependencies
pip3 install pyasn1
brew install libtasn1 meson ninja pixman jtool2 jq coreutils gnutls libgcrypt pkg-config wget glib
git clone https://github.com/lzfse/lzfse
cd lzfse
@pablotolentino
pablotolentino / Visual Studio 2022 Product Key
Created November 20, 2021 20:41
Visual Studio 2022 Enterprise Product key
Visual Studio 2022
Enterprise :
VHF9H-NXBBB-638P6-6JHCY-88JWH
Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
@sgsfak
sgsfak / rref.py
Created October 11, 2017 07:17
Compute the Reduced Row Echelon Form (RREF) in Python
import numpy as np
def rref(B, tol=1e-8, debug=False):
A = B.copy()
rows, cols = A.shape
r = 0
pivots_pos = []
row_exchanges = np.arange(rows)
for c in range(cols):
if debug: print "Now at row", r, "and col", c, "with matrix:"; print A
@bkaradzic
bkaradzic / orthodoxc++.md
Last active May 21, 2024 15:40
Orthodox C++

Orthodox C++

What is Orthodox C++?

Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.

Why not Modern C++?

@marcelloinfoweb
marcelloinfoweb / install-vscode.sh
Created July 24, 2020 13:26
Install vscode on Clear Linux
#!/bin/bash
# https://openwebcraft.com/notes/clearlinux-desktop-setup/
echo "--- start"
wget https://vscode-update.azurewebsites.net/latest/linux-x64/stable -O code_latest_amd64.tar.gz
SRC_FILE=code_latest_amd64.tar.gz
DEST=/opt/code
@PurpleVibe32
PurpleVibe32 / vmwk17key.txt
Last active May 21, 2024 15:36
Free VMware Workstation Pro 17 full license keys
Install VMWare Workstation PRO 17 (Read it right. PRO!)
Also, these keys might also work with VMWare Fusion 13 PRO. Just tested it.
Sub to me on youtube pls - PurpleVibe32
if you want more keys - call my bot on telegram. @purector_bot (THE BOT WONT REPLY ANYMORE) - Or: https://cdn.discordapp.com/attachments/1040615179894935645/1074016373228978277/keys.zip - the password in the zip is 102me.
---
This gist can get off at any time.
PLEASE, DONT COPY THIS. IF YOU FORK IT, DONT EDIT IT.
*If you have a problem comment and people will try to help you!
*No virus
@miranda-zhang
miranda-zhang / linux.md
Last active May 21, 2024 15:35
Linux Command Cheat Sheet, Ubuntu, CentOS

Linux Command Cheatsheet

Linux Keyboard shortcuts

open terminal: Ctrl+Alt+T

Ctrl + C is used to kill a process with signal SIGINT , in other words it is a polite kill .

Ctrl + Z is used to suspend a process by sending it the signal SIGTSTP , which is like a sleep signal, that can be undone and the process can be resumed again.

@PatrickHeneise
PatrickHeneise / gcp-function-storage-file-stream.js
Created July 29, 2022 16:57
Google Cloud Function to stream a file from multipart/form-data to Google Cloud Storage
/**
* Copyright (c) 2022 Zentered , patrick@zentered.co
* This code is licensed under the terms of the MIT license
*
* This code demonstrates how to create a Google Cloud Function to receive
* a file sent via `multipart/form-data`. The file is then streamed directly
* to Google Cloud Storage, without using a temporary file.
*
* The function returns any `fields` sent as FormData
*
@tilda
tilda / priconne_and_vpns.md
Last active May 21, 2024 15:33
defeating dmm's skill issue

How to play PriConne on PC without hassling with VPNs constantly

Sidenote: you will still need one, but by the end of the guide you should only need to deal with this process once per year, assuming nothing changes.

So, if you're like me you used ProtonVPN as a way to get around the most recent DMM block beginning in August of 2023.

Of course, you can't always have your cake & eat it too. So, what Proton did, some months later: no more server choices even with their already limited country selection for free users, and no more split tunneling either.

That's what most people think at least. Me, personally, I found a solution.

Breaking it down

@okld
okld / multipage_settings_app.py
Last active May 21, 2024 15:33
Streamlit - Settings page with session state
import streamlit as st
from persist import persist, load_widget_state
def main():
if "page" not in st.session_state:
# Initialize session state.
st.session_state.update({
# Default page.
"page": "home",