Skip to content

Instantly share code, notes, and snippets.

View dorukayhan's full-sized avatar
🥺
👉👈

Doruk Ayhan dorukayhan

🥺
👉👈
View GitHub Profile
@dorukayhan
dorukayhan / org.eclipse.jdt.core.prefs
Created November 13, 2017 20:38
Hyper-pedantic error/warning settings for Eclipse Oxygen (probably works on Neon too). Create a folder named ".settings" in the project folder and place this there
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=
org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
@dorukayhan
dorukayhan / ddddd.xml
Last active September 26, 2019 05:22
Formatter settings for Eclipse projects of mine, and an argument as to why you should probably use JSON or even some application/x-www-form-urlencoded variation instead of XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="17">
<profile kind="CodeFormatterProfile" name="Doruk's Dumb paDDing Drooles" version="17">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_logical_operator" value="insert"/>
@dorukayhan
dorukayhan / !touchscreen.md
Last active January 7, 2021 01:14
Tracker for a quest to remove all traces of touchscreen from my top osu! plays

I started osu! on a laptop with a touchscreen in 2016 and almost immediately realized it's much easier to aim with the TS than the mouse. So what did I do? I used the TS, of course, occasionally picking some pp with a toy HR scythe.

Then I forgot about the game at some point.

Then I came back in late 2019 to a Bancho that detects touchscreen plays and reduces their pp. I can see why - touchscreen makes aiming noticeably easier (unlike tablet), so aim strain should go down overall and jumps should be much less important when calculating pp when a TS is involved. Now lacking a TS, I switched to mouse+keyboard and outperformed my pre-nerf TS plays in short order.

But 11 5 TS plays remain among my top 100 plays.

That's 11 5 too many.

@dorukayhan
dorukayhan / !obs.old.md
Last active July 22, 2022 20:00
OBS settings for streaming to Twitch on an HP Pavilion 15-cs3019nr (before it crippled itself)

Pavilions are shitslabs that are in no way fit for streaming, gaming, video editing, any kind of design work, or anything else that causes sustained high CPU usage. This should be a good starting point on any overpriced potato - if you're set on getting yourself one, at least get one that isn't outright defective.


Every main list item is a tab in the Settings window.

This is with StreamElements's SE.Live plugin. Vanilla OBS should be (nearly?) identical and Streamlabs Desktop should be similar.

  • General settings are personal preference and don't matter
  • Stream
@dorukayhan
dorukayhan / apps.md
Last active April 27, 2024 19:59
List of apps that I use a lot and ways to get their functionality on Linux so I can bail out of Windows as smoothly as possible

TL;DR: Everything other than Honkai Impact 3rd works perfectly fine or has perfectly adequate alternatives, and I decided to just stay on Windows until HI3 starts playing nice with Wine (or even gets a proper Linux client!) or I stop playing it.


  • Browser
    • Currently using Firefox
    • Will stick with FF
      • Truly indie alternatives: Ladybird, Basilisk, anything involving Servo
  • PIM
  • Currently using Thunderbird
@dorukayhan
dorukayhan / games.md
Last active May 16, 2024 21:20
Gaming is *the* point of concern in my master🅱lan to escape Win🅱lows, so here's a tracker for every game I could possibly want to play on my PC and their states of Linux compatibility
#define SD Steam Deck
#include <rfc2119>

Italic games are those that I have yet to actually play. I MUST have a way to continue playing bold games.

Game Runs on Linux? Details/workaround/etc.
Any Flash etc. game SHOULD run Flashpoint on Wine. A few plugins (like idk Silverlight?) only support Windows
Any Minetest game
Any Roblox game Oh they actually made the new anti-cheat work on Wine
@dorukayhan
dorukayhan / pim.md
Last active July 2, 2023 22:48
Steps to learn how to actually use a combination email/calendar/address book/to-do list manager
 #define TB Thunderbird
  • Step 1: Make Gmail labels play nice with IMAP done
    • Observation: they can be made to play very nice
      • Gmail relies entirely on labels for mailbox organization and tries to map them to IMAP folders, instead of just doing both folders and labels as prescribed in IMAP, so using labels as intended breaks PIMs and results in duplicated emails
        • Solution: hide problematic built-in labels (Important, Starred, All Mail) from IMAP, make sure every email has only one label
          • Moving mail around in the PIM mostly works
          • Gmail's idea of archiving an email is simply removing the Inbox label, not touching any other labels - useful for when something breaks and a bunch of mail ends up in both Inbox and a label
      • some label names (e.g. Drafts, Archive) are reserved, and creating a reserved-name IMAP folder makes Gmail prefix its name with [Imap]/
  • Solution: don't care - Gmail is smart enough to hide the prefix
@dorukayhan
dorukayhan / !obs.md
Last active April 30, 2023 23:15
OBS settings for streaming to Twitch on a powerful laptop

This config is specifically for a Lenovo Legion 5 Gen 6 that packs a Ryzen 7 5800H and an RTX "3060". Desktop hardware will get you much better mileage for obvious reasons.


Every main list item is a tab in the Settings window.

This is with StreamElements's SE.Live plugin. Vanilla OBS should be (nearly?) identical and Streamlabs Desktop should be similar.

  • General settings are personal preference and don't matter
  • However you should use a light theme because 1) I said so and 2) you can then threaten to violently flashbang chat by dragging the OBS window into the stream
@dorukayhan
dorukayhan / fb2k-now-playing.js
Created August 28, 2023 03:16
JScript Panel 3 thingy for getting foobar2000 to write the now-playing song to a temp file
// ==PREPROCESSOR==
// @name Now Playing
// @author marc2k3
// ==/PREPROCESSOR==
var tfo = fb.TitleFormat("Now playing: [%artist% - ]%title%");
var path = "C:\\file\\here";
/////////////////////////////////////////////////////////////////////////////////////////////////////////