Skip to content

Instantly share code, notes, and snippets.

View tin-z's full-sized avatar
:octocat:
🔥 ⌨️

Altin (tin-z) tin-z

:octocat:
🔥 ⌨️
View GitHub Profile
@tin-z
tin-z / tut.md
Created May 20, 2024 08:33 — forked from rain1024/tut.md
Install pdflatex ubuntu

PdfLatex is a tool that converts Latex sources into PDF. This is specifically very important for researchers, as they use it to publish their findings. It could be installed very easily using Linux terminal, though this seems an annoying task on Windows. Installation commands are given below.

  • Install the TexLive base
sudo apt-get install texlive-latex-base
  • Also install the recommended and extra fonts to avoid running into the error [1], when trying to use pdflatex on latex files with more fonts.
@tin-z
tin-z / README.md
Created January 10, 2024 22:24 — forked from mahemoff/README.md
Vim Terminal Mode - A short introduction

Vim has a Terminal Mode!

Since v8.1 (May 2018), Vim has shipped with a built-in terminal. See https://vimhelp.org/terminal.txt.html or type :help terminal for more info.

Why use this? Mainly because it saves you jumping to a separate terminal window. You can also use Vim commands to manipulate a shell session and easily transfer clipboard content between the terminal and files you're working on.

Key Bindings

@tin-z
tin-z / docker_gcc-4.9.md
Created December 17, 2023 22:30 — forked from rutsky/docker_gcc-4.9.md
GCC 4.9 installation in Docker container
$ sudo docker pull ubuntu
$ sudo docker  run -t -i ubuntu:14.04 /bin/bash
root@856b6aa801af:/# apt-get update
Ign http://archive.ubuntu.com trusty InRelease
Ign http://archive.ubuntu.com trusty-updates InRelease
Ign http://archive.ubuntu.com trusty-security InRelease
Get:1 http://archive.ubuntu.com trusty Release.gpg [933 B]
Get:2 http://archive.ubuntu.com trusty-updates Release.gpg [933 B]
Get:3 http://archive.ubuntu.com trusty-security Release.gpg [933 B]
@tin-z
tin-z / append_to_bashrc.sh
Created November 30, 2023 09:23
bash alias for msfrpcd autostarter
alias msfrpcd_startdaemon='function _setMsfrpcd(){ if [ "$#" != 2 ]; then echo "[x] Wrong arguments, usage: $0 <ip> <password>"; return; fi; cmd="msfrpcd -a $1 -P $2"; tmp123=`ps aux | grep -e "[0-9] msfrpcd" -e "[0-9] /usr/bin/msfrpcd"`; if [ -z "$tmp123" ]; then nohup bash -c "$cmd" > /tmp/msfrpcd.out & disown; fi; }; _setMsfrpcd'
msfrpcd_startdaemon 127.0.0.1 password
@tin-z
tin-z / nmapazzo.md
Last active November 10, 2023 23:51
nmapazzo.md

ping my host:

Don’t Ping                        -PN     do port scan without checking if host is up by sending icmp
Perform a Ping Only Scan          -sP     do ping without port scan
TCP SYN Ping                      -PS     (a) you can also specify ports "-PS[port1,port1,..]", default port 80
TCP ACK Ping                      -PA     // (a)
UDP Ping                          -PU     // (a)
SCTP INIT Ping                    -PY     // (a)
ICMP Echo Ping                    -PE     (b) do ping without port scan
@tin-z
tin-z / normcore-llm.md
Created November 8, 2023 22:54 — forked from veekaybee/normcore-llm.md
Normcore LLM Reads
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" CSCOPE settings for vim
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"
" This file contains some boilerplate settings for vim's cscope interface,
" plus some keyboard mappings that I've found useful.
"
" USAGE:
" -- vim 6: Stick this file in your ~/.vim/plugin directory (or in a
" 'plugin' directory in some other directory that is in your
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python
# Distributed under the MIT License (MIT)
# Copyright (c) 2023, Altin (tin-z)
import sys
sys.path.append(".")
import r2pipe
def list_imported_functions(r2):
imported_functions = []