Skip to content

Instantly share code, notes, and snippets.

View mendess's full-sized avatar
💭
Reject Convenience

Mendes mendess

💭
Reject Convenience
  • Cloudflare
  • Portugal
View GitHub Profile
@mendess
mendess / rust_2024_compatibility.rs
Created February 26, 2025 22:45
Rust editition lint groups
#![warn(boxed_slice_into_iter)]
#![warn(dependency_on_unit_never_type_fallback)]
#![warn(deprecated_safe_2024)]
#![warn(edition_2024_expr_fragment_specifier)]
#![warn(if_let_rescope)]
#![warn(impl_trait_overcaptures)]
#![warn(keyword_idents_2024)]
#![warn(missing_unsafe_on_extern)]
#![warn(never_type_fallback_flowing_into_unsafe)]
#![warn(rust_2024_guarded_string_incompatible_syntax)]
@mendess
mendess / clues.md
Last active August 17, 2024 11:58
I've got a clue

The good ones

  • https://scryfall.com/card/tblc/37/clue
  • https://scryfall.com/card/tpip/11/clue
  • https://scryfall.com/card/tmkm/15/clue
  • https://scryfall.com/card/tmkm/14/clue
  • https://scryfall.com/card/t30a/12/clue
  • https://scryfall.com/card/t30a/11/clue

The bad ones

@mendess
mendess / suit-me-up.sh
Created April 1, 2020 15:41
suit-me-up.sh
#!/bin/bash
set -e
walls() {
mkdir -p Pictures/Wallpapers
cd Pictures/Wallpapers || exit 1
for f in $(curl "$endpoint:8000/walls" | grep '<a ' | cut -d\" -f2)
do
wget --quiet "$endpoint:8000/$f"
done
}
@mendess
mendess / chat.sh
Last active April 15, 2020 18:52
A simple chat written in bash
#!/bin/bash
if [[ "$1" = *-h* ]]
then
cat <<EOF
Usage:
Server: $0
Client: $0 SERVER_IP
EOF
exit
fi
#include <stdio.h>
#include <unistd.h>
#define kElements 1250000
const char *progress = "-\\|/";
void initArray(int *p, int num){
int i;
for (i = 0; i < num; ++i)
{
@mendess
mendess / _Indice.md
Last active June 24, 2019 13:11
Resumos Java

Estes resumos foram movidos para um repositorio.

Este gist não vai ser mais updated.

# Created by .ignore support plugin (hsz.mobi)
### Java template
# Compiled class file
*.class
# Log file
*.log
# BlueJ files
*.ctxt