Skip to content

Instantly share code, notes, and snippets.

View SalemHarrache's full-sized avatar
💭
😴

Salem Harrache SalemHarrache

💭
😴
View GitHub Profile
@Gezine
Gezine / PS5_CEC_example.sh
Last active October 3, 2025 11:02
PS5 HDMI libcec commands
# Note
# I am using Raspberry pi 4 to send CEC commands
# /dev/cec1 is pi's second HDMI port
# '4' is PS5 address that TV assigned, change if you need
# Turn on PS5 (You need to enable "Power off Link" at PS5 HDMI settings to turn on from rest mode)
cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=power-on-function
# Turn on PS5 from rest mode (When you didn't enable "Power off Link" at PS5 HDMI settings)
cec-ctl -d /dev/cec1 --to 4 --user-control-pressed ui-cmd=power-toggle-function
@aschober
aschober / ssh-on-android-linux-terminal.md
Created March 19, 2025 04:41
Setup SSH and Tailscale on Android 15 Linux Terminal App

Setup SSH and Tailscale on Linux Terminal App

This guide outlines the steps to set up an SSH server and Tailscale on a fresh Debian installation inside the Android Linux Terminal App. After completing these steps, you'll be able to securely SSH into the Linux environment running on your Android device from any remote machine over the internet using Tailscale.

  1. Update package lists and upgrade installed packages to the latest versions:

    sudo apt update && sudo apt upgrade -y
    
@john-tornblom
john-tornblom / fetchpkg.py
Last active July 18, 2024 05:45
Fetch Sony Playstation 4 or 5 package updates referenced by a JSON-formatted manifest at the given URL
#!/usr/bin/env python3
# encoding: utf-8
# Copyright (C) 2024 John Törnblom
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
@Tombert
Tombert / configuration.nix
Created June 8, 2024 03:06
My Nixos gamescope setup.
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page, on
# https://search.nixos.org/options and in the NixOS manual (`nixos-help`).
{ config, lib, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@jwhb
jwhb / pull-split-apk.sh
Created May 13, 2024 17:07
Android ADB pull split apk
#!/bin/sh
adb shell pm path com.example.myapp | sed 's/^package://g' | xargs -L1 adb pull
@pythoninthegrass
pythoninthegrass / game.sh
Last active March 29, 2025 23:52
sunshine, gamescope + steam
#!/usr/bin/env bash
# TODO: test wayland gamescope session
export DISPLAY=:0 # vnc
export WAYLAND_DISPLAY=:2 # xwayland
export DXVK_HDR=1
export ENABLE_GAMESCOPE_WSI=1
# Check existing X server
start_x() {
@ryuheechul
ryuheechul / openwrt-efi-on-proxmox.md
Last active November 11, 2025 07:40
How to "Install" an OpenWRT VM in Proxmox with UEFI

Existing references I looked at before I went on trial and error until eventually I managed to make it work:

Note

Although links above were good references to look at so I didn't have to start from scratch, following none of them actually worked for me. Hence, I'm leaving my own note after figuring things out.

My situation:

@SavageCore
SavageCore / 1-readme.md
Last active November 18, 2025 05:38 — forked from cdleveille/Install⁄Update Xone
Install or update xone driver for Steam Deck (desktop shortcut and bash script)
@vondraussen
vondraussen / ssh_https_tunnel.md
Last active April 19, 2025 09:21
SSH through HTTPS tunnel via Openssl and Traefik

How to setup ssh through https tunnel

... via OpenSSL and Traefik

A HTTPS tunnel for SSH (Secure Shell) is a useful tool for accessing a remote server in a secure manner when the connection is limited or restricted by a firewall or network security measures. It provides a secure way to bypass these restrictions and access the remote server securely over the internet. The HTTPS protocol, which is used to secure web traffic, is utilized to create a secure connection to the remote server. The data transmitted over this connection is

@Al-Azif
Al-Azif / pi-exploit-host.conf
Last active November 28, 2025 12:44
Config file for exploit host on Pi-hole
# 0. Use `crtl+h` and replace `{{HOST}}` with the IP address of a server you
# control and want to direct the traffic to. Or Just use `0.0.0.0` to block it.
#
# 1. Log into your Pi-hole device and move this file into the `/etc/dnsmasq.d/`
# directory. Feel free to rename it.
#
# 2. Run the command `pihole restartdns`
# Redirects Nintendo Landing Page Domains
address=/ctest.cdn.nintendo.net/{{HOST}}