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 September 25, 2025 19:50
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
@checco
checco / rw_ro_access.sql
Last active November 28, 2025 14:24 — forked from oinopion/read-access.sql
How to create a read only user in AWS RDS PostgreSQL and a user with superuser privileges on AWS RDS PostgreSQL
--
-- Read only
--
-- Create a group
CREATE ROLE postgres_ro_group;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO postgres_ro_group;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group;
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 August 24, 2025 21:28
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 \
@glen-cheney
glen-cheney / encoding-video.md
Last active December 12, 2025 23:58
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, 2025 13:39
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