Skip to content

Instantly share code, notes, and snippets.

View ethmtrgt's full-sized avatar
🔒
GPG: 0xF95E88690692616E

Ethem Turgut ethmtrgt

🔒
GPG: 0xF95E88690692616E
View GitHub Profile

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "your_email@example.com"
@ethmtrgt
ethmtrgt / ornek.py
Last active February 27, 2022 17:59
def get_news(update, context):
r = requests.get("https://www.haberler.com/son-dakika/")
soup = BeautifulSoup(r.content, "lxml")
news = soup.find_all('div', attrs={'class':"hblnBox"})
for Kaynak in news[:1]:
Haber = Kaynak.find('span', attrs={'class':'hblnTitle'})
_title_time = Haber.find('div', attrs={'class': 'hblnTitleTime'}) # İstenmeyen kısım
_title_time.extract()
img = Kaynak.find('img').get('src')
my_news = f"{Haber.text}\n{img}"
-- Journal begins at Thu 2021-05-27 03:35:43 +03, ends at Tue 2021-06-01 00:06:17 +03. --
Jun 01 00:04:56 arch kernel: microcode: microcode updated early to revision 0xe2, date = 2020-07-14
Jun 01 00:04:56 arch kernel: Linux version 5.12.7-arch1-1 (linux@archlinux) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP PREEMPT Wed, 26 May 2021 22:03:57 +0000
Jun 01 00:04:56 arch kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=976e474f-7998-42e4-9889-34a13561f8c3 rw loglevel=3 quiet
Jun 01 00:04:56 arch kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Jun 01 00:04:56 arch kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Jun 01 00:04:56 arch kernel: x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
Jun 01 00:04:56 arch kernel: x86/fpu: Supporting XSAVE feature 0x008: 'MPX bounds registers'
Jun 01 00:04:56 arch kernel: x86/fpu: Supporting XSAVE feature 0x010: 'MPX CSR'
Jun 01 00:04:56 arch kernel: x86/fpu: xstate_offset[2]: 576, xstate_sizes[