Skip to content

Instantly share code, notes, and snippets.

View molcay's full-sized avatar
:octocat:

M. Olcay Tercanlı molcay

:octocat:
View GitHub Profile
@mersanuzun
mersanuzun / payment.js
Last active June 14, 2020 09:04
Payment calculator for trendyol.com
var TrendyolPaymentCalculator = (() => {
const $this = {};
const months = ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık']
$this.calculate = async () => {
const calculatableResult = checkForCalculatable();
if (!calculatableResult.isValid) {
console.error(calculatableResult.message);
@florimondmanca
florimondmanca / asgi-packages.md
Last active December 4, 2023 15:52
ASGI Packages

A list of ASGI-related Python packages I maintain:

@cihanselim
cihanselim / countries
Last active July 18, 2020 17:38
intl phone masks and regex
[{"code":"93","name":"Afghanestan","mask":"xx xxx xxx","regex":"/^\\+?([0-9]{2})[-. ]?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"111-afghanistan.svg"},{"code":"355","name":"Shqiperia","mask":"xxx xxx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"099-albania.svg"},{"code":"213","name":"Al Jaza'ir ","mask":"xx xxx xxx","regex":"/^\\+?([0-9]{2})[-. ]?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"144-algeria.svg"},{"code":"1684","name":"American Samoa ","mask":"xxx xx xx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{2})[-. ]?([0-9]{2})[-. ]?$","iconName":"027-american-samoa.svg"},{"code":"376","name":"Andorra","mask":"xxx xxx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"045-andorra.svg"},{"code":"374","name":"Hayastan","mask":"xxx xxx xx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{3})[-. ]?([0-9]{2})[-. ]?$","iconName":"108-armenia.svg"},{"code":"297","name":"Aruba","mask":"xxx xxx","regex":"/^\\+?([0-9]{3})[-. ]?([0-9]{3})[-. ]?$","iconName":"042-aruba.svg"},{"code":"61","name":"Austr
@superjose
superjose / .gitlab-ci.yml
Last active February 19, 2024 10:22
This is an example of a .gitlab-ci.yml that is required for Continuous Integration on GitLab projects.
# Reference: https://www.exclamationlabs.com/blog/continuous-deployment-to-npm-using-gitlab-ci/
# GitLab uses docker in the background, so we need to specify the
# image versions. This is useful because we're freely to use
# multiple node versions to work with it. They come from the docker
# repo.
# Uses NodeJS V 9.4.0
image: node:9.4.0
# And to cache them as well.
@phi10s
phi10s / enumit.py
Last active November 24, 2021 01:59
A simple, hacky python script to automate initial enumeration of hosts, for use by OSCP/general infosec students and in virtual labs. Some component scripts may be too loud and intrusive for use in actual pentests. Only use on hosts you own/have permission to test.
#!/usr/bin/python
import os
import sys
import subprocess
import random
import re
from time import sleep
import shlex
from ipaddress import ip_address
from termcolor import colored,cprint
@Luzifer
Luzifer / README.md
Last active May 29, 2024 08:02
Running docker-compose as a systemd service

Running docker-compose as a systemd service

Files

File Purpose
/etc/compose/docker-compose.yml Compose file describing what to deploy
/etc/systemd/system/docker-compose-reload.service Executing unit to trigger reload on docker-compose.service
/etc/systemd/system/docker-compose-reload.timer Timer unit to plan the reloads
/etc/systemd/system/docker-compose.service Service unit to start and manage docker compose
@doofusdavid
doofusdavid / filecount.gs
Created February 13, 2017 22:59
Google Script to get file counts.
/**
* Google Apps Script - List all files & folders in a Google Drive folder, & write into a speadsheet.
* - Main function 1: List all folders
* - Main function 2: List all files & folders
*
* Hint: Set your folder ID first! You may copy the folder ID from the browser's address field.
* The folder ID is everything after the 'folders/' portion of the URL.
*
* @version 1.0
* @see https://github.com/mesgarpour
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@rkuzsma
rkuzsma / gist:b9a0e342c56479f5e58d654b1341f01e
Last active May 18, 2024 15:40
Example Kubernetes yaml to pull a private DockerHub image
Step by step how to pull a private DockerHub hosted image in a Kubernetes YML.
export DOCKER_REGISTRY_SERVER=https://index.docker.io/v1/
export DOCKER_USER=Type your dockerhub username, same as when you `docker login`
export DOCKER_EMAIL=Type your dockerhub email, same as when you `docker login`
export DOCKER_PASSWORD=Type your dockerhub pw, same as when you `docker login`
kubectl create secret docker-registry myregistrykey \
--docker-server=$DOCKER_REGISTRY_SERVER \
--docker-username=$DOCKER_USER \
@Belgabor
Belgabor / Django_ReactJS_Webpack_project_setup.md
Created April 20, 2016 18:54
Set up a Django + ReactJS project with Webpack manager

Guide on how to create and set up your Django project with webpack, npm and ReactJS :)

Hopefully this will answer "How do I setup or start a Django project?" I was trying to set up my own website, and there was a lot to read, learn and digest! Therefore, I put this together which is a collection of all the guides/blog posts/articles that I found the most useful. At the end of this, you will have your barebones Django app configured and ready to start building :)

NOTE: This guide was built using Django 1.9.5, NodeJS 4+ with NPM 3+

1. Setting up your dev environment