Questions tagged [api]
The api tag has no summary.
83 questions
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 ...
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 ...
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 ...
1
vote
2
answers
120
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 ...
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 ...
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="...
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?...
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 ...
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 ...
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 ...
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 ...
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"...
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:...
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 ...
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/...