Skip to content

Instantly share code, notes, and snippets.

View laurenceHR's full-sized avatar
🏠
Working from home

Laurence laurenceHR

🏠
Working from home
View GitHub Profile
@djaiss
djaiss / progress_bar_migration_laravel.php
Last active May 4, 2024 15:03
Laravel: Use progress bars in migrations
<?php
use Symfony\Component\Console\Helper\ProgressBar;
use Symfony\Component\Console\Output\ConsoleOutput;
class DoSomething extends Migration
{
public function up()
{
$output = new ConsoleOutput();
@xameeramir
xameeramir / default nginx configuration file
Last active May 4, 2024 17:27
The default nginx configuration file inside /etc/nginx/sites-available/default
# Author: Zameer Ansari
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@manospsyx
manospsyx / woocommerce-bundles-optional-checkbox-state.php
Last active February 29, 2020 20:32
Use this plugin to have optional bundled items checked/selected by default.
<?php
/**
* Plugin Name: WooCommerce Product Bundles - Optional Items Checked by Default
* Plugin URI: https://woocommerce.com/products/product-bundles/
* Description: Use this plugin to have optional bundled items checked/selected by default.
* Version: 1.1
* Author: SomewhereWarm
* Author URI: https://somewherewarm.gr/
* Developer: Manos Psychogyiopoulos
*
@keberwein
keberwein / restart_nginx.bat
Created September 2, 2016 16:28
Restart Nginx Windows
@ECHO OFF
cd /nginx
taskkill /f /IM nginx.exe
start nginx
EXIT
@Zillionx
Zillionx / OSMobileRedir.js
Last active August 29, 2015 14:24
Javascript OS mobile detection with url redirect
/* Zilli 201102
To detect the OS mobile system on the client device,
match the value of navigator.userAgent,
then redirect to mobile url with the location.replace value.
*/
if (navigator.userAgent.match(/Android/i)
|| navigator.userAgent.match(/webOS/i)
|| navigator.userAgent.match(/iPhone/i)
|| navigator.userAgent.match(/iPad/i)
@vladimirtsyupko
vladimirtsyupko / gist:10964772
Created April 17, 2014 08:32
Git force pull to overwrite local files
git fetch --all
git reset --hard origin/master
git pull origin master
@xenda
xenda / gist:6418328
Last active December 22, 2015 04:39

¡Hola, extraño (por ahora)!,

En Xenda estamos buscando una persona para que se una a nuestro equipo de trabajo. Es una oferta especial, porque es para una persona especial. No solemos contratar mucha gente porque preferimos escalar a nivel de proyectos antes que en personas, pero hoy estaremos buscando a quien sería nuestro siguiente integrante (o Xendar, como nos solemos llamar).

En esta etapa de tu vida, tú (disculparás la confianza) aún no tienes mucha experiencia laboral y te interesa tenerla. Además, no eres un(una) desarrollador(a) normal. Tú lo sabes. Tal vez no lo digas en voz alta, pero aprendes muy rápido, y los retos te atraen. Pasas tus domingos viendo screencasts o aprendiendo algo de AngularJS y cómo integrarlo con una biblioteca de Javascript que ejecuta comandos en una tableta de Arduino. Eres genial.

¿Qué requerimos de ti?

No importa que tengas poca experiencia (o ninguna). Este es un puesto de desarrollador a nivel junior, y nos encargare