Skip to content

Instantly share code, notes, and snippets.

@agentgt
agentgt / eclipse-one-dark-like.xml
Last active May 5, 2024 12:18
One Dark Atom Theme for Eclipse for the Eclipse Color Theme plugin
<?xml version="1.0" encoding="utf-8"?>
<colorTheme id="9999" name="One Dark Like" modified="2015-09-01 19:55:49" author="Adam Gent" website="http://snaphop.com">
<searchResultIndication color="#E5C07B" />
<filteredSearchResultIndication color="#E5C07B" />
<occurrenceIndication color="#4B4E55" />
<writeOccurrenceIndication color="#4B4E55" />
<findScope color="#4B4E55" />
<deletionIndication color="#DF5F5F" />
<sourceHoverBackground color="#4B4E55" />
<singleLineComment color="#969896" italic="false" />
@JBlond
JBlond / bash-colors.md
Last active May 5, 2024 12:18 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@maxep
maxep / MyImageButton.java
Last active May 5, 2024 12:14
[Android] Add gray filter when disabling an ImageButton
import android.content.Context;
import android.graphics.Color;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.widget.ImageButton;
public class MyImageButton extends ImageButton{
public MyImageButton(Context context) {

Transparent Restaurant Backend

In this task, you're going to implement a REST API for a interacting with a menu of a restaurant. The menu is given to you as a JSON file which you will parse and perform operations on. The required features will be listed below.

Description

In this restaurant, honesty is extremely promoted. So extreme, that the restaurant declares that differing quality of ingredients are used in their meals. Like that's not enough, it also allows the customers to choose the ingredients of each meal in different qualities. Each ingredient has the following quality levels:

  • low: the cheapest
  • medium: moderate
@ageis
ageis / Generating stronger DH parameters for nginx
Last active May 5, 2024 12:11 — forked from plentz/nginx.conf
Generating stronger DH parameters for nginx's SSL
# run in the terminal, then set as ssl_dhparam in nginx.conf
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 4096
@yorickdowne
yorickdowne / nethermost.md
Last active May 5, 2024 12:11
Pruning Nethermind

Overview

Nethermind as of January 2024 takes about 1.1 TiB of space on a snap sync, and then grows by ~ 27 GiB/week.

When it starts to fill its disk, it can be online pruned (no downtime) to free up space again, to around the size of a fresh sync.

Prerequisites

  • This is not an archive node. Do not try to prune an archive node.
@DeflatedPickle
DeflatedPickle / MinecraftEnergyTypes.md
Last active May 5, 2024 12:10
A simple table for Minecraft energy types and a matrix for conversion rates.

Minecraft Energy Types


Energy Name Abbreviation Original Mod Version
Anima AM Anima-Mundi 1.11.2
Blutricity BE (NO) Redpower 1.6.4
Charge RP (NO)/Fz? Factorization 1.7.10
Crystal Flux CF Actually Additions 1.12
@alexander-hanel
alexander-hanel / bn-cheat.md
Last active May 5, 2024 12:10
Cheat Sheet for Binary Ninja
@taskylizard
taskylizard / fmhy.md
Last active May 5, 2024 12:08
/r/freemediaheckyeah, in one single file (view raw)
@wkrea
wkrea / textlive-full-beefless.md
Created September 2, 2020 13:30 — forked from shivams/textlive-full-beefless.md
`texlive-full` without the beef

TLDR;

On an Debian/Ubuntu-based system, to install texlive-full without docs and language packs, simply do this:

sudo apt install `sudo apt --assume-no install texlive-full | \
		awk '/The following additional packages will be installed/{f=1;next} /Suggested packages/{f=0} f' | \
		tr ' ' '\n' | grep -vP 'doc$' | grep -vP 'texlive-lang' | grep -vP 'latex-cjk' | tr '\n' ' '`

After this, if you wish to install the language packs, selectively install them. E.g.: