Skip to content

Instantly share code, notes, and snippets.

View jdenoy's full-sized avatar
🏠
Working from home

Johan Denoyer jdenoy

🏠
Working from home
View GitHub Profile
###############################################################################
# Copyright 2012 Jakub Jirutka. All rights reserved.
#
# "THE KOFOLA-WARE LICENSE" (Revision 1):
# Jakub Jirutka originally wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a Kofola in return. <jakub@jirutka.cz>
#
###############################################################################
@jdenoy
jdenoy / proc_swap_list.sh
Created June 7, 2014 09:32
List process' swap usage on linux
#! /bin/sh
for file in /proc/*/status ; do awk '/VmSwap|Name/{printf $2 " " $3}END{ print ""}' $file; done | sort -k 2 -n -r | less

Keybase proof

I hereby claim:

  • I am jdenoy on github.
  • I am jdenoy (https://keybase.io/jdenoy) on keybase.
  • I have a public key ASC_Vmac5VaBcFAIcGinbV1fcsW-w0C5ANlo3ZMmFdF8jwo

To claim this, I am signing this object:

--- common.h
+++ ../common.h
@@ -179,10 +179,10 @@
/* following lines are copy from unistd.h in Linux for avoidance warnings in compilation */
#if defined(HAVE_SETRESGID) && !defined(_GNU_SOURCE)
-extern int setresgid (__uid_t __ruid, __uid_t __euid, __uid_t __suid);
+extern int setresgid (uid_t __ruid, uid_t __euid, uid_t __suid);
#endif
#if defined(HAVE_SETRESUID) && !defined(_GNU_SOURCE)
@jdenoy
jdenoy / gist:7599962d48b9ee7282917ce1914821f7
Created May 3, 2024 08:55
Find latest steampipe plugins version hosted on the hub
select name,tags,create_time from steampipe_registry_plugin_version where tags::json->>4 ='latest' order by update_time desc