Skip to main content

Questions tagged [api]

2 votes
2 answers
194 views

How do I find out Linux kernel version for an API change?

How do I find out, since which Linux version a kernel API function/macro is availible, or have undergone breaking changes (was removed, change of the type or number of arguments). For example while ...
Andrey Pro's user avatar
0 votes
2 answers
123 views

How to make drivers compatible with multiple Linux distributions?

I have noticed that some drivers are more difficult to find for certain distributions of Linux. Is it possible to make a driver interface or driver API that is the same for multiple Linux ...
Dale's user avatar
  • 149
0 votes
2 answers
91 views

Extracting a URL from a HTTP 200 Response and redirecting to that url

I've been searching for a while but I haven't found anything that 100% matches what I would like to achieve. I'm submitting data to an API and getting a response. I can see the submission is ...
Glen's user avatar
  • 3
1 vote
2 answers
119 views

How to distribute HTTPS certificate/key securely and automatically on internal servers

I have a some internally available servers (all Debian), that share a LetsEncrypt wildcard certificate (*.local.example.com). One server (Server1) keeps the certificate up-to-date and now I'm looking ...
emma.makes's user avatar
0 votes
1 answer
113 views

How do I get last login unix timestamp for a user using kernel API (not `last` cmd)

I want to write a program that can get information about a user, specifically last login time in unix timestamp format using kernel API (not using any shell cmd). What function do I need to call to ...
atamakahere's user avatar
0 votes
1 answer
775 views

Why does Debian ship Google API keys with Chromium?

I have a file called /etc/chromium.d/apikeys which has the following contents, # API keys assigned to Debian by Google for access to their services like sync and gmail. export GOOGLE_API_KEY="...
Evan Carroll's user avatar
  • 35.1k
1 vote
0 answers
337 views

Where can I find the documentation for the Linux NPU API?

For example the Samsung Galaxy S10 has an Exynos 9820 CPU with integrated NPU. We all know Android is based on Linux. So where can I find the Linux API documentation about how to interact with the NPU?...
zomega's user avatar
  • 1,022
2 votes
1 answer
902 views

Ubuntu-latest GitHub runner cannot Connect to localhost API

What specifically needs to be changed in the below in order for a program running on an Ubuntu-latest GitHub runner to successfully connect to a Twisted web server running on localhost of the same ...
CodeMed's user avatar
  • 5,377
1 vote
0 answers
107 views

Is there an API to query setxkbmap's current layout?

A bit related to this previous question of mine, I wonder if there's a way to query what is the current layout. Say I have run setxkbmap -layout it,ru -variant ,phonetic -option 'grp:caps_toggle' and ...
Enlico's user avatar
  • 2,290
0 votes
1 answer
248 views

ioctl problem with partition

There is a path to the file, I make a write disk cache request via ioctl - ioctl(fd, SG_IO, &ioHdr). printk: sending ioctl 2285 to a partition!? how to find out which block device a partition ...
unite101010's user avatar
0 votes
2 answers
3k views

linux - curl read in file attribute from a file

So I have this curl command. But I want to store the API-key in a file called api.txt and have it load where the value is in the curl command. api.txt files contains 'X-Api:<API-KEY>' This ...
Lacer's user avatar
  • 275
2 votes
1 answer
4k views

How to parse an escaped json string with ansible/jmespath/jq?

I'm using the Ansible module for Bluecat to make an authorized API call to get some information about a subnet. The response looks something like this: "result": { "changed"...
Sam Bishop's user avatar
0 votes
0 answers
3k views

curl -X GET is reaching the server with HTTP/1.1 200 OK but not producing expected output

I am using the below command: curl -X GET 'https://<my_account>.atlassian.net/rest/api/3/project/search' This returns "header" information indicating that that command was successful:...
Scouse_Bob's user avatar
1 vote
0 answers
115 views

Non-polling method of being notified of user activity after given idle time on desktop systems

There are already many questions similar to this but all the ones I could find have answers that suggest polling methods (1, 2) or seem like extreme hacks (3), so I want to ask the same question but ...
smheidrich's user avatar
1 vote
1 answer
3k views

TypeError: __init__() missing 1 required positional argument: 'get_response ,Making Dajngo API endpoints & exposing it?

File "/home/Desktop/booklib/env/lib/python3.8/site-packages/rest_framework/authentication.py", line 126, in authenticate self.enforce_csrf(request) File "/home/Desktop/booklib/env/...
Vivek Yadav's user avatar

15 30 50 per page
1
2 3 4 5 6