Skip to content

Instantly share code, notes, and snippets.

@fatbobman
fatbobman / keyboardAvoiding.swift
Created May 13, 2024 03:49
keyboardAvoiding for List
// by klaytonb
// https://forums.developer.apple.com/forums/thread/699111?answerId=740437022#740437022
import Combine
import SwiftUI
public extension Publishers {
static var keyboardHeight: AnyPublisher<CGFloat, Never> {
let willShow = NotificationCenter.default.publisher(for: UIApplication.keyboardWillShowNotification)
.map { $0.keyboardHeight }
let willHide = NotificationCenter.default.publisher(for: UIApplication.keyboardWillHideNotification)
@micr0-dev
micr0-dev / README.md
Last active May 21, 2024 15:49 — forked from Gordin/README.md
Script that remaps Keys in Cyberpunk 2077 from qwertz to colemak. That's it :>
  1. Have python installed
  2. Download remap.py (from below) and put it next to the config file inputUserMappings.xml (Should be in ...\Cyberpunk 2077\r6\config)
  3. Open a terminal, cd into the directory with the script, and run python remap.py
  4. It should create a new file called inputUserMappings2.xml
  5. Now rename inputUserMappings.xml to something else, and rename inputUserMappings2.xml to inputUserMappings.xml
@WalkingCat
WalkingCat / UnpEax.cs
Last active May 21, 2024 15:47
UnpEax, for extracting (but not decrypting) EAppX/EAppXBundle/EMsiX/EMsiXBundle files
using System;
using System.Collections.Generic;
using System.IO;
using System.IO.Compression;
using System.IO.MemoryMappedFiles;
using System.Xml;
namespace UnpEax
{
class Program
@shunsock
shunsock / zenn.css
Last active May 21, 2024 15:47
Dark Mode for Zenn.dev: Add This to Your Stylus Settings
@-moz-document domain("zenn.dev") {
:root {
color-scheme: light dark;
--c-blue-100: light-dark(#f0f7ff, #1b1e2e);
--c-blue-200: light-dark(#ecf5ff, #1f2233);
--c-blue-300: light-dark(#e0efff, #242741);
--c-blue-400: light-dark(#bfdcff, #2b3558);
--c-blue-500: light-dark(#3ea8ff, #3ea8ff);
--c-blue-600: light-dark(#0f83fd, #4d6eb4);
--c-blue-700: light-dark(#0868ce, #6079b5);
@schacon
schacon / better-git-branch.sh
Created January 13, 2024 18:41
Better Git Branch output
#!/bin/bash
# Colors
RED='\033[0;31m'
GREEN='\033[0;32m'
NO_COLOR='\033[0m'
BLUE='\033[0;34m'
YELLOW='\033[0;33m'
NO_COLOR='\033[0m'
@groue
groue / ObservableState.swift
Last active May 21, 2024 15:46
WithBindable
import SwiftUI
/// Supplies an observable object to a view’s hierarchy.
///
/// The purpose of `WithBindable` is to make it possible to instantiate
/// observable objects from environment values, while keeping the object
/// alive as long as the view is rendered.
///
/// For example:
///
----------------------------------------------------------------------
// C:\xampp\php\php.ini
----------------------------------------------------------------------
[mail function]
smtp_port=587
sendmail_from = your-gmail@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
----------------------------------------------------------------------
// C:\xampp\sendmail\sendmail.ini
@yougg
yougg / proxy.md
Last active May 21, 2024 15:45
complete ways to set http/socks/ssh proxy environment variables

set http or socks proxy environment variables

# set http proxy
export http_proxy=http://PROXYHOST:PROXYPORT

# set http proxy with user and password
export http_proxy=http://USERNAME:PASSWORD@PROXYHOST:PROXYPORT

# set http proxy with user and password (with special characters)
@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