Linuxistan 🔥
701 subscribers
33 photos
5 videos
11 files
429 links
Bu kanalda faydalı bulduğumuz Türkçe ve İngilizce içerik ve bağlantılar paylaşılıyor.
Android: @DroidTR
GNU/Linux Türkiye: @GNULinuxTR
Konu dışı: @konudisi
Anket: https://t.me/linuxistan/7
Türkmen topluluğu : @turkman_sohbet
Download Telegram
Forwarded from Genel Paylaşımlarım (Kemal Oktay Aktoğan)
Forwarded from Genel Paylaşımlarım (Kemal Oktay Aktoğan)
#include <stdio.h>
void main(){
void* a = (void*)13;
printf("%d\n",(int)&a[12]);
}


C ile 2 sayıyı + işareti olmadan toplama.
Türkmen linux gurubu.
https://t.me/turkman_sohbet
#ifdef __STRICT_ANSI__
#define strdup(A) strcpy(calloc(strlen(A) + 1, sizeof(char)), A);
#endif
Ansi C için strdup
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <pthread.h>

void *myThreadFun(void *args) {
puts("Hello World after 1sec");
puts((char*)args);
return NULL;
}

struct timeout_ctx {
int delay;
void* args;
void (*function)(void*);
};

void* timeout_worker(struct timeout_ctx *ctx){
usleep(ctx->delay*1000);
ctx->function(ctx->args);
}

void timeout_add(int timeout, void* function, void* args){
pthread_t thread_id;
struct timeout_ctx *ctx = calloc(1, sizeof(struct timeout_ctx));
ctx->delay = timeout;
ctx->function = function;
ctx->args = args;
pthread_create(&thread_id, NULL, (void*)timeout_worker, (void*)ctx);
}

int main() {
pthread_t thread_id;
timeout_add(1000, myThreadFun, "Argument pass");
timeout_add(1250, exit, 0);
while(1);
exit(0);
}

C basit zamanlı fonksiyon çalıştırma.
Adobe yeni yürürlüğe girecek hizmet politikasıyla kullanıcıların aktif projelerine erişim izni alacak.

Adobe aktif pencerelerde her türlü belge, video ve materyale erişebilecek. Erişilen veriler yapay zeka eğitiminde de kullanılabilecek.
Forwarded from Sabri Ünal
Linux kablosuz sürücülerine pek çok katkısı olan Larry Finger vefat etmiş.

Toprağı bol olsun.

"Larry Finger who has contributed to the Linux kernel since 2005 and has seen more than 1,500 kernel patches upstreamed into the mainline Linux kernel has sadly passed away.

Larry Finger began contributing originally to the Broadcom BCM43XX driver back in the day and over the years has contributed a lot to Linux WiFi drivers."

Kaynak: https://www.phoronix.com/news/Larry-Finger-Linux-Wireless
Forwarded from Genel Paylaşımlarım (Kemal Oktay Aktoğan)
MariaDB/MySQL'de veritabanı içerisindeki tüm tabloları silme

#!/bin/bash
test -z "${1}" && exit 2
DATABASE="${1}"
mysql -u root "${DATABASE}" <<< $(mysqldump --add-drop-table --no-data -u root "${DATABASE}" | grep 'DROP TABLE')
Forwarded from Dex