Skip to content

Instantly share code, notes, and snippets.

Avatar
💻
Coding as usual.

andrei d4rckh

💻
Coding as usual.
View GitHub Profile
@d4rckh
d4rckh / wininet.c
Created Sep 14, 2022
wininet get requests
View wininet.c
#define _UNICODE
#include <tchar.h>
#include <wchar.h>
#include <Windows.h>
#include <WinInet.h>
#include <stdio.h>
int http_getrequest(char * host, int port, char * path, DWORD dwFileSize, DWORD * dwBytesRead, char * buffer) {
@d4rckh
d4rckh / ethstats.sh
Last active Nov 11, 2019
interface info linux
View ethstats.sh
interface="enp3s0"
echo "Interface: $interface"
mac=$(eval "ifconfig enp3s0 | grep 'ether' | awk '{ print \$2 }'")
RX=$(eval "ifconfig $interface | grep 'RX packets' | awk '{ print \$6 }' | cut -d \"(\" -f 2")
TX=$(eval "ifconfig $interface | grep 'TX packets' | awk '{ print \$6 }' | cut -d \"(\" -f 2")
echo "RX: $RX MB"
echo "TX: $TX MB"
echo "MAC Address: $mac"
View (Unofficial) Discord server rules suggestions list.md

Discord

(Unofficial) Discord server rules suggestions list

Introduction

You just had a great idea for a new Discord server and immediately created it but now you need not only to set up the channels and permissions but also to grind through the daunting task of coming up with a list of rules.

There are so many things to consider, so many possible ways that people could ruin your server, and you also wonder about how you can design your rules in such a way that the members will be able to enjoy their time on your server but also not go overboard.

@Ryonez
Ryonez / (Unofficial) Discord server rules suggestions list.md
Last active Sep 30, 2022
(Unofficial) Discord server rules suggestions list
View (Unofficial) Discord server rules suggestions list.md

Discord

(Unofficial) Discord server rules suggestions list

Author's Note

I'll start off with letting you know this is a fork from someone else. However, for some bizarre reason, this is the one everyone finds, so I better get round to updating this. Credit to Cristiano#2233 for the original idea.

Also, I've had a lot of people saying the rules are to strict. If you pick all the rules here, you're right, it would be very strict. However the rules below are guidelines! They are there for you to pick the ones you desire, you can ignore ones you don't want. Hopefully they might help with rules you wouldn't have thought of otherwise.

@jagrosh
jagrosh / Growing A Discord Server.md
Last active Sep 10, 2022
Tips for creating and growing a new Discord server
View Growing A Discord Server.md

This guide is kept up-to-date as Discord and available resources change!
A basic server template is available here

Creating and Growing a Discord Server

logo

Introduction

Hello! I'm jagrosh#4824! I'm writing this guide to try to help new server owners set up and grow their servers, which is a commonly-requested topic. It's very easy to go about this the wrong way, so it's best to be prepared and make smart decisions so that your community can flourish!

Background

@gordonbrander
gordonbrander / ID.js
Last active Sep 19, 2022
ID - a unique ID/name generator for JavaScript
View ID.js
// Do not use. Use Symbol() instead.
@lancejpollard
lancejpollard / meta-tags.md
Created Mar 5, 2012
Complete List of HTML Meta Tags
View meta-tags.md

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">