Skip to content

Instantly share code, notes, and snippets.

View andy5995's full-sized avatar

Andy Alt andy5995

View GitHub Profile
@andy5995
andy5995 / gist:ea3409d35036e16f9954918bcd27ffa6
Last active June 30, 2019 18:03
rm.c (GNU coreutils 8.26)
/* 'rm' file deletion utility for GNU.
Copyright (C) 1988-2016 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
/* Getopt for GNU.
Copyright (C) 1987-2019 Free Software Foundation, Inc.
This file is part of the GNU C Library and is also part of gnulib.
Patches to this file should be submitted to both projects.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
andy@oceanus:/usr/lib/x86_64-linux-gnu$ ls -al libmenu*
-rw-r--r-- 1 root root 66310 Feb 11 11:17 libmenu.a
lrwxrwxrwx 1 root root 22 Nov 3 2017 libmenu-cache.so.3 -> libmenu-cache.so.3.2.0
-rw-r--r-- 1 root root 34656 Nov 3 2017 libmenu-cache.so.3.2.0
lrwxrwxrwx 1 root root 12 Feb 11 11:17 libmenu.so -> libmenu.so.6
lrwxrwxrwx 1 root root 14 Feb 11 11:17 libmenu.so.5 -> libmenu.so.5.9
-rw-r--r-- 1 root root 39184 Feb 11 11:17 libmenu.so.5.9
lrwxrwxrwx 1 root root 14 Feb 11 11:17 libmenu.so.6 -> libmenu.so.6.1
-rw-r--r-- 1 root root 39168 Feb 11 11:17 libmenu.so.6.1
-rw-r--r-- 1 root root 67238 Feb 11 11:17 libmenuw.a
--------------------------------------------------------------------------------
MEGAGLEST SYSTEM REPORT 0.3.4
Wed, 12 Jun 2019 20:28:09 +0000
--------------------------------------------------------------------------------
***** Operating system *********************************************************
* Distribution: Debian
* Release: 10
# generated by Slic3r 1.3.0 on 2019-01-08 15:21:08
adaptive_slicing = 0
adaptive_slicing_quality = 75%
avoid_crossing_perimeters = 1
bed_shape = 0x0,120x0,120x120,0x120
bed_temperature = 50
before_layer_gcode =
between_objects_gcode =
bottom_infill_pattern = rectilinear
bottom_solid_layers = 3
fn main() {
let days = 12;
let rev_cumulative_day = 0;
let gift = [
"partridge in a pear tree",
"turtle doves",
"French hens",
"calling birds",
"golden rings",
*ERROR* [2018-11-07 17:40:51] In [/home/andy/local/MegaGlest/megaglest-source-3.13.0/source/glest_game/network/client_interface.cpp::updateFrame Line: 1223] error retrieving nmtQuit returned false!
Game unique identifier is: 93735c3e-e2e6-11e8-8b11-9133217d34a0
In [/home/andy/local/MegaGlest/megaglest-source-3.13.0/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5875] Error detected: signal 11:
Error saved to logfile [/home/andy/.megaglest/error.log]
*ERROR* [2018-11-07 18:00:50] In [/home/andy/local/MegaGlest/megaglest-source-3.13.0/source/glest_game/main/main.cpp::handleRuntimeError Line: 646] [In [/home/andy/local/MegaGlest/megaglest-source-3.13.0/source/glest_game/main/main.cpp::handleSIGSEGV Line: 5875] Error detected: signal 11:
] gameInitialized = 1, program = 0x556ff92fd7a0
*ERROR* [2018-11-07 18:00:51] In [/home/andy/local/MegaGlest/megaglest-source-3.13.0/source/glest_game/main/main.cpp::handleRuntimeError Line: 665] [In [/home/andy/local/MegaGlest/megaglest-source-3.13.0/source/glest_game/main
andy@oceanus:~/prog/rust$ cargo bloat --bin hello-world.rs
Compiling ...
Error: failed to execute 'cargo'. It should be in the PATH.
andy@oceanus:~/prog/rust$ cargo bloat --bin hello-world
Compiling ...
Error: failed to execute 'cargo'. It should be in the PATH.
@andy5995
andy5995 / BOOGERS.BAS
Created November 2, 2018 20:11
source code for BOOGERS by Mitch Teich 1982
1 REM NOTHING
2 REM
3 REM
5 REM DATNOIDS Copyright (c) 1982 By Casey Roche
8 REM
9 SCREEN 0,0,0
10 KEY OFF:WIDTH 80:COLOR 0,1,0:CLS:PLAY"mb":COLOR 4,0:LOCATE 24,1:PRINT" "+STRING$(78,219):SOUND 1000,1:PRINT" 000000 0000 00000000 00 00 000000 00000000 000000 00000":SOUND 2000,1
80 PRINT" 0222220 022220 02222220 02 20 02222220 02222220 0222220 0222220":SOUND 1000,1:PRINT" 02 20 02 20 22 020 20 02 20 22 02 20 0220 ":SOUND 2000,1
120 PRINT" 02 20 02 20 22 0220 20 02 20 22 02 20 0220 ":SOUND 1000,1:PRINT" 02 20 02222220 22 0202020 02 20 22 02 20 0220 ":SOUND 2000,1
160 PRINT" 02 20 02 20 22 02 0220 02 20 22 02 20 0220":SOUND 1000,1:PRINT" 02 20 02 20 22 02 020 02 20 22 02 20 0220":SOUND 2000,1
@andy5995
andy5995 / gist:6bf19702fac906600e2c7e4b54bb32ce
Created September 6, 2018 23:52
csv, all detected by coverity
CID,Type,Impact,Status,First Detected,Owner,Classification,Severity,Action,Component,Category,File,Function
317496,Parse warning,Low,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Parse warnings,/db/mp_fopen.c,
317495,Parse warning,Low,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Parse warnings,/db/db_join.c,
317494,Various,Medium,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Various,/db/txn.c,CDB_txn_checkpoint
317493,Use after free,High,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Memory - illegal accesses,/db/log.c,CDB___log_find
317492,Uninitialized scalar variable,High,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Uninitialized variables,/db/mp_fopen.c,CDB___memp_fopen
317491,Parse warning,Low,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Parse warnings,/db/qam_rec.c,
317490,Parse warning,Low,New,08/28/18,Unassigned,Unclassified,Unspecified,Undecided,Other,Parse warnings,/db/hash_auto.c,
317