Skip to content

Instantly share code, notes, and snippets.

View talayhan's full-sized avatar
💤
Sleeping

Samet Talayhan talayhan

💤
Sleeping
View GitHub Profile
@talayhan
talayhan / pair_bluetooth_device.md
Last active September 5, 2024 19:41
Connect to bluetooth devices on the terminal using bluetoothctl

systemctl status bluetooth.service

if needed restart

systemctl restart bluetooth.service

bluetoothctl
$ power on
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<dict>
<key>AutoJoin</key>
<true/>
<key>CaptiveBypass</key>
@talayhan
talayhan / alphabet150.md
Created September 7, 2023 14:11 — forked from kamui-fin/alphabet150.md
An archive of the interview and system design playlists from alphabet150.com
@talayhan
talayhan / anydesk-enable-remote-access.md
Created October 28, 2022 11:08 — forked from imami/anydesk-enable-remote-access.md
AnyDesk - How Enable Remote Access from ubuntu/debian terminal

###AnyDesk - How Enable Remote Access from ubuntu/debian terminal.

Note:

Here are the commands might be usefull in this purpose:

  • anydesk --get-status : To get current status of anydesk, which might be offlien,online or nothing.
  • anydesk --get-id : To get the ID that your system can be accessed by.
  • anydesk --service : To start anydesk service if not already running (for Linux).
  • anydesk --restart-service : To restart anydesk service
  • anydesk --stop-service : To stop anydesk service
@talayhan
talayhan / hello_world.md
Created June 1, 2021 17:44 — forked from lava/hello_world.md
Hello, world: Deep analysis of a shallow program.

Hello, world!

Please explain in detail what will happen if the following program is executed:

#include <iostream>

int main() {
    std::cout << "Hello, world!" << std::endl;
}
@talayhan
talayhan / gitemail
Created April 2, 2021 12:59 — forked from lifuzu/gitemail
Update email and user name in the git history
git filter-branch -f --commit-filter '
if [ "$GIT_AUTHOR_EMAIL" = "[email protected]" -o "$GIT_AUTHOR_EMAIL" = "[email protected]" ];
then
GIT_AUTHOR_NAME="User Name";
GIT_AUTHOR_EMAIL="[email protected]";
git commit-tree "$@";
else
git commit-tree "$@";
fi' HEAD
@talayhan
talayhan / install_balsamiq_on_linux.sh
Created February 17, 2020 10:16
How to install Balsamiq Mockups on Manjaro Linux
#!/bin/sh
# date: 02-17-2020
# =================
# System info
# =================
# $ cat /etc/issue : Manjaro Linux \r (\n) (\l)
# $ uname -a : Linux t490 5.4.18-1-MANJARO #1 SMP PREEMPT Thu Feb 6 11:41:30 UTC 2020 x86_64 GNU/Linux
#install wine - my current version: wine-5.0
sudo pacman -S wine
@talayhan
talayhan / git-import-repository.md
Created February 24, 2019 12:42 — forked from martinbuberl/git-import-repository.md
Import existing Git repository into another

Import existing Git repository into another

Folder structure before (2 separate repositories):

XXX
 |- .git
 |- (project files)
YYY
 |- .git
@talayhan
talayhan / SimpleHTTPServerWithUpload.py
Created December 1, 2018 08:59 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@talayhan
talayhan / Netfilter-IPTables-Diagrams.md
Created November 1, 2018 16:30 — forked from nerdalert/Netfilter-IPTables-Diagrams.md
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.