Skip to content

Instantly share code, notes, and snippets.

View mariansam's full-sized avatar
🐷
NullPointerException

Marian Šámal mariansam

🐷
NullPointerException
View GitHub Profile
@domnikl
domnikl / LICENSE
Last active September 20, 2023 11:58
C function to dump memory
Copyright 2018 Dominik Liebler
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR O
@mjmeyer
mjmeyer / http-cat-error-pages.conf
Created February 17, 2016 22:58
Http.cat erorr pages for nginx
# ---------- Status Cats Error Pages!!! via: https://http.cat/ ---------
#
# requires that a dns resolver be set for nginx as in: resolver 127.0.0.1;
# typically uses dnsmasq for 127.0.0.1 resolver
#
# Usage:
# place this file somewhere accessible to nginx. /etc/nginx/snippets is a decent choice.
# then inside the server block(s) you want cat themed error status responses do:
# include snippets/http-cat-error-pages.conf
#
@gkbrk
gkbrk / lolcat.asm
Created July 27, 2016 13:26
Lolcat clone in x64 assembly
section .data
char_buffer db 0
section .text
global _start
_start:
mov r12, 0
.loop:
call read_char
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active July 2, 2024 00:31
Hyperlinks in Terminal Emulators
@robinvandernoord
robinvandernoord / json.py
Created February 12, 2019 12:10
JSON parser in Python for r/badcode
kpgng1 = (1,)
def Return(it):
print(it)
def cnvrttstrng2(it):
return str(it)
class parse_json:
str = ''
def __init__(s, str):
s.str = str
mnitm3 = s.str
@superjojo140
superjojo140 / postgresql_arch_tutorial.md
Created December 4, 2019 09:56
Setup local PostgreSQL and pgAdmin on ArchLinux

Working with local PostgreSQL and pgAdmin on ArchLinux

Daily Usage

Start postgreSQL

$ sudo systemctl start postgresql
@SvizelPritula
SvizelPritula / while.js
Created March 13, 2020 12:18
string_count.js
function stringCount(s) {
var spacec = 0;
var exclc = 0;
var quotec = 0;
var hashtagc = 0;
var usdc = 0;
var precentc = 0;
var andc = 0;
var quotesc = 0;
var brackc = 0;