This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const timeout = (ms) => new Promise(resolve => setTimeout(resolve, ms)); | |
| const randomInteger = (min, max) => Math.floor(Math.random() * (max - min + 1)) + min; | |
| const contextMenuClick = (element) => element.dispatchEvent(new MouseEvent('contextmenu', { | |
| bubbles: true, | |
| cancelable: true, | |
| view: window, | |
| })) | |
| const messages = () => [...document.querySelectorAll('[id^=message].ActionMessage')] | |
| .filter(e => e.textContent.includes(' joined the group')); | |
| const deleteMessage = async (e) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git filter-repo --force --replace-refs delete-no-add --commit-callback ' | |
| if commit.author_email == b"old_email@domain": | |
| commit.author_email = b"new_private_email@domain" | |
| commit.author_name = b"username" | |
| commit.committer_email = b"new_private_email@domain" | |
| commit.committer_name = b"username" | |
| ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $filename = "ip.list"; | |
| $prefix = "2a04:5200:8"; | |
| function generate_ipv6($prefix){ | |
| function generate_ipv6_block() { | |
| $seed = str_split('1234567890abcdef'); | |
| shuffle($seed); | |
| $block = join("", $seed); // Symbol array to string | |
| $block = substr($block, 0, 4); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| source "https://rubygems.org" | |
| gem 'taps', git: 'git://github.com/eric1234/taps.git', branch: 'patch-1' | |
| gem 'mysql2' | |
| gem 'sqlite3' | |
| gem 'pg' | |
| gem 'rack','1.0.1' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { "name": "leroy", "kills": 25, "banned": false }, | |
| { "name": "jenkins", "kills": 30, "banned": false }, | |
| { "name": "cheater", "kills": 999, "banned": true }, | |
| { "name": "n00b", "kills": 0, "banned": false } | |
| ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [package] | |
| name = "tungstenite-example" | |
| version = "0.0.1" | |
| authors = ["Fedcomp"] | |
| edition = "2018" | |
| [dependencies] | |
| tokio-tungstenite = { version = "0.10.1", features = ["tls"] } | |
| tokio = { version = "0.2.21", features = ["full"] } | |
| futures = "0.3.5" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function get_web_page( $url ){ | |
| $options = array( | |
| CURLOPT_RETURNTRANSFER => true, // return web page | |
| CURLOPT_HEADER => false, // don't return headers | |
| CURLOPT_FOLLOWLOCATION => true, // follow redirects | |
| CURLOPT_ENCODING => "", // handle all encodings | |
| CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17", // who am i | |
| CURLOPT_AUTOREFERER => true, // set referer on redirect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| USER_ID=1000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| source "https://rubygems.org" | |
| git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } | |
| # gem "rails" | |
| gem 'rails', '~> 5.0' | |
| gem 'pry-byebug' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker-compose --run --rm ruby test.rb |
NewerOlder