Skip to content

Instantly share code, notes, and snippets.

View pitastrudl's full-sized avatar
🎯
Focusing

Arun Bahl pitastrudl

🎯
Focusing
View GitHub Profile
@pitastrudl
pitastrudl / arch.test
Created February 22, 2023 09:37
trying to find mirrors with outdated searched file
#!/bin/bash
mirror_list=$(curl -s "https://archlinux.org/mirrors/status/tier/1/json/")
mirror_urls=$(echo "${mirror_list}" | jq -r '.urls[] | select(.active == true ) | .url' |grep http)
echo "${mirror_urls}"
while IFS= read -r url
do
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <asm/uaccess.h> /* for put_user */
/*
* Prototypes - this would normally go in a .h file
*/
int init_module(void);
void cleanup_module(void);