Skip to content

Instantly share code, notes, and snippets.

View aattk's full-sized avatar
🦁
Working

Alpaslan Tetik aattk

🦁
Working
View GitHub Profile
@aattk
aattk / docker_install.sh
Created May 22, 2023 19:56
Raspberry Docker Installer
#!/bin/bash
echo "aattk.net tarafından oluşturuldu. "
sudo apt update -y
sudo apt upgrade -y
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USER
logout
groups
#include <stdio.h>
int hex2int(char * hex,int size)
{
int sonuc,sayac = 0,val;
while(1)
{
if (hex[sayac] != '\0')
{
def a(lst,k):
for i in lst:
b = int(k) - i
if list.count(b) > 0:
print(f"{i}+{b}={i+b}")
return True
return False
list = [10,15,3,10,7]
num = input("Bir sayi giriniz : ")
#include <stdio.h>
int main(){
int a = 5;
int b = 12;
printf("Old > A : %d B: %d\n",a,b);
a = a * b;
b = a / b;
a = a / b;
printf("New > A : %d B: %d",a,b);
@aattk
aattk / prototeype.ipynb
Last active July 28, 2022 14:59
prototeype
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aattk
aattk / my-network
Last active February 18, 2021 20:21
[connection]
id=my-network
uuid=72111c67-4a5d-4d5c-925e-f8ee26efb3c3
type=802-11-wireless
[802-11-wireless]
mode=infrastructure
ssid= Wifi Adı
# Uncomment below if your SSID is not broadcasted
#hidden=true
body .gist .gist-file {
margin-bottom: 0;
border: 1px dashed #adb5bd;
border-radius: 0;
}
body .gist .gist-data {
border-bottom: none;
border-radius: 0;
background-color: #f1f3f5;
#include <SPI.h>
#include "RF24.h"
RF24 radio(9,10);
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
radio.begin();
radio.setPALevel(RF24_PA_MAX);
radio.setChannel(0x76);
import RPi.GPIO as GPIO
from lib_nrf24 import NRF24
import spidev
from time import sleep
pipes = [[0xF0,0xF0,0xF0,0xF0,0xE1]]
radio = NRF24(GPIO,spidev.SpiDev())
radio.begin(0,17)
radio.setPayloadSize(32)
radio.setChannel(0x76)
[share]
path = /home/pi/shared
writeable=Yes
create mask=0777
directory mask=0777
public=no