Skip to content

Instantly share code, notes, and snippets.

1dal

  • ミッドガル, 127.0.0.1
Block or report user

Report or block 1dal

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@1dal
1dal / gist:730133a5717bc190d15d4f0c5c7f96e6
Created Apr 18, 2018
Download Docker image with CURL
View gist:730133a5717bc190d15d4f0c5c7f96e6
#!/usr/bin/env bash
# taken from https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh
set -eo pipefail
# hello-world latest ef872312fe1b 3 months ago 910 B
# hello-world latest ef872312fe1bbc5e05aae626791a47ee9b032efa8f3bda39cc0be7b56bfe59b9 3 months ago 910 B
# debian latest f6fab3b798be 10 weeks ago 85.1 MB
View gist:2d118a9d8833d90a8de73c17800c4e1e
KEYBINDINGS
byobu keybindings can be user defined in /usr/share/byobu/keybindings/ (or within .screenrc if byobu-export was used). The common key bindings
are:
F2 - Create a new window
F3 - Move to previous window
F4 - Move to next window
View Client.php
<?php
use Phergie\Irc\Client\React\Client as DefaultClient;
use Clue\React\Socks\Client as SocksClient;
use React\Socket\Connector;
use React\Socket\SecureConnector;
final class Client extends DefaultClient
{
protected function getSecureConnector($connection)
@1dal
1dal / google-chrome.desktop
Created May 31, 2017 — forked from hronak/google-chrome.desktop
Hardening Google Chrome on Fedora 24
View google-chrome.desktop
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=Google Chrome
Comment=Access the internet
Exec=/opt/google/chrome/google-chrome --disable-local-storage --disable-speech-api --disable-sync --disable-webgl --disk-cache-dir=/dev/null --disk-cache-size=0 --media-cache-dir=/dev/null --media-cache-size=0 --dns-prefetch-disable --disable-extensions --no-default-browser-check --no-displaying-insecure-content --no-experiments --no-pings --no-referrers --ssl-version-min=tls1.2 --disable-smooth-scrolling --disable-translate --no-proxy-server --process-per-site --disable-preconnect --disable-remote-fonts --disable-reading-from-canvas --disable-breakpad --disable-bundled-ppapi-flash --disable-default-apps --disable-databases --disable-dinosaur-easter-egg --mark-non-secure-as --disable-notifications --disable-infobars --disable-site-engagement-service --enable-strict-mixed-content-checking --homepage="https://start.duckduckgo.com/"
Icon=google-chrome
Terminal=false
@1dal
1dal / tracking.js
Created Apr 28, 2017 — forked from bwall/tracking.js
My botnet tracking panel converted to reference a static gist as a demonstration. I'm new to nodejs, so feel free to point out any glaring issues.
View tracking.js
var blessed = require('blessed');
var contrib = require('blessed-contrib');
var screen = blessed.screen();
var request = require("request");
// You need to install dependencies:
// npm install blessed blessed-contrib
// Constants
View keePassX-brute-force.rb
#!/usr/bin/env ruby
#################################################
# simple Keepassx database brute force #
# Coded by: KING SABRI #
# Requirements : #
# gem install keepassx #
#-----------------------------------------------#
# Note about gem installation: #
# if you got error during keepassx installation #
# make sure ruby-devel or ruby-dev is installed #
View crack recaptcha.md

#Crack reCAPTCHA

Dependencies

pip install pillow
brew install libpng
brew install libjpeg
pip install PIL --allow-external PIL --allow-unverified PIL
@1dal
1dal / 00.howto_install_phantomjs.md
Created Sep 9, 2016 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu
View 00.howto_install_phantomjs.md

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@1dal
1dal / strapwrap.sh
Created Aug 11, 2016 — forked from DazWorrall/strapwrap.sh
Little script to create a minimal ubuntu using debootstrap and bring it up to date
View strapwrap.sh
#!/bin/bash
set -e
DEFAULT_PACKAGES=ssh,language-pack-en-base
DEFAULT_COMPONENTS=main,universe
DEBOOTSTRAP=/usr/sbin/debootstrap
DEFAULT_MIRROR=http://archive.ubuntu.com/ubuntu
DEFAULT_VARIANT=minbase
MIRROR=${STRAP_MIRROR:-$DEFAULT_MIRROR}
ROOTFS=$1
@1dal
1dal / clone-all-github-repos.md
Last active Jul 15, 2016
Clone all github repositories (users or organizations)
View clone-all-github-repos.md

How to: Clone all github repositories from selected profile

Usage

Just run code below in your terminal:

php -r 'foreach(json_decode(shell_exec("curl -s https://api.github.com/".readline("Target(\"orgs/twitter\", \"users/onedal88\" etc.): ")."/repos?per_page=31337")) as $r)system("git clone {$r->clone_url}");'
You can’t perform that action at this time.