Skip to content

Instantly share code, notes, and snippets.

View vagrantsn's full-sized avatar
🎯
Focusing

Vagner S vagrantsn

🎯
Focusing
  • Rain Instant Pay
  • São Paulo, Brazil
View GitHub Profile
@derekstavis
derekstavis / README.md
Created January 15, 2018 15:29
Mostly adequate guide to Arch Linux installation

Arch Linux is a distribution that's always on the most recent version of software packages, differing from other distros like Ubuntu and Debian, which releases a major/minor of all packages just in new releases. Another good point is that on Arch most configurations are default and just work, so you won't get Canonical's or RedHat's opinions in your operating system.

Although, not everything is flowrs. Arch's installation isn't graphical, that's why I've created a time ago a sequence of commands to help friends to install Arch Linux with GNOME with the setup I consider ideal for developers.

After booting the USB drive with the installation (download at https://www.archlinux.org/download/) just follow these steps:

WARNING: You need to have UEFI boot (disable CSM mode in your BIOS)

DISCLAIMER: This will erase all the data in your computer.

@alexeygrigorev
alexeygrigorev / vimeo-download.py
Created September 17, 2016 09:09
Downloading segmented video from vimeo
import requests
import base64
from tqdm import tqdm
master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1'
base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1]
resp = requests.get(master_json_url)
content = resp.json()
@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 \