Skip to content

Instantly share code, notes, and snippets.

View yaci's full-sized avatar

Jacek Maciejewski yaci

View GitHub Profile
@yaci
yaci / keybase.md
Last active January 10, 2017 21:17

Keybase proof

I hereby claim:

  • I am yaci on github.
  • I am jacek (https://keybase.io/jacek) on keybase.
  • I have a public key whose fingerprint is D26D 9B72 96C6 1E13 110A 9EE5 27D6 E602 9B79 EDEB

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am yaci on github.
  • I am yaci (https://keybase.io/yaci) on keybase.
  • I have a public key whose fingerprint is C25C 1F74 D394 3906 7B3C 8180 D521 A43B 165B 3256

To claim this, I am signing this object:

@yaci
yaci / gist:2501a9d60a10b9b4d5ed1a686e4778cc
Created March 14, 2017 23:28 — forked from clintel/gist:1155906
Fenced code in bullet lists with GitHub-flavoured MarkDown??

Fenced code blocks inside ordered and unordered lists

  1. This is a numbered list.

  2. I'm going to include a fenced code block as part of this bullet:

    Code
    More Code
    
@yaci
yaci / google-drive-md5-checksum
Last active September 6, 2024 20:21
List google drive md5 checksum for all files
#!/usr/bin/python3
"""
!! IMPORTANT !!
!! READ THIS !!
In order to run this script you need python3 and pip3 installed.
You also need some additional python modules. Please run
sudo pip3 install httplib2 oauth2client
sudo pip3 install --upgrade google-api-python-client
@yaci
yaci / install-arachni-on-kali.sh
Last active May 15, 2023 23:57
Install Arachni on Kali Linux
#! /bin/bash
######
# TO DOWNLOAD THIS SCRIPT SIMPLY TYPE:
# wget bit.ly/kali-arachni
######
#arachni will be installed in $targetInstallationDirectory/$targetDirectoryName
targetInstallationDirectory="$HOME/soft"
targetDirectoryName=arachni
@yaci
yaci / Vagrantfile
Last active August 2, 2017 22:23
Vagrantfile for Arachni Scanner on Ubuntu
# -*- mode: ruby -*-
# vi: set ft=ruby :
arachniDownloadUrl = 'https://github.com/Arachni/arachni/releases/download/v1.5.1/arachni-1.5.1-0.5.12-linux-x86_64.tar.gz'
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/precise64"
config.vm.box_check_update = false
config.vm.network :forwarded_port, guest: 9292, host_ip: "127.0.0.1", host: 9292, id: "arachni", auto_correct: true
config.vm.provision :shell, privileged: false, :args => [arachniDownloadUrl], inline: <<-SHELL
@yaci
yaci / verifyIfImagesAreLoaded.js
Created August 17, 2017 22:55
Check if all images on page are loaded using JavaScript
//WARNING! May not work with some SVG images
//For some SVGs the naturalWidth/naturalHeight attributes will equal 0
//even if image is properly loaded
var allLoaded=true;
var images = document.images;
// or: var images = document.getElementsByTagName('img');
for (i=0; (i<images.length) && allLoaded; i++) {
result = images[i].complete && (typeof images[i].naturalWidth!="undefined" && images[i].naturalWidth>0);
allLoaded=allLoaded && result;
@yaci
yaci / create7zipArchive.sh
Last active August 26, 2017 00:50
Maximum compression using 7z on linux
7za a -t7z -m0=lzma2 -mx=9 -mfb=273 -md=256m -ms=on archiveName.7z inputFilesOrDir
# -md - dictionary size (256m dictionary requires 5gb+ RAM)
# -ms=on - solid archive
# to install 7z on ubuntu: apt-get install p7zip-full
@yaci
yaci / install.sh
Last active September 21, 2020 11:33
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common openssh-server
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get -y install docker-ce htop zsh
sudo docker info
sudo usermod -aG docker ubuntu