Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 27, 2024 15:18
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
local SECS = 5;
local function Min(x, y) {
if (x < y)
return x;
return y;
}
local function Max(x, y) {
if (x > y)
return x;
@mxalbert1996
mxalbert1996 / Scrollbar.kt
Last active April 27, 2024 15:08
Modifiers to draw scrollbars in Jetpack Compose
/*
* MIT License
*
* Copyright (c) 2022 Albert Chang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@bwbaugh
bwbaugh / server-name-wordlist-mnemonic.txt
Last active April 27, 2024 15:08
Server name wordlist (mnemonic)
# Original blog post: <https://mnx.io/blog/a-proper-server-naming-scheme/>
# Original word list: <http://web.archive.org/web/20091003023412/http://tothink.com/mnemonic/wordlist.txt>
# Sample usage: `curl <gist> | tail --lines +4 | shuf | head --lines 1`
acrobat
africa
alaska
albert
albino
album
alcohol
@Raukze
Raukze / contact-sensor-left-open-notification.yaml
Last active April 27, 2024 15:06
Home Assistant Blueprint: Contact Sensor Left Open Notification
blueprint:
name: 🚪 Contact Sensor Left Open Notification by Malte
description: |
📲 Notifies you when a door or window is left open.
🚀 Version 2024.04.23.1
Are you tired of worrying about open doors or windows? This blueprint has got you covered! It's designed to send you a prompt notification when a door or window remains open for a specified duration.
📖 For Details see this [Blog post](https://community.home-assistant.io/t/contact-sensor-door-or-window-left-open-notification/652571)