Skip to content

Instantly share code, notes, and snippets.

View ozturkoktay's full-sized avatar

Oktay Ozturk ozturkoktay

View GitHub Profile
@ozturkoktay
ozturkoktay / grokking_to_leetcode.md
Created October 31, 2024 23:59 — forked from tykurtz/grokking_to_leetcode.md
Grokking the coding interview equivalent leetcode problems

GROKKING NOTES

I liked the way Grokking the coding interview organized problems into learnable patterns. However, the course is expensive and the majority of the time the problems are copy-pasted from leetcode. As the explanations on leetcode are usually just as good, the course really boils down to being a glorified curated list of leetcode problems.

So below I made a list of leetcode problems that are as close to grokking problems as possible.

Pattern: Sliding Window

@ozturkoktay
ozturkoktay / AutoConnectLinkedIn.js
Last active October 2, 2022 00:51 — forked from thealphadollar/AutoConnectLinkedIn.js
JS script to send connection requests to your LinkedIn search results with customisation options, accept all received connection requests, and withdraw pending sent connection requests.
// If the script does not work, you may need to allow same site scripting https://stackoverflow.com/a/50902950
Linkedin = {
config: {
scrollDelay: 3000,
actionDelay: 5000,
nextPageDelay: 5000,
// set to -1 for no limit
maxRequests: -1,
totalRequestsSent: 0,
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/37.0.2062.94 Chrome/37.0.2062.94 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9
Mozilla/5.0 (iPad; CPU OS 8_4_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12H321 Safari/600.1.4
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.10240
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:40.0)
echo "options iwlwifi 11n_disable=1 wd_disable=1" | sudo tee /etc/modprobe.d/iwlwifi.conf
@ozturkoktay
ozturkoktay / install_ubuntu_apps.sh
Last active May 9, 2022 20:25
Bash script for installing Ubuntu apps.
#!/bin/bash
sudo sed -i 's|http://tr.|http://|g' /etc/apt/sources.list;
tput setaf 1; echo "===> Sytem Update";
sudo apt update && sudo apt upgrade -y && sudo apt install ca-certificates curl gnupg lsb-release -y;
tput setaf 1; tput setaf 1; echo "===> Change Directory";
cd ~/Downloads/

Execute these lines:

sudo sh -c 'cat > /etc/apt/sources.list.d/focal-dell.list << EOF
deb http://dell.archive.canonical.com/updates/ focal-dell public
deb http://dell.archive.canonical.com/updates/ focal-oem public
deb http://dell.archive.canonical.com/updates/ focal-somerville public
deb http://dell.archive.canonical.com/updates/ focal-somerville-melisa public
EOF'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F9FDA6BED73CDC22
@ozturkoktay
ozturkoktay / wake_up_colab.js
Last active September 5, 2020 19:49
Wake up colab python notebook when training
/* Wake up colab python notebook when training */
function ClickConnect(){
console.log("Working");
document.querySelector("colab-toolbar-button").click()
}
setInterval(ClickConnect,60000)
@ozturkoktay
ozturkoktay / dataset_to_wordlist_tr.sh
Last active April 15, 2020 10:42
Convert text dataset to wordlist for Turkish language.
#!/bin/bash
# -*- coding: utf8 -*-
# USAGE: bash dataset_to_wordlist_tr.sh ./input.txt ./output.txt
# This script takes file clean punctuation, digits and convert capital
# latters to smaller and clean non Turkish characters.
# Finally make sorted uniq wordlist for Turkish language.
# If you want to add or remove character you can change line 20.
# Define Variables for input and output