It's quite easy to catch unix signals in Qt applications. you may like to ignore or accept them.
#include <QCoreApplication>
#include <signal.h>
#include <unistd.h>| <!-- saved from http://www.cc.gatech.edu/grads/b/bhroleno/ --> | |
| <html> | |
| <title>Conway's Game of Life</title> | |
| <head> | |
| <style type="text/css"> | |
| body{ font-family: serif; font-size:1.00em; text-align: center; margin: 10px 0 30px 0; virtical-align: middle } | |
| </style> | |
| <script type="text/javascript"> | |
| var cells = new Array(40); | |
| var tmpCells = new Array(40); |
| from bs4 import BeautifulSoup | |
| import requests | |
| def getPlaylistLinks(url): | |
| sourceCode = requests.get(url).text | |
| soup = BeautifulSoup(sourceCode, 'html.parser') | |
| domain = 'https://www.youtube.com' | |
| for link in soup.find_all("a", {"dir": "ltr"}): | |
| href = link.get('href') | |
| if href.startswith('/watch?'): |
| #include "stdio.h" | |
| #include "sys/socket.h" | |
| #include "errno.h" | |
| #include "netdb.h" | |
| #include "string.h" | |
| #include "stdlib.h" | |
| int main(int argc , char **argv) | |
| { | |
| struct hostent *host; |
| package main | |
| import ( | |
| "io" | |
| "log" | |
| "net" | |
| "os" | |
| "runtime" | |
| ) |
| //DNS Query Program on Linux | |
| //Author : Silver Moon (m00n.silv3r@gmail.com) | |
| //Dated : 29/4/2009 | |
| //Header Files | |
| #include<stdio.h> //printf | |
| #include<string.h> //strlen | |
| #include<stdlib.h> //malloc | |
| #include<sys/socket.h> //you know what this is for | |
| #include<arpa/inet.h> //inet_addr , inet_ntoa , ntohs etc |
| // http://www.crankyotaku.com/2016/04/linux-programming-daemon-basics.html | |
| #include <sys/stat.h> | |
| #include <sys/types.h> | |
| #include <fcntl.h> | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| int main(int argc, char *argv[]) | |
| { |
| #!/bin/bash | |
| current="Thu Dec 25 00:00:00 2014" | |
| counter=9126 | |
| while [ $counter -le 9140 ]; do | |
| export GIT_AUTHOR_DATE="$current +0000" | |
| export GIT_COMMITTER_DATE=$GIT_AUTHOR_DATE | |
| git commit --allow-empty -m "$counter" |
| #!/bin/bash | |
| ping -c5 speedtest-nyc1.digitalocean.com | |
| ping -c5 speedtest-nyc2.digitalocean.com | |
| ping -c5 speedtest-nyc3.digitalocean.com | |
| ping -c5 speedtest-ams1.digitalocean.com | |
| ping -c5 speedtest-ams2.digitalocean.com | |
| ping -c5 speedtest-ams3.digitalocean.com | |
| ping -c5 speedtest-sfo1.digitalocean.com | |
| ping -c5 speedtest-sgp1.digitalocean.com | |
| ping -c5 speedtest-lon1.digitalocean.com |
| /* | |
| Packet sniffer using libpcap library | |
| */ | |
| #include<pcap.h> | |
| #include<stdio.h> | |
| #include<stdlib.h> // for exit() | |
| #include<string.h> //for memset | |
| #include<sys/socket.h> | |
| #include<arpa/inet.h> // for inet_ntoa() |