Skip to content

Instantly share code, notes, and snippets.

Batuhan Bayrakci baybatu

Block or report user

Report or block baybatu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
baybatu /
Created Apr 10, 2020
Prevent clicking button automatically when press 'Enter' in Clarity
baybatu /
Created Mar 5, 2020 — forked from Bonno/
Opening multiple SSH sessions with iTerm automatically. To be used in an Automator flow.

Create a new Automater flow

Add 'Service'. Service receives 'no input' in 'iTerm'. Add 'Run AppleScript'.

baybatu /
Created Feb 25, 2020
Create spark session using hive metastore on local
SparkSession spark = SparkSession
.config("dfs.nameservices", "nameService01")
.config("hive.metastore.uris", "thrift://")
baybatu / string-to-number.js
Last active Feb 20, 2020
Converting string to number in Javascript (ES5)
View string-to-number.js
function toNumber(value) {
var convertedNumber = +value;
if (convertedNumber) {
return convertedNumber;
throw Error("Conversion error for value:" + value);
baybatu /
Created Feb 17, 2020
Getting network traffic of an application by PID on OSX
sudo tcpdump -Q pid=PID -k
baybatu /
Created Dec 9, 2019
Java'da öntanımlı bir listeye göre sıralama yapmak
List<String> kurallar = Arrays.asList("ahmet", "veli", "mehmet");
List<String> sonuc = Arrays.asList("veli", "mehmet", "ahmet").stream()
  .sorted(Comparator.comparing(isim -> kurallar.indexOf(isim)))
assertThat(sonuc).isEqualTo(Arrays.asList("ahmet", "veli", "mehmet"));


baybatu /
Last active Aug 29, 2019
Specifying admin port on TwitterServer

Pass following as program an argument

java -jar app.jar -admin.port=:9999
You can’t perform that action at this time.