Skip to content

Instantly share code, notes, and snippets.

View notgull's full-sized avatar
🐟
DevRel

John Nunley notgull

🐟
DevRel
View GitHub Profile
@baines
baines / xkeyexample.c
Last active September 19, 2023 20:53
simple xlib key example
#include <stdio.h>
#include <locale.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
int main(void){
setlocale(LC_ALL, "");
Display* dpy = XOpenDisplay(NULL);
/**
* Check for raising a signal before looping:
* - OSX 10.14 -- *SIGALARM* (with USE__RAISE/USE__PTHREAD_KILL), exit cleanly with USE__KILL
* - OSX 10.11 -- exit cleanly (with USE__RAISE/USE__PTHREAD_KILL/USE__KILL)
*/
#include <sys/event.h>
#include <unistd.h>
#include <assert.h>
#include <signal.h>
@sundowndev
sundowndev / GoogleDorking.md
Last active July 27, 2024 02:11
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"