Skip to content

Instantly share code, notes, and snippets.

View alissonmarcs's full-sized avatar

Alisson alissonmarcs

  • São Bernardo do Campo, São Paulo, Brasil
  • 15:13 (UTC -03:00)
  • LinkedIn in/alissonmarcs
View GitHub Profile
@dianjuar
dianjuar / i3-shortcuts-screenshot.md
Last active July 29, 2025 08:30
My i3 shortcuts to take screenshots

Requirements

  • maim
  • xclip

Set-up

Set this on your i3 config file ~/.i3/config

# Screenshots

Introduction to web application security

Section 1: Why is Application Security Important?

Application security is a unique and challenging undertaking. It is important to stress that it is absolutely critical in today's world. Applications that manage valuable data are increasingly exposed to potential attackers. 

Security Breaches and Vulnerabilities

The critical nature of application security in today's world is evinced daily in the news. Every day brings news of a newly-discovered vulnerability in popular software or operating systems, a new style of attack that results in the successful breaching of an organization's systems, the discovery of malware in government computer systems...a seemingly endless stream of "bad news." Indeed, such news will never end. The motivation for many attacks now is financial, and an attacker with a profit motive will not simply go away. We will briefly examine a few examples of disclosed vulnerabilities and breaches of systems that were made possible by inadequ

@JankDev
JankDev / Object.cpp
Created March 23, 2019 22:46
Polymorphism C++
#include <string>
#include <cstring>
#include <typeinfo>
#include <iostream>
#include <list>
#include <vector>
using namespace std;
class Object{
@euikook
euikook / trust-the-certificate-at-the-os-level.md
Created October 8, 2018 05:02
Trust the certificate at the OS level

Trust the certificate at the OS level

Ubuntu

cp certs/domain.crt /usr/local/share/ca-certificates/myregistrydomain.com.crt
update-ca-certificates

RED HAT ENTERPRISE LINUX

@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active August 17, 2025 10:12
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@xirixiz
xirixiz / Set up GitHub push with SSH keys.md
Last active August 8, 2025 17:29 — forked from developius/README.md
Set up GitHub push with SSH keys

SSH keypair setup for GitHub (or GitHub/GitLab/BitBucket, etc, etc)

Create a repo.

Make sure there is at least one file in it (even just the README.md)

Generate a SSH key pair (private/public):

ssh-keygen -t rsa -C "[email protected]"
@sandor-nemeth
sandor-nemeth / PropertyLogger.java
Last active June 20, 2025 09:00
Spring Boot - Log all configuration properties on application startup
package io.github.sandornemeth.spring;
import java.util.Arrays;
import java.util.stream.StreamSupport;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.context.event.EventListener;
import org.springframework.core.env.AbstractEnvironment;
Basic
=====
[Shift]+[Mod]+[Enter] - launch terminal.
[Mod]+[b] - show/hide bar.
[Mod]+[p] - dmenu for running programs like the x-www-browser.
[Mod]+[Enter] - push acive window from stack to master, or pulls last used window from stack onto master.
[Mod] + [j / k] - focus on next/previous window in current tag.
@kekru
kekru / add CA cert on CentOS Debian Ubuntu.md
Last active July 30, 2025 02:13
Add CA cert to local trust store on CentOS, Debian or Ubuntu
  • Open a webpage that uses the CA with Firefox
  • Click the lock-icon in the addressbar -> show information -> show certificate
  • the certificate viewer will open
  • click details and choose the certificate of the certificate-chain, you want to import to CentOS
  • click "Export..." and save it as .crt file
  • Copy the .crt file to /etc/pki/ca-trust/source/anchors on your CentOS machine
  • run update-ca-trust extract
  • test it with wget https://thewebsite.org