Skip to content

Instantly share code, notes, and snippets.

@Alecton4
Alecton4 / icons.all.ts
Created September 28, 2023 10:22
List of all Elastic UI Icons with `appendIconComponentCache`
// NOTE: This file exists because of a known issue with EUI.
import { ICON_TYPES } from "@elastic/eui";
import { appendIconComponentCache } from "@elastic/eui/es/components/icon/icon";
import { icon as accessibility } from "@elastic/eui/es/components/icon/assets/accessibility";
import { icon as addDataApp } from "@elastic/eui/es/components/icon/assets/app_add_data";
import { icon as advancedSettingsApp } from "@elastic/eui/es/components/icon/assets/app_advanced_settings";
import { icon as agentApp } from "@elastic/eui/es/components/icon/assets/app_fleet";
import { icon as aggregate } from "@elastic/eui/es/components/icon/assets/aggregate";
import { icon as analyzeEvent } from "@elastic/eui/es/components/icon/assets/analyzeEvent";
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active April 27, 2024 15:29
set -e, -u, -o, -x pipefail explanation
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<title>Calculadora</title>
<script src="calculadora.js"></script>
</head>
<body bgcolor="beige">
<h1>Calculadora 1.0</h1>
<input type="text" id="txtValor1">
@craiglabenz
craiglabenz / chat_message_render_box.dart
Last active April 27, 2024 15:27
Demonstrates a custom RenderObject that draws chat messages like WhatsApp, where the `sentAt` timestamp is tucked into the last line if it fits
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
@NDHOMOU
NDHOMOU / hello.c
Last active April 27, 2024 15:22
mon hello world
int main()
{
printf("Hello world");
return 0;
}
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 15:22
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@gtx28
gtx28 / pve8arm-fresh.txt
Last active April 27, 2024 15:18
PVE8-ARM fresh install
***Pi-Mox8 setup on raspberry pi 4b (cm4 you will need to add the appropriate steps for your hw setup)
***Raspberry PI OS setup
***Install raspbian x64 lite on raspberry pi
pull the latest copy of Raspberry Pi Imager, from here https://www.raspberrypi.com/software/ and Raspberry PI OS x64 lite based on debian 11 bullseye from here: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit
open imager, click choose os, scroll to the bottom and select custom. open the image "2023-05-03-raspios-bullseye-arm64-lite.img.xz"
<object
type="application/x-java-applet"
code="org.jruby.JRubyApplet"
codebase="."
style="margin: 0; padding: 0;"
width="600" height="500">
<param name="archive" value="gravity.rb,ruby-processing/app.rb,ruby-processing/exporters/applet_exporter.rb,ruby-processing/exporters/application_exporter.rb,ruby-processing/exporters/base_exporter.rb,ruby-processing/exporters/creator.rb,ruby-processing/helpers/numeric.rb,ruby-processing/helpers/string.rb,ruby-processing/runner.rb,ruby-processing/runners/base.rb,ruby-processing/runners/live.rb,ruby-processing/runners/run.rb,ruby-processing/runners/watch.rb,ruby-processing.rb,core/core.jar,core/jruby-complete.jar" />
<param name="jruby.eval" value="ARGV[0] = 'gravity.rb'; require 'ruby-processing/runners/run.rb'" />
<param name="image" value="images/ruby.jpg" />
@jedi4ever
jedi4ever / gist:903751
Created April 5, 2011 14:51
Tuning stuff for Ubuntu hosts
# /etc/security/limits.conf
* soft nofile 999999
* hard nofile 999999
root soft nofile 999999
root hard nofile 999999
===========================================================
# /etc/sysctl.conf
# sysctl for maximum tuning
@noghartt
noghartt / cc.md
Last active April 27, 2024 15:13
Resources to learn more about Computer Science and related stuffs