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 / 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
@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 / 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 \
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
version: '3.1'
services:
db:
container_name: postgres_container
image: postgres
restart: always
ports:
- 5432:5432
environment:
@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
@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 / settings.json
Last active April 15, 2020 00:11
VSCode Settings
{
"editor.formatOnSave": false,
"terminal.integrated.fontSize": 14,
"workbench.colorTheme": "One Dark Pro",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"html.format.wrapLineLength": 100,
"html.format.wrapAttributes": "force-expand-multiline", // or "auto", "force", "force-aligned", "aligned-multiple",
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
@enesusta
enesusta / config.yml
Created March 30, 2020 20:12
terminalizer config
# Specify a command to be executed
# like `/bin/bash -l`, `ls`, or any other commands
# the default is bash for Linux
# or powershell.exe for Windows
command: sh.exe
# Specify the current working directory path
# the default is the current working directory path
cwd: null
@enesusta
enesusta / requirements.txt
Created April 6, 2020 21:27
tcraw py requirements.txt
urllib3
bs4
requests