Skip to content

Instantly share code, notes, and snippets.

View mendess's full-sized avatar
🦀
Learning Rust

Mendes mendess

🦀
Learning Rust
  • Cloudflare
  • Portugal
View GitHub Profile
@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