Skip to content

Instantly share code, notes, and snippets.

View coffeenotfound's full-sized avatar
🐢
👏 Code 👏 Review

Jan Katzer coffeenotfound

🐢
👏 Code 👏 Review
View GitHub Profile
for i in {1..49}
do
gnome-terminal --title="Client x/49" -- "./Client"
done
echo "Opened 49 clients"
#include <stdio.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <unistd.h>
#include <ctype.h>
@coffeenotfound
coffeenotfound / NewPluto.xml
Last active March 7, 2019 14:19
My New Eclipse Color Theme work-in-progress thing
<?xml version="1.0" encoding="utf-8"?>
<colorTheme id="0" name="New Pluto" version="0.1.0" modified="2029-03-07 00:00:00" author="coffeenotfound">
<!-- base00 - Default Background -->
<!-- #2d3f50 -->
<!-- #223241 -->
<background color="#29333f" />
<!-- base01 - Lighter Background -->
<currentLine color="#384453" />
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles version="14">
<profile kind="CodeFormatterProfile" name="Holy Grail" version="14">
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_ellipsis" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression" value="do not insert"/>
<setting id="org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration" value="insert"/>
<setting id="org.eclipse.jdt.core.formatter.parentheses_positions_in_for_statment" value="common_lines"/>
<setting id="org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries" value="true"/>
@coffeenotfound
coffeenotfound / h.code-snippets
Created September 21, 2018 11:31
Visual Studio Code C Include Guard Snippet
{
"Add include guard": {
"prefix": "guard",
"description": "Adds an ifndef include guard to a C header",
"body": [
"#ifndef __${TM_FILENAME/^([^\\.]*)\\..*$/${1:/upcase}/}_${TM_FILENAME/^.*\\.([^\\.]*)$/${1:/upcase}/}__",
"#define __${TM_FILENAME/^([^\\.]*)\\..*$/${1:/upcase}/}_${TM_FILENAME/^.*\\.([^\\.]*)$/${1:/upcase}/}__",
"",
"$0",
"",
@coffeenotfound
coffeenotfound / LARAVEL_SERVE.bat
Created October 1, 2017 14:58
Script for starting a Laravel dev server and running webpack
@echo off
start cmd /k "npm run watch"
start cmd /k "php artisan serve"
@coffeenotfound
coffeenotfound / BUILD.bat
Created July 16, 2017 11:29
Forge MCP Build Script
call gradle build
explorer "%cd%\build\libs\"
pause
## How to install MCP for Minecraft Beta 1.7.3
1. Extract MCP zip
2. Copy .minecraft/bin folder into /jars (if old launcher)
For new launcher:
2.1 Find and copy the lwjgl-2.9.0 jar from /libraries of the new launcher to /jars/bin and rename to 'lwjgl.jar'
2.2 Find and copy the lwjgl_util-2.9.0 jar from /libraries of the new launcher to /jars/bin and rename to 'lwjgl_util.jar'
2.3 Find and copy the jinput-2.0.5 jar from /libraries of the new launcher to /jars/bin and rename to 'jinput.jar'
2.4 Extract the natives out of lwjgl-platform-2.9.0-natives-*.jar to /jars/bin/natives
@coffeenotfound
coffeenotfound / Asus PG278Q ColorProfile.txt
Created June 12, 2017 00:43
Personal Asus ROG Swift PG278Q Color Profile
{
"Brightness": 75,
"Contrast": 70,
"Color Temp": [68, 66, 74]
}