Skip to content

Instantly share code, notes, and snippets.

View misaki1301's full-sized avatar
馃攳
Finding new ways to get bored/focused

misaki1301

馃攳
Finding new ways to get bored/focused
View GitHub Profile
@amondnet
amondnet / install_nodejs_and_yarn_homebrew.md
Created August 8, 2019 04:40 — forked from nijicha/install_nodejs_and_yarn_homebrew.md
Install NVM, Node.js, Yarn via Homebrew

Install NVM, NodeJS, Yarn via Homebrew

Prerequisites

  • Homebrew should be installed (Command line tools for Xcode are included).

Getting start

Part A: Install NVM and NodeJS

  1. Install nvm via Homebrew
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@AlejoJamC
AlejoJamC / Instalacion MongoDB Windows.md
Last active April 4, 2024 11:26
Pasos para instalar MongoDB en Windows

Instalaci贸n de MongoDB en MS Windows

  1. Obtener el instalador para Windows del centro de descargas.
  2. Iniciar el instalador como administrador.
  3. Crear las carpeta de almacenamiento y configuracion de MongoDB.
  • Dar permisos escritura y lectura a estas carpetas.
 C:\data 
 C:\data\db
@BenjaminDurham
BenjaminDurham / laravelmailsettings.txt
Created June 10, 2016 16:22
Laravel .env Mail settings for app hosted on Linux with GoDaddy workspace email.
.env settings
----------------------------------------------
MAIL_DRIVER=mail
MAIL_HOST=localhost
MAIL_PORT=25
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=null
Other info
@karlding
karlding / itunes-artist-photos.md
Created March 3, 2016 05:17
Grab iTunes image artwork from the DOM using the Open Graph meta tags

iTunes Artist Photos

The iTunes API doesn't provide a way to grab artist images, but the iTunes website uses Open Graph meta tags, which embeds a meta tag with a property attribute value set to og:image. As it turns out, this seems to be the same image used in the iTunes artwork.

The URL structure is similar to the artworkUrl values returned by the API, but what concerns us here is the part I've indicated at the end of the URL.

http://is3.mzstatic.com/image/thumb/Music7/v4/68/68/41/68684190-833b-bfb4-5018-e5a2e6f69eb0/source/1200x630bf.jpg
                                                                                                   鈹斺攢 widthxheight
@spalladino
spalladino / mysql-docker.sh
Created December 22, 2015 13:47
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
@rdgutierrez
rdgutierrez / gist:b06fae22348cd0376836
Last active February 14, 2024 20:30
Fechas en espa帽ol con Carbon en Laravel 5
Using a library as Laravel-Date you will just need to set the language of the app in the Laravel app config file and use its functions to format the date as you want.
Set the language in /app/config/app.php
...
'locale' => 'es',
...
I've found this library pretty useful and clean. To use it, you can write something like the example in the library readme file. I leave the results in spanish.
...
echo Date::now()->format('l j F Y H:i:s'); // domingo 28 abril 2013 21:58:16
echo Date::parse('-1 day')->diffForHumans(); // 1 d铆a atr谩s
@siggiarni
siggiarni / nth-last-child.css
Last active October 1, 2021 22:45
Style a penultimate child in CSS thanks to the power of nth-last-child:
ul li:nth-last-child(2) {
...
}