Skip to content

Instantly share code, notes, and snippets.

View atakane's full-sized avatar
🏠

Atakan Eser atakane

🏠
View GitHub Profile
@atakane
atakane / win-iis-tls-1.2.reg
Last active December 5, 2020 18:37
Enables TLS 1.2 support for Windows IIS Servers & .NET apps
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Client]
"DisabledByDefault"=dword:00000000
"Enabled"=dword:00000001
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.3\Server]
"Enabled"=dword:00000001
@atakane
atakane / keybase.md
Created November 26, 2019 01:30
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@atakane
atakane / stripAudiofromMpg.sh
Last active January 16, 2017 04:19
Strip audio from MPG video files within a folder. It automatically creates 44.1 kHz, 192 kbps mp3 files for each video file.
#!/bin/sh
# This script strips audio from MPG video files within a folder.
# It automatically creates 44.1 kHz, 192 kbps mp3 files for each video file.
# You need to install "ffmpeg" first.
# To run an "sh" file you have to set it as executable
# atakan$> chmod +x chmod +x stripAudiofromMpg.sh
# after that you can run it in terminal;
# atakan$> ./stripAudiofromMpg.sh
# find each .mpg files in the current folder, pass them to ffmpeg with a set of parameters to produce mp3 files.
@atakane
atakane / getUnit.js
Created December 20, 2016 15:52
getUnit to convert given value to iOS or Android specific metrics.
/*
Sample 1
getUnit({iOS:'35%',Android:'37%'})
returns 35% for iOS, 37% for Android
Sample 2
getUnit(80);
returns 80 for iOS, 80dp for Android
*/
var getUnit = function(value) {
@atakane
atakane / SMFcomponents.js
Last active December 25, 2016 00:17
simple SMF component creator
/* globals */
const getUnit = require('./getUnit.js');
exports.createContainer = function createContainer(parent, name, left, top, width, height, fillColor, backgroundTransparent, onTouchEnded, alpha) {
var newComponent = new SMF.UI.Rectangle({
name: name,
left: getUnit(left),
top: getUnit(top),
width: getUnit(width),
height: height,
@atakane
atakane / InstallAPKtoGenymotion.sh
Last active September 16, 2015 15:16
Auto install .apk files on to the Genymotion's simulator
#!/bin/bash
#Genymotion app path
GM=/Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS/tools
#Process each file found in the source folder recursively
for f in "$@"
do
#installing the package
$GM/adb install -r "$f"