Skip to content

Instantly share code, notes, and snippets.

View Omar-Handouk's full-sized avatar
🍞
Making a sandvich!

Omar Handouk Omar-Handouk

🍞
Making a sandvich!
  • @Home
View GitHub Profile
// place this file the path such ends with: ChatServer/server/ChatServer.java
package ChatServer.server;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
@mindplace
mindplace / git_and_github_instructions.md
Last active July 22, 2024 04:38
Pushing your first project to github

1. Make sure git is tracking your project locally

Do you need a refresher on git? Go through Codecademy's git course.

  1. Using your terminal/command line, get inside the folder where your project files are kept: cd /path/to/my/codebase. → You cannot do this simply by opening the folder normally, you must do this with the command line/terminal.
    → Do you need a refresher on using your command line/terminal? I've compiled my favorite resources here.

  2. Check if git is already initialized: git status

@simonfrey
simonfrey / packages.md
Created January 31, 2017 18:08 — forked from mikroskeem/0x0.sh
Arch Linux must-have packages
  • weston-git libinput-git wayland-git OR i3 Lightweight GUI
  • dwb OR chromium and chromium-pepper-flash (dwb is lighter, but chromium is m
  • gedit GTK text editor
  • youtube-dl to get your kitty videos from youtube
  • mpv better than mplayer
  • htop Best process viewer
  • ncdu "NCurses Disk Usage"
  • byobu Terminal manager/multiplexer
  • tor to become (almost)anonymous
  • proxychains-ng to use proxy on app what doesn't actually support it
@PurpleBooth
PurpleBooth / README-Template.md
Last active July 22, 2024 02:29
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@roachhd
roachhd / README.md
Last active July 23, 2024 17:42
EMOJI cheatsheet 😛😳😗😓🙉😸🙈🙊😽💀💢💥✨💏👫👄👃👀👛👛🗼🔮🔮🎄🎅👻

EMOJI CHEAT SHEET

Emoji emoticons listed on this page are supported on Campfire, GitHub, Basecamp, Redbooth, Trac, Flowdock, Sprint.ly, Kandan, Textbox.io, Kippt, Redmine, JabbR, Trello, Hall, plug.dj, Qiita, Zendesk, Ruby China, Grove, Idobata, NodeBB Forums, Slack, Streamup, OrganisedMinds, Hackpad, Cryptbin, Kato, Reportedly, Cheerful Ghost, IRCCloud, Dashcube, MyVideoGameList, Subrosa, Sococo, Quip, And Bang, Bonusly, Discourse, Ello, and Twemoji Awesome. However some of the emoji codes are not super easy to remember, so here is a little cheat sheet. ✈ Got flash enabled? Click the emoji code and it will be copied to your clipboard.

People

:bowtie: 😄

@grenade
grenade / 01-generate-ed25519-ssh-key.sh
Last active July 11, 2024 10:06
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate new personal ed25519 ssh keys
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>"
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_robtn -C "rob thijssen <rob@rob.tn>"
# generate new host cert authority (host_ca) ed25519 ssh key
# used for signing host keys and creating host certs
ssh-keygen -t ed25519 -f manta_host_ca -C manta.network
@glejeune
glejeune / gist:4131931
Created November 22, 2012 16:18
C/C++ useful macros
#define CONCATENATE(arg1, arg2) arg1##arg2
#define IN_NARG(...) IN_NARG_(__VA_ARGS__, IN_RSEQ_N())
#define IN_NARG_(...) IN_ARG_N(__VA_ARGS__)
#define IN_ARG_N(_1, _2, _3, _4, _5, _6, _7, _8, _9, N, ...) N
#define IN_RSEQ_N() 9, 8, 7, 6, 5, 4, 3, 2, 1, 0
#define IN_1(x, v, ...) ((v) == (x))
#define IN_2(x, v, ...) ((v) == (x)) || IN_1(x, __VA_ARGS__)
#define IN_3(x, v, ...) ((v) == (x)) || IN_2(x, __VA_ARGS__)