Skip to content

Instantly share code, notes, and snippets.

View manti-by's full-sized avatar
🚀
Waiting for spaceship

Alexander Chaika manti-by

🚀
Waiting for spaceship
View GitHub Profile
@manti-by
manti-by / install-ubuntu.sh
Last active March 18, 2024 16:29
Ubuntu installation
#!/bin/bash
echo "Add user and disable password prompt"
adduser manti
usermod -aG sudo manti
echo "manti ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers
echo "Remove unnecessary packages"
apt remove -y needrestart
echo "Install base system packages"

Setup Traktor Audio 6 on Ubuntu

Update pulsaduio config

When plugged-in, the soundcard was given a different idProduct than expected (1011 instead of 1010).

  1. Open file /lib/udev/rules.d/90-pulseaudio.rules
  2. Find line with text usb 1-2: New USB device found, idVendor=17cc, idProduct=1011
from django.contrib.admin import ModelAdmin
class MyTableAdmin(ModelAdmin):
...
paginator = LargeTablePaginator
...
@bastman
bastman / docker-cleanup-resources.md
Created March 31, 2016 05:55
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

@chadrien
chadrien / README.md
Last active July 18, 2024 08:31
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
@Vestride
Vestride / encoding-video.md
Last active August 27, 2024 16:19
Encoding video for the web

Encoding Video

Installing

Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aac --with-opus
@mandiwise
mandiwise / Update remote repo
Last active August 20, 2024 17:36
Transfer repo from Bitbucket to Github
// Reference: http://www.blackdogfoundry.com/blog/moving-repository-from-bitbucket-to-github/
// See also: http://www.paulund.co.uk/change-url-of-git-repository
$ cd $HOME/Code/repo-directory
$ git remote rename origin bitbucket
$ git remote add origin https://github.com/mandiwise/awesome-new-repo.git
$ git push origin master
$ git remote rm bitbucket