Skip to content

Instantly share code, notes, and snippets.

View nm17's full-sized avatar
:octocat:
Msg me on Telegram at nvrm17 if you need anything.

Даниил Николаев (NeverMine) nm17

:octocat:
Msg me on Telegram at nvrm17 if you need anything.
  • Russian Federation
  • 09:47 (UTC +04:00)
View GitHub Profile
@Daksh777
Daksh777 / office-2019-activate.bat
Last active April 30, 2024 06:06
Activate Office 2019 using a batch script legally by using KMS keys. (Run as administrator)
@echo off
title Activate Microsoft Office 2021 (ALL versions) for FREE - MSGuides.com&cls&echo =====================================================================================&echo #Project: Activating Microsoft software products for FREE without additional software&echo =====================================================================================&echo.&echo #Supported products:&echo - Microsoft Office Standard 2021&echo - Microsoft Office Professional Plus 2021&echo.&echo.&(if exist "%ProgramFiles%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles%\Microsoft Office\Office16")&(if exist "%ProgramFiles(x86)%\Microsoft Office\Office16\ospp.vbs" cd /d "%ProgramFiles(x86)%\Microsoft Office\Office16")&(for /f %%x in ('dir /b ..\root\Licenses16\ProPlus2021VL_KMS*.xrm-ms') do cscript ospp.vbs /inslic:"..\root\Licenses16\%%x" >nul)&echo.&echo =====================================================================================&echo Activating your product...&cscript //nologo slmgr.vbs /ckms >nul&c
@alirezamika
alirezamika / autoscraper-examples.md
Last active May 15, 2024 03:29
AutoScraper Examples

Grouping results and removing unwanted ones

Here we want to scrape product name, price and rating from ebay product pages:

url = 'https://www.ebay.com/itm/Sony-PlayStation-4-PS4-Pro-1TB-4K-Console-Black/203084236670' 

wanted_list = ['Sony PlayStation 4 PS4 Pro 1TB 4K Console - Black', 'US $349.99', '4.8'] 

scraper.build(url, wanted_list)
@keepitsimple
keepitsimple / async_tor_proxy_sample.py
Last active November 20, 2022 16:48
aiohttp + aiosocks: async tor proxy example
import asyncio
import aiohttp
import aiosocks
from aiosocks.connector import ProxyConnector, ProxyClientRequest
async def main():
async with aiohttp.ClientSession() as session:
async with session.get('http://icanhazip.com/') as resp:
@trietptm
trietptm / xiaomi-locked-bootloader.md
Created January 10, 2017 06:30 — forked from anonymous/xiaomi-locked-bootloader.md
Xiaomi's locked bootloader is insecure and useless

Xiaomi's locked bootloader is insecure and useless

Your phone should have a locked bootloader, as it ensures the integrity of the software running on the device. This is especially relevant for Xiaomi phones, which are often loaded with all sorts of crapware by shady merchants. These vendor ROM's are a serious security risk. You really don't want to run that shit, so do your research very carefully when importing a Xiaomi device to ensure it hasn't been tampered with.

So, Xiaomi makes these nice phones and those vendors just ruin it all. They do the logical thing and start locking devices. But even today, vendor ROM's are still a thing! Even the brand new edgeless Mi Mix isn't safe.

How is this possible?

Through a wide open back door called EDL mode. To flash anything you want, all you need is a "deep flash cable" from [Aliexpress](https://www.aliexpress.com/wholesale?catId=0&SearchText=xiaomi+deep+fl

@kn9ts
kn9ts / GPLv3.md
Last active March 8, 2024 07:26
GPLv3 explained

GPL3 LICENSE SYNOPSIS

TL;DR* Here's what the license entails:

1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
@piercus
piercus / wav_lowpass_example.py
Created March 12, 2016 22:06
python lowpass example
import matplotlib.pyplot as plt
import numpy as np
import wave
import sys
import math
import contextlib
fname = 'test.wav'
outname = 'filtered.wav'
@yutannihilation
yutannihilation / grafana-playbook.yml
Last active March 12, 2021 13:39
Ansible Playbook to install Grafana
---
- hosts: HOST
vars:
grafana_version: 2.5.0
arch: amd64
grafana_filename: grafana_{{ grafana_version }}_{{ arch }}.deb
tasks:
- name: Verify version
command: dpkg-query -W --showformat='${version}' grafana
@kjlubick
kjlubick / afl-fuzz-help.txt
Created October 28, 2015 16:28
Help text for afl-fuzz
./afl-fuzz [ options ] -- /path/to/fuzzed_app [ ... ]
Required parameters:
-i dir - input directory with test cases
-o dir - output directory for fuzzer findings
Execution control settings:
-f file - location read by the fuzzed program (stdin)
@gokulkrishh
gokulkrishh / media-query.css
Last active June 17, 2024 03:50
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */
@raelgc
raelgc / Email Server (Linux, Unix, Mac).md
Last active June 5, 2024 04:06
Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

Setup a Local Only SMTP Email Server (Linux, Unix, Mac)

1 - Point localhost.com to your machine

Most of programs will not accept an email using just @localhost as domain. So, edit /etc/hosts file to make the domain localhost.com point to your machine, including this content to the file:

127.0.0.1 localhost.com

2 - Install Postfix