Skip to content

Instantly share code, notes, and snippets.

@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active May 21, 2024 15:59
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@fragmuffin
fragmuffin / .gitignore
Last active May 21, 2024 15:59
python unittest skip by label
__pycache__
@RubenKelevra
RubenKelevra / fast_firefox.md
Last active May 21, 2024 15:56
Make Firefox fast again
@financial-python
financial-python / ema_crossover.py
Last active May 21, 2024 15:54
How to code an EMA crossover in Python
#import the necessary packages
import yfinance as yf
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
#download the historical stock data
aapl_df = yf.download("AAPL", start="2018-03-24", end="2023-03-24")
@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:
///