Skip to content

Instantly share code, notes, and snippets.

View abdullahceylan's full-sized avatar
🎯
Focusing

Abdullah Musab Ceylan abdullahceylan

🎯
Focusing
View GitHub Profile
# basic pfctl control
# ==
# Related: http://www.OpenBSD.org
# Last update: Tue Dec 28, 2004
# ==
# Note:
# this document is only provided as a basic overview
# for some common pfctl commands and is by no means
# a replacement for the pfctl and pf manual pages.
@abdullahceylan
abdullahceylan / iterm-profile.json
Created July 22, 2018 21:27
iTerm 2 profile settings
{
"Ansi 3 Color" : {
"Green Component" : 0.46751424670219421,
"Blue Component" : 0.023484811186790466,
"Red Component" : 0.64746475219726562
},
"Tags" : [
],
"Ansi 12 Color" : {
@abdullahceylan
abdullahceylan / GIF-Screencast-OSX.md
Created December 3, 2018 22:33 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@abdullahceylan
abdullahceylan / Dockerfile
Last active December 5, 2018 20:26
create-react-app Dockerfile
# base image
FROM node:9.6.1
# set working directory
RUN mkdir /usr/src/app
WORKDIR /usr/src/app
# add `/usr/src/app/node_modules/.bin` to $PATH
ENV PATH /usr/src/app/node_modules/.bin:$PATH
@abdullahceylan
abdullahceylan / merge_all_json_file.py
Created December 7, 2018 22:49
Merge all .json file in a directory
# You have file1.json and file2.json files.
# Each file has structure:
# [{"key1": "value1"}] - (in file1)
# [{"key2": "value2"}] - (in file2)
# And your goal to merge them and get next view:
# [{"key1": "value1"},

Keybase proof

I hereby claim:

  • I am abdullahceylan on github.
  • I am abdullahceylan (https://keybase.io/abdullahceylan) on keybase.
  • I have a public key ASCvNgQ08mlQnnkeHuk9e7Mwj3S7P61xgn1OZy9lveBxTAo

To claim this, I am signing this object:

@abdullahceylan
abdullahceylan / create.bash
Created January 22, 2019 22:00
Create nested folders on Mac OS terminal
cat dirlist.txt | xargs mkdir -p
@abdullahceylan
abdullahceylan / balancePoint.js
Last active February 24, 2019 19:30
Balance points
function sum(a, b) {
return a + b;
}
var BalancePoint = function(input) {
if (!Array.isArray(input)) {
return -1;
}
var totalSum = input.reduce(sum, 0);
@abdullahceylan
abdullahceylan / uk-postcode-validator.js
Created March 11, 2019 18:23
U.K. Postcode Validator
const postcodeRegex = /^[A-z]{1,2}[0-9Rr][0-9A-z]?[0-9][A-z]{2}$/;
const postcode = 'NG1 4UG';
const errors = {};
if (!postcode) {
errors.postcode = 'Please enter a postcode';
} else if (
!postcode
.replace(/\s/g, '')
.toUpperCase()
@abdullahceylan
abdullahceylan / cloudSettings
Last active March 25, 2021 22:10
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-03-25T22:10:55.298Z","extensionVersion":"v3.4.3"}