Skip to content

Instantly share code, notes, and snippets.

View nicolas-t's full-sized avatar
🦏
opensourcing

Nicolas Turlais nicolas-t

🦏
opensourcing
View GitHub Profile
@nicolas-t
nicolas-t / leboncoin.php
Last active August 29, 2015 14:05
Receive an email when a new item pops at Leboncoin.fr
<?php
/* ******************************************************************************* */
/* Script to track search results on leboncoin */
/* Receive an email when a new item pops */
/* ******************************************************************************* */
/* ******************************************************************************* */
// - Add this cron job to check for new items every 30 minutes */
// */30 * * * * curl http://yoursite.com/leboncoin.php */
  1. Open Conemu

  2. Open Settings -> Tasks or go to new tab button -> Setup tasks.

  3. Click + to add a new task

  4. Enter the name as Git Bash or whatever you like

  5. Task parameters:

     /icon "C:\Program Files (x86)\Git\etc\git.ico" /dir "C:\Users\nicolas"
    
  6. Command:

// ==UserScript==
// @name die die die
// @namespace twi-
// @include https://twitter.com/
// @include http://twitter.com/
// @version 1
// @require http://code.jquery.com/jquery-1.11.0.min.js
// @grant none
// ==/UserScript==
@nicolas-t
nicolas-t / after.sh
Created July 20, 2016 22:24 — forked from cluppi/after.sh
Turning SSL on for Homestead
#!/bin/sh
# Config for SSL.
echo "--- Making SSL Directory ---"
mkdir /etc/nginx/ssl
echo "--- Copying $i SSL crt and key ---"
openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com"
echo "--- Turning SSL on in nginx.conf. ---"
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jeu de la vie</title>
</head>
<style type="text/css">
#app {
font-size: 0;
}