This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from subprocess import Popen,PIPE | |
fdiskl = "fdisk -l /home/muhammet/DietPi_RPi-ARMv8-Bookworm.img" | |
#fdisk -l 8. satirdan itaberen bolum bilgilerini verir. | |
device_info = Popen(fdiskl , stdout = PIPE, text = True, shell = True).stdout.read().splitlines()[8:] | |
#Sadece sektor bilgilerini elde ettikten sonra veriyi liste tipinde stringe cevir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################################################### | |
# Vim'de ultisnips kullanirken freertos # | |
# fonksiyonlari icin hazirladigim snippets ornekleri # | |
# # | |
# Dokumantasyon: https://github.com/SirVer/ultisnips/blob/master/doc/UltiSnips.txt # | |
######################################################################################### | |
snippet inc "#include " b | |
#include <$0.h> | |
endsnippet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMAGE=$1 | |
BOOT_POINT="/tmp/raspberrypi/boot" | |
ROOT_POINT="/tmp/raspberrypi/root" | |
CONNECTION="/etc/NetworkManager/system-connections/*" | |
mkdir -p $BOOT_POINT | |
mkdir -p $ROOT_POINT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{'User-Agent': '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', | |
'Accept-Encoding': 'gzip', | |
'Accept': '*/*', | |
'Connection': 'keep-alive'} | |
{'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.85 Safari/537.36', | |
'Accept-Encoding': 'gzip', | |
'Accept': '*/*', | |
'Connection': 'keep-alive'} |