Skip to content

Instantly share code, notes, and snippets.

View skyecodes's full-sized avatar

skyecodes skyecodes

  • France
  • 08:37 (UTC +02:00)
View GitHub Profile
@skyecodes
skyecodes / hide_tweet_views.md
Last active February 1, 2023 16:57
How to hide Twitter view count on web browser

How to hide Twitter view count on web browser

  • Requires uBlock Origin browser extension
  • In uBlock Origin settings, "My Filters" tab, paste this code at the end of the file:
! Hide tweet views
twitter.com##.css-1dbjc4n.r-1ta3fxp.r-18u37iz.r-1wtj0ep.r-1s2bzr4.r-1mdbhws > div:nth-child(4)
twitter.com##.css-1dbjc4n.r-1d09ksm.r-1471scf.r-18u37iz.r-1wbh5a2 > :not(:nth-child(1))

! Hide "Twitter Blue" menu
import java.io.IOException;
import java.util.List;
import java.util.function.IntBinaryOperator;
public class Day24 {
public static void main(String[] args) throws IOException {
var input = Util.readInput("Day24").stream().map(Instruction::parse).toList();
System.out.println("Part 1: " + part1(input));
}
.container-3ayLPN .option-96V44q.selected-rZcOL-, /* Search (hovered) */
.container-3gCOGc .friendsTable-133bsv .friendTableAddWrapper-nHHZtK .friendTableSuggestionsHeader-2zSnpD, /* Friends table header */
.container-3gCOGc .friendsTable-133bsv .friendsRow-2yicud:hover, /* Friends table (hover) */
.radioGroup-1GBvlr .cardPrimaryEditable-3KtE4g:hover .checkbox-1ix_J3::before, /* Settings > Privacy & Safety cards checkbox (hover) */
.contentColumn-2hrIYH .notDetected-33MY4s, /* Settings > Game Activity */
.standardSidebarView-3F1I7i #bd-customcss-attach-controls button:hover, .bd-detached-css-editor #bd-customcss-attach-controls button:hover, /* Settings > Custom CSS buttons (hover) */
.popoutBottom-1YbShG .menu-Sp6bN1, /* Server menu popout */
.theme-dark .select-2TCrqx .Select-control .Select-placeholder, /* Notification overrides */
.popout-3sVMXz .container-3cGP6G /* Message options (edit, delete..) */
{
@skyecodes
skyecodes / build.gradle
Created December 9, 2018 11:20
Fabric setup error
plugins {
id 'java'
id 'eclipse'
id 'idea'
id 'fabric-loom' version '0.0.14-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
@skyecodes
skyecodes / console
Created December 9, 2018 11:16
Fabric setup error
franck@franck-laptop:~$ cd IdeaProjects/minecraft/mods/fabric-example-mod/
franck@franck-laptop:~/IdeaProjects/minecraft/mods/fabric-example-mod$ java -version
openjdk version "1.8.0_191"
OpenJDK Runtime Environment (build 1.8.0_191-8u191-b12-0ubuntu0.18.04.1-b12)
OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)
franck@franck-laptop:~/IdeaProjects/minecraft/mods/fabric-example-mod$ ./gradlew genSources idea
Starting a Gradle Daemon (subsequent builds will be faster)
> Configure project :
Fabric Loom: 0.0.14-SNAPSHOT Build(jenkins #10)
/*!
* Discord-Adapta-Nokto
* Copyright (C) 2018 Sefa Eyeoglu <contact@scrumplex.net> (https://scrumplex.net)
*
* 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,
div.guild-wrappers{background-color:#222d32}div.channels-Ie2l6A div.flexChild-faoVW3{background-color:#222d32}div.channels-Ie2l6A div.scroller-2FKFPG{background-color:#263238}div#friends div.flex-1xMQg5{background-color:#222d32}div#friends div.friends-table{background-color:#29353b}/*# sourceMappingURL=theme.css.map */
div.guild-wrappers{background-color:#222d32}div.channels-Ie2l6A div.flexChild-faoVW3{background-color:#222d32}div.channels-Ie2l6A div.scroller-2FKFPG{background-color:#263238}div#friends div.flex-1xMQg5{background-color:#222d32}div#friends div.friends-table{background-color:#29353b}/*# sourceMappingURL=theme.css.map */
@skyecodes
skyecodes / visualizer.sh
Created May 25, 2018 12:50
visualizer.sh
#!/bin/bash
#=======================================================================================
#
# Transforms cava music visualizer in a cool desktop decoration
#
# Author: Guido_Fe
#
# Dependencies (and credits):
# xdotool
# cava
@skyecodes
skyecodes / conkyrc
Created May 25, 2018 12:46
conkyrc
conky.config = {
alignment = 'top_right',
background = false,
border_width = 1,
color1 = '#00BCD4',
cpu_avg_samples = 2,
default_color = '#D1E7D1',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,