Skip to content

Instantly share code, notes, and snippets.

View parmanand99's full-sized avatar

Parmanand Patidar parmanand99

View GitHub Profile
import requests
import sys
import json
def waybackurls(host, with_subs):
if with_subs:
url = 'http://web.archive.org/cdx/search/cdx?url=*.%s/*&output=json&fl=original&collapse=urlkey' % host
else:
url = 'http://web.archive.org/cdx/search/cdx?url=%s/*&output=json&fl=original&collapse=urlkey' % host
@Therises
Therises / fix_mic_lenovo320.md
Last active September 16, 2024 19:24
Fix microphone on Lenovo IdeaPad 320 on Ubuntu 18.04

In /usr/share/pulseaudio/alsa-mixer/paths/analog-input-internal-mic.conf and /usr/share/pulseaudio/alsa-mixer/paths/analog-input-mic.conf:

  • Under [Element Internal Mic Boost] set volume to zero.
  • Under [Element Int Mic Boost] set volume to zero.
  • Under [Element Mic Boost] set volume to zero

Find your source name from the following command; mine is alsa_input.pci-0000_00_1f.3.analog-stereo

  $ pacmd list-sources | grep 'name:.*input'

Edit /etc/pulse/default.pa and add the following lines, where INPUT_NAME is name of the input source from above step:

@NicolaiSoeborg
NicolaiSoeborg / Ubuntu-cleanup.sh
Last active November 8, 2024 10:43
Remove some of the bloat coming with ubuntu-minimal + changing defaults + flatpak
sudo apt install git htop tmux curl vim xclip
sudo apt install --no-install-recommends neovim
# Remove Ubuntu-branded XUL crapware:
sudo apt purge xul-ext-ubufox
# Stuff that I don't use:
sudo apt autoremove --purge snapd gnome-software-plugin-snap
sudo apt remove whoopsie
sudo apt remove bluez bluez-cups bluez-obexd
@yehgdotnet
yehgdotnet / get-shodan-favicon-hash.py
Last active October 25, 2024 04:40
Get Shodan FAVICON Hash
# https://twitter.com/brsn76945860/status/1171233054951501824
pip install mmh3
-----------------------------
# python 2
import mmh3
import requests
response = requests.get('https://cybersecurity.wtf/favicon.ico')
favicon = response.content.encode('base64')