Skip to content

Instantly share code, notes, and snippets.

View luizfernandonb's full-sized avatar

Luiz luizfernandonb

View GitHub Profile
@cogumm
cogumm / markdown-text-discord.md
Last active March 15, 2025 02:00 — forked from matthewzring/markdown-text-101.md
Guia de Markdown para o nosso amado Discord.

Markdown Text 101

Quer deixar o seu seu bate-papo de texto do Discord com um sabor diferente? Você está com sorte, pois este é um Guia de Markdown para o nosso amado Discord!. O Discord usa o Markdown, um sistema simples de formatação de texto simples que ajudará você a destacar suas frases. Veja como fazer isso! Apenas adicione alguns caráteres antes e depois de texto desejado para mudar o estilo! Vou te mostrar alguns exemplos ...

Menu:

@vinicius-stutz
vinicius-stutz / readme.md
Created April 28, 2018 23:21
Padrões de Nomenclatura em C# (pt-br)

Namespace

Por padrão toda biblioteca deve conter um nome padrão em seu namespace. Ex.: MinhaEmpresa.SeuNameSpace (padrão PascalCase).

Classes

As classes devem começar com letra maiúscula e para cada palavra, a primeira letra também deve ser maiúscula (padrão PascalCase).

C#

@fedek6
fedek6 / removeSublimeContextMenu.bat
Created November 9, 2017 12:30
Remove Sublime integration added by: roundand/OpenWithSublimeText3.bat
@echo off
rem add it for all file types
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /f
rem add it for folders
@reg delete "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text 3" /f
pause
@bantya
bantya / clear_apps_icon_cache.bat
Created November 6, 2017 09:52
bat: clear windows apps icon cache
@echo off
:: ie4uinit.exe -show
ie4uinit.exe -ClearIconCache
taskkill /IM explorer.exe /F
del /A /Q "%localappdata%\IconCache.db"
del /A /F /Q "%localappdata%\Microsoft\Windows\Explorer\iconcache*"
shutdown /r /f /t 00
@htfy96
htfy96 / static_inline_example.md
Last active February 28, 2025 11:15
static inline vs inline vs static in C++

In this article we compared different behavior of static, inline and static inline free functions in compiled binary. All the following test was done under g++ 7.1.1 on Linux amd64, ELF64.

Test sources

header.hpp

#pragma once

inline int only_inline() { return 42; }
static int only_static() { return 42; }
@ocpu
ocpu / build.gradle
Created August 27, 2017 16:32
Minecraft Forge build.gradle in somewhat detail
buildscript {
repositories {
// Adds the jcenter repository
jcenter()
// Add minecraft forge repositories
maven { url = "http://files.minecraftforge.net/maven" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:2.3-SNAPSHOT'
}
@rueycheng
rueycheng / GNU-Make.md
Last active April 6, 2025 14:43
GNU Make cheatsheet
@juniorcesarabreu
juniorcesarabreu / memset.md
Last active November 17, 2023 12:05
A função memset(str, c, n) copia o caracter c (um unsigned char) para os n primeiros caracteres da string apontada por str.

Exemplo

#include <stdio.h>
#include <string.h>

int main ()
{
   char str[50];

 strcpy(str,"This is string.h library function");
@iUltimateLP
iUltimateLP / libwebsocket_client.cpp
Created February 8, 2017 18:13
A simple, minimalistic websocket client using LibWebSocket
// Simple LibWebSockets test client
//////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <signal.h>
#include "libwebsocket/libwebsockets.h"
Written by Thanos Apostolou
http://askubuntu.com/questions/53822/how-do-you-run-ubuntu-server-with-a-gui
Some more info can be found here https://help.ubuntu.com/community/ServerGUI. I assume you start with a clean install of Ubuntu Server 16.04 (some modifications may be needed for older versions of Ubuntu). Depending on your needs you can do these:
Minimal GUI:
sudo apt install xorg
sudo apt install --no-install-recommends openbox
Run the command startx and openbox will start (you can open a terminal there and run any application you want)