Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/awk -f
# Convert the "svn log" output into a one liner format, which is easier to grep
# or use in scripts. Pipe "svn log" into this script
# When we get a line that starts with a revision number, put the data in variables
/^r[0-9]+/ {
rev=$1
user=$3
date=$5
@DrSterling
DrSterling / .colors.sh
Created August 25, 2025 13:52 — forked from konsumer/.colors.sh
My setup for pretty colored git-oriented BASH prompt, looks like this with colors: konsumer@Davids-Mac-Pro ~/project (master) $
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red
Green="\[\033[0;32m\]" # Green
Yellow="\[\033[0;33m\]" # Yellow
Blue="\[\033[0;34m\]" # Blue
Purple="\[\033[0;35m\]" # Purple
@DrSterling
DrSterling / old-opensearch-docker-compose.yml
Created May 31, 2025 11:04 — forked from dtaivpp/old-opensearch-docker-compose.yml
A single node OpenSearch and OpenSearch dashboards docker compose.
services:
opensearch:
image: opensearchproject/opensearch:${OPENSEARCH_VERSION:-2.11.1}
container_name: opensearch
environment:
discovery.type: single-node
node.name: opensearch
OPENSEARCH_JAVA_OPTS: "-Xms512m -Xmx512m"
volumes:
- opensearch-data:/usr/share/opensearch/data
@DrSterling
DrSterling / web-servers.md
Created September 30, 2022 08:03 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
Continent_Name Continent_Code Country_Name Two_Letter_Country_Code Three_Letter_Country_Code Country_Number
Asia AS Afghanistan, Islamic Republic of AF AFG 4
Europe EU Albania, Republic of AL ALB 8
Antarctica AN Antarctica (the territory South of 60 deg S) AQ ATA 10
Africa AF Algeria, People's Democratic Republic of DZ DZA 12
Oceania OC American Samoa AS ASM 16
Europe EU Andorra, Principality of AD AND 20
Africa AF Angola, Republic of AO AGO 24
North America NA Antigua and Barbuda AG ATG 28
Europe EU Azerbaijan, Republic of AZ AZE 31
#!/bin/bash
PASSWORD=XXXXXX
HOST=XXXXXX
USER=XXXXXX
DATABASE=databasename
DB_FILE=dump.sql
EXCLUDED_TABLES=(
table1
table2
table3

Keybase proof

I hereby claim:

  • I am drsterling on github.
  • I am drsterling (https://keybase.io/drsterling) on keybase.
  • I have a public key ASAKdW9QpEj62hUG4VuKQb6xderHQASZ0cbLk2YD2bMdKwo

To claim this, I am signing this object:

apply plugin: 'com.android.library'
android {
compileSdkVersion 24
defaultConfig {
minSdkVersion 15
targetSdkVersion 24
consumerProguardFiles 'proguard.cfg', '../../libxpromo/libxpromo_android.pro', '../../libxpromo/libxpromo_reduced_android.pro', '../../libbfgsdk-android/proguard.cfg'
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven {
url 'https://maven.fabric.io/public'
}
jcenter()
google()
}
dependencies {
@DrSterling
DrSterling / proxy.php
Created July 15, 2018 11:34
anonimizer_proxy
<?php
$config = [
// Включение записи отладочной информации
'log' => false,
// Список "проксируемых" трекеров
'allow' => [
'rutracker' => [
// Список хостов-анонсеров
'hosts' => [