Skip to content

Instantly share code, notes, and snippets.

@avoidik
avoidik / soundnodeapp_429.md
Last active March 16, 2017 15:51
SoundnodeApp - solver 429 HTTP request error
  1. Request data with the help of python script:
import getpass
import json
import re
import requests

client_id = re.compile(',client_id:"(.*?)"').search(requests.get(re.compile('src="https://a-v2.sndcdn.com/assets/app-.*.js"').search(requests.get('https://soundcloud.com/').text).group()[5:-1]).text).group()[12:-1]

username = raw_input('Username: ')

Create new project, assign API key

https://console.developers.google.com/apis/api/

Set your own key with (REG_SZ strings)

HKEY_CURRENT_USER\SOFTWARE\Flavio Tordini\Minitube\googleApiKey 
HKEY_CURRENT_USER\SOFTWARE\Flavio Tordini\Musictube\googleApiKey
@avoidik
avoidik / ansible_windows.md
Last active February 22, 2019 16:17
Install Ansible on Windows
  • visual studio is required (here)
  • python for windows is required
  • from command-line (check path to stdint.h)
set CL=-FI"%VCINSTALLDIR%\Tools\MSVC\14.10.25017\include\stdint.h"
pip install ansible==2.2.2.0
  • in case of error copy rc.exe and rcdll.dll into proper bin folder (depends on architecture, for example bin\x86_amd64), in my case this was:
copy C:\Program Files (x86)\Windows Kits\10\bin\10.0.15063.0\x64\rc.exe C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\
@avoidik
avoidik / readme.md
Last active June 1, 2017 09:05
upgrade apt from upstream

example is for trusty (14.04) and upstream is xenial (16.04)

  • cat /etc/apt/apt.conf.d/01ubuntu
APT::Default-Release "trusty";
  • cat /etc/apt/preferences.d/apt-fix-1001
@avoidik
avoidik / install.md
Created June 25, 2017 11:51
mingw toolchain

To install the MinGW toolchain (Reference):

  • Open MSYS2 shell from start menu
  • Run pacman -Sy pacman to update the package database
  • Re-open the shell, run pacman -Syu to update the package database and core system packages
  • Re-open the shell, run pacman -Su to update the rest
  • For 32-bits, run pacman -S mingw-w64-i686-toolchain
  • For 64 bits, run pacman -S mingw-w64-x86_64-toolchain
  • Select which package to install, default is all
  • You may also need make, run pacman -S make
# make sure to have these libs to compile Python with
sudo apt install -y libssl-dev openssl zlib1g-dev sqlite3 libsqlite3-dev libbz2-dev bzip2

# download pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv

# put it in your path and initialize it, in .bashrc for example
export PATH="${HOME}/.pyenv/bin:${PATH}"
eval "$(pyenv init -)"
@avoidik
avoidik / readme.md
Created July 2, 2017 19:45
Rambox - Building on Ubuntu/Mint

Building Rambox from source

  • install npm via nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
source ~/.bashrc
nvm install 7
npm install -g npm
@avoidik
avoidik / install.cmd
Last active July 11, 2022 16:37
Azure-Cli under cygwin
@echo off
setup-x86_64.exe -g -B -D -L -d -o -N -s http://cygwin.mirror.constant.com/ -l c:/tools/cygwin/distro -R c:/tools/cygwin -M
@avoidik
avoidik / README.md
Last active July 24, 2017 10:05
Uninstall, install and upgrade WSL LXSS

Uninstall

  • lxrun /uninstall /full
  • sc stop lxssmanager
  • rmdir /Q /S "\\?\C:\Users\Username\AppData\Local\lxss"

Install

  • sc start lxssmanager
  • lxrun /install

Upgrade 14.04 to 16.04

@avoidik
avoidik / docker-cleanup-resources.md
Created August 3, 2017 13:43 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm