Skip to content

Instantly share code, notes, and snippets.

View DianaNites's full-sized avatar

Diana DianaNites

View GitHub Profile
@DianaNites
DianaNites / keybase.md
Created August 6, 2024 16:32
keybase.md

Keybase proof

I hereby claim:

  • I am DianaNites on github.
  • I am diananites (https://keybase.io/diananites) on keybase.
  • I have a public key whose fingerprint is BF05 82BE DF79 A673 283F DC3D FDAC 733A CFB8 3838

To claim this, I am signing this object:

@DianaNites
DianaNites / riscv.md
Created March 2, 2023 12:13 — forked from cb372/riscv.md
Writing an OS in Rust to run on RISC-V

(This is a translation of the original article in Japanese by moratorium08.)

(UPDATE (22/3/2019): Added some corrections provided by the original author.)

Writing your own OS to run on a handmade CPU is a pretty ambitious project, but I've managed to get it working pretty well so I'm going to write some notes about how I did it.

@DianaNites
DianaNites / fix_steam_screensaver.c
Created January 11, 2023 20:53 — forked from InfoTeddy/fix_steam_screensaver.c
Linux Steam client screensaver issue workaround LD_PRELOAD library, while letting games disable screensaver
/* SPDX-License-Identifier: MIT */
/*
* On Linux, Steam periodically calls SDL_DisableScreenSaver() so your
* screensaver doesn't work with the Steam client open even if you aren't
* playing a game, as described in
* https://github.com/ValveSoftware/steam-for-linux/issues/5607 .
*
* To fix this, LD_PRELOAD a library that replaces SDL_DisableScreenSaver()
* with a no-op if the executable calling it is Steam, but otherwise let it
@DianaNites
DianaNites / valve-index-linux.md
Created March 7, 2022 22:23 — forked from WebFreak001/valve-index-linux.md
Getting my Valve Index to run flawlessly on ArchLinux with i3wm

Getting my Valve Index to run flawlessly on ArchLinux with i3wm

I've bought the Valve Index VR headset and wanted to play on Linux. I had done a lot of tinkering with my Linux Machine up to this point so quite a few things on the headset initially had issues working alright.

I have listed all of the problems I encountered on ArchLinux with Valve Index and Steam VR in this post and how I managed to solve nearly all of them.

When I first plugged in my headset, turned on the controllers and started

//add each line as a muted phrase to remove suggested tweets and accounts from your timeline (also use latest tweets instead of home)
RankedOrganicTweet
ActivityTweet
suggest_ranked_organic_tweet
suggest_sc_tweet
suggest_ranked_timeline_tweet
suggest_grouped_tweet_hashtag
suggest_pyle_tweet
suggest_recycled_tweet_inline
suggest_activity_tweet
@DianaNites
DianaNites / twittermute.txt
Created July 2, 2021 17:03 — forked from IanColdwater/twittermute.txt
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@DianaNites
DianaNites / wavfile.py
Created February 11, 2019 03:43 — forked from josephernest/wavfile.py
wavfile.py (enhanced)
# wavfile.py (Enhanced)
# Date: 20180430_2335 Joseph Basquin
#
# URL: https://gist.github.com/josephernest/3f22c5ed5dabf1815f16efa8fa53d476
# Source: scipy/io/wavfile.py
#
# Added:
# * read: also returns bitrate, cue markers + cue marker labels (sorted), loops, pitch
# See https://web.archive.org/web/20141226210234/http://www.sonicspot.com/guide/wavefiles.html#labl
# * read: 24 bit & 32 bit IEEE files support (inspired from wavio_weckesser.py from Warren Weckesser)
@DianaNites
DianaNites / wavecuepoint.c
Created March 26, 2017 15:16 — forked from jimmcgowan/wavecuepoint.c
This code reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line) and creates a new .wav file with embedded cue points for each location. The code is standard, portable C.
//
// wavecuepoint.c
// Created by Jim McGowan on 29/11/12.
// jim@bleepsandpops.com
// jim@malkinware.com
//
// This function reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line)
// and creates a new .wav file with embedded cue points for each location. The code is standard, portable C.
//
// For a full description see http://bleepsandpops.com/post/37792760450/adding-cue-points-to-wav-files-in-c