Skip to content

Instantly share code, notes, and snippets.

View rivenirvana's full-sized avatar
503

Arvin Verain rivenirvana

503
View GitHub Profile
@rivenirvana
rivenirvana / captureLiveWP.py
Created August 25, 2024 06:27 — forked from misterjupiter/captureLiveWP.py
Example: setting a Chromecast live wallpaper on linux for the Gnome desktop with Python3, Selenium and Chromedriver
# make sure you have Selenium installed: https://pypi.org/project/selenium/
# make sure you have the latest chromedriver installed: https://googlechromelabs.github.io/chrome-for-testing/
# save this file somewhere, change the paths as you need and make it autostart. enjoy.
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.chrome.service import Service
import os
import time
@rivenirvana
rivenirvana / better-git-branch.sh
Created August 3, 2024 09:21 — forked from schacon/better-git-branch.sh
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'
#!/usr/bin/env python3
"""
# NOTE, you must change the filename below for the rp++ output you want to process.
# This script does not take arguments in its current form. Sorry!
"""
import re
from pwn import p32, u32
@rivenirvana
rivenirvana / fonts.conf
Last active May 1, 2024 04:58 — forked from SohamG/fonts.conf
Fix emoji in Linux and get color emoji in Discord! Place this fontconfig file in ~/.config/fontconfig/fonts.conf
<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- REQUIRES Noto fonts (along with Noto Color Emoji)
run `fc-list | grep -iE "noto sans|noto serif|noto color emoji"` to confirm
-->
<!-- Change the string in the family tag to whatever font -->
<alias>
<family>sans-serif</family>
<prefer><family>Noto Sans</family></prefer>
@rivenirvana
rivenirvana / ath10k_README.md
Created March 13, 2024 12:50 — forked from jmfernandez/ath10k_README.md
Adding wireless / bluetooth co-existence to ath10k firmware

Although ath10k Linux kernel driver supports wireless / bluetooth co-existence on dual devices (wireless and bluetooth), firmware currently available at linux-firmware and https://github.com/kvalo/ath10k-firmware does not enable it, so wireless connectivity is interrupted when a paired bluetooth device, like a headphone, is in active use (for instance, listening to music).

These instructions are useful to download and generate a firmware usable by ath10k Linux driver, enabling the btcoex-param flag.

@rivenirvana
rivenirvana / download_assignments.js
Created September 13, 2020 05:41 — forked from etcferber/download_assignments.js
Download all teacher assignments from google classroom
/**
HOW TO USE
1. go to assignment submissions (classwork > click assignment)
2. open developer console ( F12 or right click > inspect element > console in top)
3. copy and paste this code, assignments will be downloaded in 5 second intervals
NOTE: CHANGE auth_user IF NECESSARY
if you are signed in to multiple google accounts, you need to select whichever you use for classroom
(ie freeuni account). If that account is the default one, leave at 0. Otherwise, sign in to gmail with that account
and the number will be displayed in url bar (https://mail.google.com/mail/u/$number), enter that
git clone https://github.com/medusalix/xow
cd xow
make BUILD=RELEASE
sudo make install
sudo systemctl enable xow
sudo systemctl start xow
reboot
@rivenirvana
rivenirvana / inceptionv3.py
Created August 5, 2020 06:28
inceptionv3.py
import matplotlib.pyplot as plt
import os, json
from glob import glob
import tensorflow.keras
import tensorflow as tf
from tensorflow.keras.applications import inception_v3, vgg16
from tensorflow.keras.preprocessing import image
from tensorflow.keras.models import Model
@rivenirvana
rivenirvana / TextureReplacementTutorial.md
Created July 30, 2020 10:06
General texture replacement instructions for PSP games played using the PPSSPP emulator (from https://github.com/rivenirvana/MonsterHunterPortable3rdHDRemake)

Changing the default textures of a PSP game with custom ones using the PPSSPP emulator

  1. Open the emulator and load a game you wish to replace its textures.
  2. Press the "Escape" key, enter the "Settings" menu, then go to "Tools" on the left panel.
  3. On the right panel, click on "Developer tools", and under the "Texture replacement" section click on "Create/Open textures.ini file...".

Using the textures.ini file

This is what you'll see when you open the file for the first time:

@rivenirvana
rivenirvana / README.md
Created July 30, 2020 10:04
Athena's ASS (Armor Set Search) Installation Instructions for Linux (via Wine)