Skip to content

Instantly share code, notes, and snippets.

View hwpplayer1's full-sized avatar
🇹🇷
I want to lead to The Free Software Movement !

Mert Gör 🇹🇷🦋 hwpplayer1

🇹🇷
I want to lead to The Free Software Movement !
View GitHub Profile
@hwpplayer1
hwpplayer1 / sistem_analiz.sh
Created June 6, 2026 05:33
sistem_analiz.sh Linux Development Machine Requirements
#!/bin/bash
# Çıktı dosya adı
RAPOR_DOSYASI="rapor.txt"
# Renk tanımlamaları
RED='\033[0;31m'
GREEN='\033[0;32m'
BLUE='\033[0;34m'
NC='\033[0m'
@hwpplayer1
hwpplayer1 / while.c
Created June 1, 2026 03:24
while infinite loop
/**
MIT License
Copyright (c) 2026 PSD Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@hwpplayer1
hwpplayer1 / time_example.c
Created June 1, 2026 03:04
time_example.c
/**
MIT License
Copyright (c) 2026 PSD Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@hwpplayer1
hwpplayer1 / if.c
Created June 1, 2026 02:52
if example
/**
MIT License
Copyright (c) 2026 PSD Authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@hwpplayer1
hwpplayer1 / welcome.sh
Created June 1, 2026 01:46
Ubuntu SSH giriş ekranını birebir taklit eden script
#!/bin/bash
# Ubuntu SSH giriş ekranını birebir taklit eden script
# Copyright (C) 2026 QB Networks
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@hwpplayer1
hwpplayer1 / display_history.el
Last active May 4, 2026 22:51
Display History in Emacs Buffer
;; Copyright (C) 2024 PSD Authors
;;
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU Affero General Public License as published
;; by the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@hwpplayer1
hwpplayer1 / ifbreak.py
Created April 29, 2026 20:21
Break and if example for python programming language
"""
MIT License
Copyright (c) 2026 Mass Collaboration Labs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@hwpplayer1
hwpplayer1 / list.zsh
Created February 3, 2026 10:50
list file and directory
#!/bin/zsh
list_files() {
local path="$1"
if [[ -d "$path" ]]; then
echo "'$path' içindeki dosyalar:"
for f in "$path"/*; do
[[ -f "$f" ]] && echo "${f:t}"
done
else
@hwpplayer1
hwpplayer1 / list.py
Created February 3, 2026 09:01
list script
import os
def list_files(path):
try:
files = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))]
print(f"'{path}' içindeki dosyalar:")
for f in files:
print(f)
except Exception as e:
print(f"Hata: {e}")
@hwpplayer1
hwpplayer1 / py
Created February 3, 2026 09:00
list.py
import os
def list_files(path):
try:
files = [f for f in os.listdir(path) if os.path.isfile(os.path.join(path, f))]
print(f"'{path}' içindeki dosyalar:")
for f in files:
print(f)
except Exception as e:
print(f"Hata: {e}")