Reset it to previous commit -
git reset --hard HEAD^
Force a push -
git push --force
| import requests | |
| data = "hi" | |
| response = requests.post("https://httpbin.org/post", | |
| data=json.dumps(data) | |
| headers={"Content-import requests | |
| import json | |
| data = { |
| <p id="q" class="question">Will you be my valentine, Devu ?</p> | |
| <div class="button-container"> | |
| <img id="panda" src="https://media.tenor.com/LxTbPto0fdoAAAAM/bubu-rose-bubu-sweet.gif"> | |
| <div class="button-container"> | |
| <button id="yesButton" class="btn">Yes</button> | |
| <button id="noButton" class="btn btn-no">No</button> | |
| </div> | |
| </div> |
| contracts/MyDAO.sol | |
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity ^0.8.0; | |
| contract MyDAO { | |
| mapping(address => uint256) private _balances; | |
| mapping(address => bool) private _hasInitialized; | |
| uint256 public specialTokens = 6000; | |
| uint256 public nextProposalId; | |
| mapping(uint256 => Proposal) public proposals; |
Reset it to previous commit -
git reset --hard HEAD^
Force a push -
git push --force
| function Invoke-Mimikatz | |
| { | |
| [CmdletBinding(DefaultParameterSetName="DumpCreds")] | |
| Param( | |
| [Parameter(Position = 0)] | |
| [String[]] | |
| $ComputerName, | |
| [Parameter(ParameterSetName = "DumpCreds", Position = 1)] | |
| [Switch] |
| # from https://medium.com/@wiiz4rd/hackthebox-rlotto-challenge-68f4b01006ba | |
| # connect to rlotto using nc or telnet | |
| # get the first sequence of numbers | |
| # input into this program | |
| import time | |
| import random | |
| seed = int(input("Enter the timestamp (enter 0 if not aware) :")) |
| # PYTHON Example | |
| from selenium import webdriver | |
| from selenium.webdriver.chrome.options import Options | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver import ActionChains | |
| from selenium.common.exceptions import NoSuchElementException | |
| from selenium.webdriver.common.keys import Keys | |
| import time |
| import os | |
| import hashlib | |
| import sys | |
| import pandas as pd | |
| import numpy as np | |
| all_files = [] | |
| all_files_without_path = [] | |
| all_hashes = [] |
| fn main() { | |
| let color = std::env::args().nth(1).expect("Please provide a color"); | |
| let animal = std::env::args().nth(2).expect("Please provide an animal"); | |
| let friend = std::env::args().nth(3).expect("Please provide a friend's name"); | |
| println!("Roses can be {}, {} could be blue, {} is open minded and so should be you.", color, animal, friend); | |
| } |
| ## importing all the required libraries | |
| import praw | |
| import os | |
| import re | |
| ## initialising praw | |
| reddit = praw.Reddit('brevity_bot') | |
| subreddit = reddit.subreddit("botjungle") |