Skip to content

Instantly share code, notes, and snippets.

View enesusta's full-sized avatar
:octocat:
mvn test

Enes Usta enesusta

:octocat:
mvn test
View GitHub Profile
@enesusta
enesusta / profiles.json
Last active June 14, 2020 01:23
Windows Terminal Configuration
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"startingDirectory": null,
"defaultProfile": "{14ad203f-52cc-4110-90d6-d96e0f41b64d}",
"profiles": {
"padding": {
"default": "8, 8, 8, 8",
"description": "Sets the padding around the text within the window. Can have three different formats: \"#\" sets the same padding for all sides, \"#, #\" sets the same padding for left-right and top-bottom, and \"#, #, #, #\" sets the padding individually for left, top, right, and bottom.",
"pattern": "^-?[0-9]+(\\.[0-9]+)?( *, *-?[0-9]+(\\.[0-9]+)?|( *, *-?[0-9]+(\\.[0-9]+)?){3})?$",
@enesusta
enesusta / adminer.yml
Last active March 14, 2020 22:35
Adminer Docker config
version: "3.1"
services:
adminer:
image: dockette/adminer:full-php5
restart: always
ports:
- 8001:8001
version: '3.1'
services:
db:
container_name: postgres_container
image: postgres
restart: always
ports:
- 5432:5432
environment:
import socketserver
from http.server import HTTPServer, BaseHTTPRequestHandler
from urllib.parse import parse_qs
import requests
from bs4 import BeautifulSoup
import urllib3
import codecs
import sys
@enesusta
enesusta / linking.sh
Created January 10, 2020 10:11
GCC Linking Script
#!/bin/bash
path=/mnt/c/lib/sqlite
unixPath=/mnt/c/lib/sqlite/unix
java=/usr/lib/jvm/java-11-openjdk-amd64
linking() {
gcc -O3 -shared -Wall \
sqlite.c \
-g -fPIC -Wl,-Bdynamic \
@enesusta
enesusta / test.c
Last active January 7, 2020 16:28
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct Student {
char name[20];
int noteOne;
int noteTwo;
int noteThree;
int noteFour;
@enesusta
enesusta / run.sh
Created December 11, 2019 19:08
Typescript Easy Executor
#!/bin/bash
run() {
tsc $1 --target es2015 && node $2
}
file=$(ls -1v *.js | tail -1)
filets=$(ls -1v *.ts | tail -1)
run $filets $file