Skip to content

Instantly share code, notes, and snippets.

@redmanmale
redmanmale / git-commands
Created February 27, 2017 16:26
personal git tips&tricks
Remove all deleted files from git stage:
git rm $(git ls-files --deleted)
Update all subrepos in folder
find . -maxdepth 1 -type d -exec sh -c '(cd {} && git pull)' ';'
find . -maxdepth 1 -type d -exec sh -c '(cd {} && git checkout develop && git pull)' ';'
Clean remote and local git:
1. git remote prune --dry-run origin //-dry-run shows remore branched to be deleted without deleting
2. Delete all local branches that was merged by pattern
anonymous
anonymous / porndomains
Created October 8, 2016 18:13
This file has been truncated, but you can view the full file.
d,rank,ip,country
idealmilf.com,108296,78.140.130.6,Netherlands
skygals.com,415859,173.244.206.50,United States
guardomogli.com,658261,104.28.30.26,
sexy-streaming.com,117104,5.39.117.50,France
beach-porn.net,576671,173.214.250.167,United States
blackredtube.com,598818,88.208.0.196,United States
pornotom.com,449107,104.27.129.76,
pornflip.com,79500,199.101.134.20,United States
@avafloww
avafloww / PhpJava.java
Last active August 12, 2025 13:33
This snippet of code is syntactically valid in both PHP and Java, and produces the same output in both.
/*<?php
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s",
//\u000A\u002F\u002A
class PhpJava {
static function main() {
echo(//\u000A\u002A\u002F
"Hello World!");
}}
//\u000A\u002F\u002A
PhpJava::main();
@Tblue
Tblue / mozlz4a.py
Last active March 11, 2026 19:00
MozLz4a compression/decompression utility
#!/usr/bin/env python3
# vim: sw=4 ts=4 et tw=100 cc=+1
#
####################################################################################################
# DESCRIPTION #
####################################################################################################
#
# Decompressor/compressor for files in Mozilla's "mozLz4" format. Firefox uses this file format to
# compress e. g. bookmark backups (*.jsonlz4).
#
@jaddie
jaddie / readme.txt
Created May 12, 2015 10:18
Skype - Completely kill adverts
Skype Ad removing tutorial as created by James Dartnell (Jaddie)
First lets remove the access to the adverts themselves:
-- Warning --
This will also stop the Skype home from loading into Skype, although this may be a benefit as its hardly used & simply slows the program down.
Open-up the control panel.
Open-up "Network & Internet" then "Internet Options".
Go to the "Security" tab.
@JamesMessinger
JamesMessinger / IndexedDB101.js
Last active June 25, 2026 09:14
Very Simple IndexedDB Example
// This works on all devices/browsers, and uses IndexedDBShim as a final fallback
var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB;
// Open (or create) the database
var open = indexedDB.open("MyDatabase", 1);
// Create the schema
open.onupgradeneeded = function() {
var db = open.result;
var store = db.createObjectStore("MyObjectStore", {keyPath: "id"});
@ValdikSS
ValdikSS / donotasktoask_ru.md
Last active May 6, 2025 14:42
Спрашивайте сразу

Вам отправили это сообщение по следующим возможным причинам:

  • Вы поприветствовались и ждете ответа
  • Вы спросили о том, можно ли задать вопрос, и ждете ответа
  • Вы скинули запрос авторизации и ждете ответа

Пожалуйста, не делайте так. Задавайте вопрос сразу, без прелюдий, без запросов авторизации (в том числе и в Jabber), и ждите ответа. Не повторяйте свой вопрос и не спрашивайте, на месте ли я.

Здесь комментарии не пишите, уведомление о них не приходит ни мне, ни вам.

Если вам интересно получить развернутый ответ и аргументы, почему не стоить здороваться и ожидать ответа при общении онлайн:

@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active September 9, 2026 21:57
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@st4lk
st4lk / vkcom_audio_download.py
Last active September 10, 2025 16:09
Python: vkontakte.ru (vk.com) audio music downloader
# -*- coding: utf-8 -*-
"""
Скрипт для скачивания музыки с сайта vkontakte.ru (vk.com)
Запуск:
python vkcom_audio_download.py
Принцип работы:
Скрипт проверяет сохраненный access_token. Если его нет или срок истек,
то открывается страница в браузере с запросом на доступ к аккаунту.