- Clone the repo.
- Use
git rebase -i --root - vim will open. Select the commits you want to modify by changing
picktoedit. If you would like to change all the commits, perform the following replace::%s/^pick/edit/g. This command changes all instances of "pick" at the start of lines to "edit". - You will now be shown all the selected commits one by one. Each commit message will be displayed. You have two options:
- If you would like to keep the commit author details the same, do a
git rebase --continue. - If you would like to change it to a different name/email, do
git commit --amend --reset-author. If--reset-authoris specified, it will use the details from your git config. (If you need to specify an alternate name/email, you can do so with--author="John Doe <john@example.com>". If you would like to change the time to a previous date, you can do so with--date "2 days ago".)
- If you would like to keep the commit author details the same, do a
- Do the same for all the commits and finish the rebase.
- Perform
git push -f origin masterto
DigitalOcean does not provide a way to download a snapshot of your droplet locally. You can use rsync to accomplish this instead.
On your local machine, assuming you have added your-server in your SSH config:
rsync -aAXHv --append-verify --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} your-server:/
-a: archive mode (all files, with permissions, etc.)-A: preserve ACLs/permissions (not included with -a)
I needed Chrome 136.0.7103.92 for testing a CVE, but Google's repo only keeps the latest stable. Here's how I got it running alongside my regular Chrome install. Writing this down for next time, but maybe it'll help someone else too.
Warning: Old browsers have security vulnerabilities. Only use for testing, never for normal browsing.
Google stores old builds at https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/. You can grab version numbers from the Chrome releases blog and build the URL:
- Go to https://web.telegram.org and sign in if you're not already signed in.
- On the top-left, click on the hamburger icon to show the dropdown menu, and choose "Contacts" from the list.
- Choose "Edit".
- Open the Developer Console of your browser (preferably Chrome or Firefox). On Chrome, that is Ctrl + Shift + J.
- Run the following JS snippet:
var x = document.getElementsByClassName('contacts_modal_contact')
| import re | |
| import string | |
| import requests | |
| def check(c): | |
| t = requests.get(f'https://challenge.intigriti.io/{c}').text | |
| return re.match(r'404 - \'File "(.*?)" was.*\'', t).group(1) |
| #!/bin/bash | |
| version=$(curl -s "https://go.dev/dl/?mode=json" | jq '.[0].version' -r) | |
| wget "https://dl.google.com/go/${version}.linux-amd64.tar.gz" | |
| sudo tar -C /usr/local -xzf go*.linux-amd64.tar.gz | |
| { | |
| echo '# Golang' | |
| echo 'export GOPATH=$HOME/go' |
| <pre><?php | |
| $arr = array( | |
| array( | |
| "image" => "", | |
| "title" => "Open 7 days.", | |
| "text" => "We’re open 7 days a week." | |
| ), | |
| array( | |
| "image" => "", |
| #!/usr/bin/env python3 | |
| from urllib.parse import quote as encode | |
| import requests | |
| base_url = 'http://localhost:9001' | |
| def tamper(payload, **kwargs): |
| require 'selenium-webdriver' | |
| @host = "http://metadata.google.internal/computeMetadata/v1/instance/" | |
| def setup | |
| @driver = Selenium::WebDriver.for( | |
| :remote, | |
| url: 'https://SELENIUM_URL/wd/hub', | |
| desired_capabilities: :chrome) | |
| end |
Execute the command in a terminal window:
wget "https://gist.github.com/amalmurali47/050ef9250c5e1cd611f2e54012d1ece3/raw/29126c4e7e2ae79f8c61cd057e8b30c1345367ec/vaccine_checker.py"
It will save the script as vaccine_checker.py.
You need the following installed:
- Python