Skip to content

Instantly share code, notes, and snippets.

View debian.patch
diff --git a/debian/control b/debian/control
--- a/debian/control
+++ b/debian/control
@@ -8,11 +8,10 @@ Uploaders:
Standards-Version: 4.3.0
Build-Depends:
mercurial (>= 4.7),
- python,
python3,
debhelper (>= 10),
View execlp2.c
/*
Example from
https://chat.stackexchange.com/transcript/message/59383566#59383566
You may use tput. Examples: tput >/dev/null (status == 2, usage
error), TERM=foo tput >/dev/null (status == 3, no information for
the terminal type), tput foo >/dev/null (status == 4, unknown
capability). It can also return 1, which POSIX says is
"unspecified" and historically used to tell the terminal doesn't
have the specified capability (e.g. TERM=vt100 tput setaf
View execlp2.strace
execve("./execlp2", ["./execlp2"], 0x7ffefe2ae0d0 /* 78 vars */) = 0
brk(NULL) = 0x5583216d4000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=265036, ...}) = 0
mmap(NULL, 265036, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd1bfbc8000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@n\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1839792, ...}) = 0
View popen3.c
/* -- https://chat.stackexchange.com/transcript/message/59383566#59383566 */
/* -- You may use tput. Examples: tput >/dev/null (status == 2, usage */
/* -- error), TERM=foo tput >/dev/null (status == 3, no information for */
/* -- the terminal type), tput foo >/dev/null (status == 4, unknown */
/* -- capability). It can also return 1, which POSIX says is */
/* -- "unspecified" and historically used to tell the terminal doesn't */
/* -- have the specified capability (e.g. TERM=vt100 tput setaf */
/* -- >/dev/null); notably, in this case the exit status is ≠ 0, but no */
View execlp2.c
/*
Example from
https://chat.stackexchange.com/transcript/message/59383566#59383566
You may use tput. Examples: tput >/dev/null (status == 2, usage
error), TERM=foo tput >/dev/null (status == 3, no information for
the terminal type), tput foo >/dev/null (status == 4, unknown
capability). It can also return 1, which POSIX says is
"unspecified" and historically used to tell the terminal doesn't
have the specified capability (e.g. TERM=vt100 tput setaf
View execlp2.c
/*
Example from
https://chat.stackexchange.com/transcript/message/59383566#59383566
You may use tput. Examples: tput >/dev/null (status == 2, usage
error), TERM=foo tput >/dev/null (status == 3, no information for
the terminal type), tput foo >/dev/null (status == 4, unknown
capability). It can also return 1, which POSIX says is
"unspecified" and historically used to tell the terminal doesn't
have the specified capability (e.g. TERM=vt100 tput setaf
View arak.c
/*
//From https://stackoverflow.com/a/2667166/350713
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
int main()
{
int number, statval;
View test.htm
<html><body>
Problem strings: <br><br>
“the Company” <br><br>
President – <br><br>
Company’s <br><br>
</body></html>
View htmlheader.txt
<html><body><p align="center" class="MsoNormal" style="background:
white; margin: 0in 0in 0pt; text-align: center; line-height:
normal;"><f ont face="Calibri"><b><span lang="EN-IN" style='color:
rgb(34, 34, 34); font-size: 16pt; mso-bidi-font-size: 12.0pt;
mso-ansi-language: EN- IN; mso-bidi-font-family: "Times New Roman";
mso-fareast-font-family: "Times New Roman"; mso-fareast-language:
EN-IN; mso-ascii-font-family: Calibri; mso-hansi-font-family:
Calibri;'><img alt="Logo"
src="https://linkintime.co.in/website/gogreen/Alkemlogo.JPG"></span></b></font></p>
View top.2021.08.08.txt
top - 22:28:11 up 3 days, 6:33, 18 users, load average: 20.87, 12.74, 5.64
Tasks: 451 total, 1 running, 450 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.8 us, 1.9 sy, 0.0 ni, 90.4 id, 0.0 wa, 0.0 hi, 2.9 si, 0.0 st
MiB Mem : 15941.0 total, 558.5 free, 14283.7 used, 1098.9 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 799.5 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
12230 faheem 20 0 3734160 867044 78104 S 0.0 5.3 62:13.88 chromium
1021 faheem 20 0 3385864 668748 113952 S 6.2 4.1 182:32.70 Web Content
7635 faheem 20 0 3260252 577828 51804 S 0.0 3.5 27:01.16 Web Content