Skip to content

Instantly share code, notes, and snippets.

View michelmelo's full-sized avatar
🍷
wine

Michel Melo michelmelo

🍷
wine
View GitHub Profile
@leonvanrooijen
leonvanrooijen / RefreshApp.php
Last active September 8, 2024 17:15
Laravel GIT pull command to automatically update the application
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Process\Process;
class RefreshApp extends Command
{
/**
@msaulohenrique
msaulohenrique / itunes.php
Created January 23, 2020 18:33
Get artist info and track image (iTunes)
<!doctype html>
<html>
<head>
<title>Get artist and track image</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</head>
<body>
<?php
$search = 'drowning pool 37 stitches'; // user input 'term' in a form
$term = urlencode($search); // user input 'term' in a form
@chmiiller
chmiiller / rating.js
Last active March 14, 2017 22:50
A draggable and swipeable 5 stars rating view for Android and iOS
var win = Ti.UI.createWindow({
backgroundColor:'#eeeeee'
});
var isAndroid = Ti.Platform.osname == "android";
var starSelectedImage = '/images/ic_star_black.png';
var starOriginalImage = '/images/ic_star_border_black.png';
//icons from Google Material Design (search for the "star" icon): https://design.google.com/icons/
var starWidth = 28;
var coverView = Ti.UI.createView();
@FinlayDaG33k
FinlayDaG33k / gist:23a6134b1ad3e5f867a64219a374406e
Last active February 12, 2024 19:30
Minergate-cli ubuntu installation
Run this command to install MG-CLI:
sudo apt-get update && wget https://minergate.com/download/deb-cli -O minergate-cli.deb && sudo dpkg -i minergate-cli.deb
to start miner (4 cores for BCN) use this command:
minergate-cli -user <YOUR@EMAIL.KAPPA> -bcn 4
Feel free to send some of your earnings to me:
BTC (Don't attempt to send other coins to this address!): 17f77AYHsQbdsB1Q6BbqPahJ8ZrjFLYH2j
@inerba
inerba / laravel.stpl
Created May 9, 2016 08:53
Laravel template VESTACP
# /usr/local/vesta/data/templates/web/apache2/laravel.stpl
<VirtualHost %ip%:%web_ssl_port%>
ServerName %domain_idn%
%alias_string%
ServerAdmin %email%
DocumentRoot %sdocroot%/public/
ScriptAlias /cgi-bin/ %home%/%user%/web/%domain%/cgi-bin/
Alias /vstats/ %home%/%user%/web/%domain%/stats/
@angrycoffeemonster
angrycoffeemonster / Sublime Text 3 Build 3103 License Key - CRACK
Created April 18, 2016 02:13
Sublime Text 3 Build 3103 License Key - CRACK
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@burakerdem
burakerdem / gist:d8195e6e343aa55ff578
Created November 17, 2015 22:06
Installing wget on Mac OS X El Capitan 10.11
curl -O http://ftp.gnu.org/gnu/wget/wget-1.17.tar.gz
tar -xzf wget-1.17.tar.gz
cd wget-1.17
./configure --with-ssl=openssl
./configure --with-ssl=openssl --with-libssl-prefix=/usr/local/ssl
make
sudo make install
wget --help
cd .. && rm -rf wget*
@NamPNQ
NamPNQ / bitcoin-cpuminer.sh
Last active August 22, 2018 03:11 — forked from return1/bitcoin-cpuminer.sh
install a bitcoin cpuminer on ubuntu/debian
# install dependencies
sudo apt-get install libcurl4-openssl-dev libncurses5-dev pkg-config automake yasm git gcc -y
# clone cpuminer
git clone https://github.com/pooler/cpuminer.git
# compile
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"
@halgatewood
halgatewood / ServiceProvider.swift
Last active April 18, 2019 12:07
Completely Dynamic Apple TV Top Shelf using a Remote JSON file, Alamofire, Semaphore and SwiftyJSON
//
// ServiceProvider.swift
// BT Top Shelf
//
// Created by HalBook on 9/28/15.
// Copyright © 2015 HalGatewood.com. All rights reserved.
//
import Foundation
import TVServices
@egel
egel / auto-remove-sublime-license-popup
Last active July 27, 2025 03:55
Auto-remove Sublime's license popup
#!/usr/bin/python
# -*- coding: utf-8 -*-
import sublime_plugin
import subprocess
from time import sleep
import sys
cl = lambda line: subprocess.Popen(line, shell=True, stdout=subprocess.PIPE).communicate()[0].strip()
log = lambda message: sys.stderr.write("Log: %s\n" % message)