Skip to content

Instantly share code, notes, and snippets.

View brokep's full-sized avatar
💭
hardening the internet

@brokep brokep

💭
hardening the internet
View GitHub Profile
<a rel="me" href="https://infosec.exchange/@brokep">Mastodon</a>
@brokep
brokep / follow_test.py
Created January 10, 2024 04:29 — forked from lon9/follow_test.py
Function to increase follower on twitter
#キーワードで自動フォロー1000人
def autoFollow(api, query):
requestcount=1
global followCount
global wordCount
#リクエストが50回以下(検索人数1000人)で繰り返す
while requestcount<51:
print 'Do request %i' %requestcount
users = api.search_users(query, 20, requestcount)
requestcount+=1
@brokep
brokep / code.py
Created January 10, 2024 04:29 — forked from ayutaz/code.py
import tweepy
import config
# OAuth認証
auth = tweepy.OAuthHandler(config.consumer_key,
config.consumer_secret)
auth.set_access_token(config.access_token,
config.access_token_secret)
#利用制限にひっかかた時に必要時間待機する
/*
* Companion code for article at http://toddhayton.com/2019/02/12/revisiting-taleo-with-puppeteer/
*
* Setup:
* $ mkdir scraper/
* $ cd scraper/
@brokep
brokep / DIY-guide-to-become-an-alone-long-time-bughunter-for-ordinary-people.txt
Created June 8, 2023 00:41
DIY-guide-to-become-an-alone-long-time-bughunter-for-ordinary-people.txt
______ _ _ _ _ _ __ _ _
| ___ \ | | | | ( ) | (_)/ _| | | | |
| |_/ /_ _ __ _| |__ _ _ _ __ | |_ ___ _ __|/ ___ | |_| |_ ___ ______ ___| |_ _ _| | ___
| ___ \ | | |/ _` | '_ \| | | | '_ \| __/ _ \ '__| / __| | | | _/ _ \______/ __| __| | | | |/ _ \
| |_/ / |_| | (_| | | | | |_| | | | | || __/ | \__ \ | | | || __/ \__ \ |_| |_| | | __/
\____/ \__,_|\__, |_| |_|\__,_|_| |_|\__\___|_| |___/ |_|_|_| \___| |___/\__|\__, |_|\___|
__/ | __/ |
|___/ |___/
A DIY guide to become an alone long time bughunter for ordinary people.
--- a/src/script/interpreter.cpp
+++ b/src/script/interpreter.cpp
@@ -504,6 +504,14 @@ bool EvalScript(std::vector<std::vector<unsigned char> >& stack, const CScript&
return set_error(serror, SCRIPT_ERR_MINIMALDATA);
}
stack.push_back(vchPushValue);
+ if ((flags & SCRIPT_VERIFY_DISCOURAGE_UPGRADABLE_NOPS) && opcode == OP_FALSE) {
+ auto pc_tmp = pc;
+ opcodetype next_opcode;
+ valtype dummy_data;
Docker: Tag Image - Build with Tag, Remove, Re-Tag - ShellHacks
3-4 minutes
The good practice is to tag Docker images with useful tags, e.g. version, intended destination (prod or staging), stability or any other information that is useful when deploying the application in different environments.
In this note i will show how to tag Docker images with one or multiple tags during a build.
Also i will show how to tag already existent Docker image and how to change (retag) or remove tags.
Cool Tip: Enter a running Docker container and start a bash session! Read More →

Notes while learning Docker

These notes are derived from my efforts in working through The Docker Book: Containerization is the new virtualization written by James Turnbull. I highly recommend getting a copy of Jame's book which is an $8 dollar e-book on Amazon.

The following notes are my own and simply an interpretation of what James has written. Caveat lector.

Ensuring Docker is ready

$ docker info
@brokep
brokep / Vagrantfile
Created January 13, 2021 05:58 — forked from echo-devnull/Vagrantfile
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos/7"
config.ssh.insert_key = false
@brokep
brokep / Vagrantfile
Created January 13, 2021 05:58 — forked from echo-devnull/Vagrantfile
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos/7"
config.ssh.insert_key = false