Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 17, 2024 18:06
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
@markasoftware
markasoftware / enterprise_token.rb
Last active May 17, 2024 18:02
OpenProject Enterprise mode for free
############ REPLACE app/models/enterprise_token.rb in the source code with this file! ################
############ also be sure to RESTART OpenProject after replacing the file. ################
############ it doesn't show that enterprise mode is enabled in the settings, but all ################
############ enterprise mode features, such as KanBan boards, are enabled. ################
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2023 the OpenProject GmbH
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License version 3.
@leocomelli
leocomelli / git.md
Last active May 17, 2024 18:01
Lista de comandos úteis do GIT

GIT

Estados

  • Modificado (modified);
  • Preparado (staged/index)
  • Consolidado (comitted);

Ajuda

@RabiRoshan
RabiRoshan / RefreshIndicatorExample.dart
Created April 28, 2020 12:43
Refresh Indicator between SliverAppBar and SliverList (Like Instagram refresh) in Flutter
CustomScrollView(
physics:
const BouncingScrollPhysics(parent: AlwaysScrollableScrollPhysics()),
slivers: <Widget>[
SliverAppBar(
title: Text(
"Example",
style: heading1,
),
floating: true,
@mortezashojaei
mortezashojaei / OrdersComponent.tsx
Last active May 17, 2024 17:54
Using laravel-echo in reactjs
import React, { FC } from 'react';
import { useSocket } from '@myapp/hooks';
import {Order} from '@myapp/models';
export const OrdersComponent: FC = () => {
const [orders,setOrders] = useState<Order[]>();
function addNewOrder(neworder:Order) {
@scyto
scyto / proxmox.md
Last active May 17, 2024 17:52
proxmox cluster proof of concept

ProxMox Cluster - Soup-to-Nutz

aka what i did to get from nothing to done.

note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV

Purpose of Proxmox cluster project

Required Outomces of cluster project

@Salamafet
Salamafet / check_certificate.sh
Created August 30, 2022 12:26
Gotify notification when certificate expire
#!/bin/bash
certificat=/usr/certificate/example.com/cert.pem
gotify_url="https://push.example.com/message?token=xxxxx"
gotify_title="Synology Certificate Expiry"
function check_certificat () {
if openssl x509 -checkend $((${1}*86400)) -noout -in $certificat; then
return 1
else

1. 如何確認自己是使用Wayland工作階段

使用echo $XDG_SESSION_TYPE即可得知是x11還是wayland

KDE登入畫面SDDM左下角點選Plasama (Wayland)工作階段

GNOME 42後已預設使用GNOME,登入時GDM右下角齒輪會有GNOMEGNOME on Xorg的選項。

2. 強制瀏覽器使用純Wayland工作階段