Skip to content

Instantly share code, notes, and snippets.

View xdanielsb's full-sized avatar

Daniel xdanielsb

View GitHub Profile
@xdanielsb
xdanielsb / code.c
Created March 9, 2021 08:11
Buffer overflow i386 architectures
#include<stdio.h>
#include<stdlib.h>
/*
@xdanielsb
run with
$ gcc -g -m32 -mtune=i386 -o run code.c
$ ./run
*/
void f1(){
@xdanielsb
xdanielsb / regex timestamp log server
Created March 5, 2021 10:30
Get timespams log file
#include<bits/stdc++.h>
using namespace std;
/*
* @author: xdanielsb
* get timestamps log file
*/
int main(){
ifstream file("redh324-p.log");
string str;
smatch m;
xmodmap -e "keycode 26 = period greater e E egrave dead_caron EuroSign cent e E EuroSign cent"
@xdanielsb
xdanielsb / git add-commit
Created October 22, 2019 10:14
GIt commit add push and log
git config --global alias.add-commit '!git add -A && git log --pretty=oneline --graph --abbrev-commit && git commit'
git add-commit -m "Create macro and debug a var."
xmodmap -e "keycode 90 = Right KP_0 Left KP_0 Right KP_0"
xmodmap -e "keycode 66= a A a A aacute Aacute a A"
@xdanielsb
xdanielsb / starwars.sh
Last active July 24, 2020 12:24
Episode IV
telnet towel.blinkenlights.nl
@xdanielsb
xdanielsb / Install wireshark debian jessy
Created August 20, 2018 15:21
Commands to install wireshark
sudo add-apt-repository ppa:wireshark-dev/stable
sudo apt-get update
sudo apt-get install wireshark
sudo dpkg-reconfigure wireshark-common
sudo adduser $USER wireshark
# Now open wireshark
@xdanielsb
xdanielsb / Change names mulitple files in a folder
Last active August 20, 2018 15:19
RenameFilesUnixCommandLine
ls | cat -n | while read n f; do mv "$f" "file-$n.jpg"; done
'use strict'
let wrapper = "subdomain"
if(document.documentURI.includes(wrapper)){
document.getElementById("Header").style.display="none"
}
# install dependencies
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y cmake
sudo apt-get install -y libgtk2.0-dev
sudo apt-get install -y pkg-config
sudo apt-get install -y python-numpy python-dev
sudo apt-get install -y libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install -y libjpeg-dev libpng-dev libtiff-dev libjasper-dev