Skip to content

Instantly share code, notes, and snippets.

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

RivDesign rivman

🏠
Working from home
View GitHub Profile
@rivman
rivman / wp-config.php
Created September 29, 2017 22:08 — forked from renaissance-design/wp-config.php
A portable wp-config.php for developing WordPress locally
<?php
/**
* The base configurations of the WordPress.
*
* This file has the following configurations: MySQL settings, Table Prefix,
* Secret Keys, WordPress Language, and ABSPATH. You can find more information
* by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. You can get the MySQL settings from your web host.
*
* This file is used by the wp-config.php creation script during the
@rivman
rivman / dump_helper.php
Created January 14, 2018 15:31 — forked from accentinteractive/dump_helper.php
dump_helper: functions to dump variables to the screen, in a nicley formatted manner
<?php
/**
* Dump helper. Functions to dump variables to the screen, in a nicley formatted manner.
* @author Joost van Veen
* @version 1.0
*/
if (!function_exists('dump')) {
function dump ($var, $label = 'Dump', $echo = TRUE)
{
// Store dump in variable
@rivman
rivman / dump_helper.php
Created January 14, 2018 15:31 — forked from accentinteractive/dump_helper.php
dump_helper: functions to dump variables to the screen, in a nicley formatted manner
<?php
/**
* Dump helper. Functions to dump variables to the screen, in a nicley formatted manner.
* @author Joost van Veen
* @version 1.0
*/
if (!function_exists('dump')) {
function dump ($var, $label = 'Dump', $echo = TRUE)
{
// Store dump in variable
@rivman
rivman / mfcuk_r65.md
Created May 19, 2018 21:36 — forked from ceres-c/mfcuk_r65.md
Using mfcuk r65 with libnfc 1.5.1 in 2018

You first need to download both libnfc 1.5.1 and mfcuk r65. The former is available among github releases wile the latter can be obtained via git rebase.

If you're on Arch you'll need pcsclite, if on Debian derivates libpcsclite-dev

Let's compile libnfc (<user> is your username)

mkdir -p ~/builds/nfc
cd ~/builds/nfc
wget https://github.com/nfc-tools/libnfc/releases/download/libnfc-1.5.1/libnfc-1.5.1.tar.gz

tar zxf libnfc-1.5.1.tar.gz

@rivman
rivman / lib-ImageResizer.php
Created November 19, 2018 12:02 — forked from shayanderson/lib-ImageResizer.php
Image Resizer class ImageResizer.php
<?php
/**
* Image Resizer / Thumbnail Creator
*
* NOTE: Requires the GD lib:
* http://php.net/manual/en/book.image.php
*
* @package ImageResizer
* @name ImageResizer
* @author Shay Anderson 3.12
@rivman
rivman / json.php
Created April 29, 2019 17:47 — forked from recked/json.php
Create a JSON file using PHP + MySQL
<?php
//http://stackoverflow.com/a/2467974
$query="SELECT * FROM tablename LIMIT 20";
$result=$mysqli->query($query)
or die ($mysqli->error);
//store the entire response
$response = array();
@rivman
rivman / file-upload-forms
Created May 2, 2019 16:19 — forked from labnol/file-upload-forms
File Upload Forms for Google Drive
File Upload Forms for Google Drive
----------------------------------
With the File Upload forms, you can upload files of any size and the files are sent directly to the owner’s Google Drive while the form data is saved in a Google Spreadsheet.
A [Pen](https://codepen.io/labnol/pen/QYWvwV) by [Amit Agarwal](https://codepen.io/labnol) on [CodePen](https://codepen.io).
[License](https://codepen.io/labnol/pen/QYWvwV/license).
@rivman
rivman / Gmail-Archive.js
Created May 2, 2019 16:32 — forked from labnol/Gmail-Archive.js
Archiver for Gmail
/*
*
* Copyright 2012 - Luca Giacomel (lgiacomel [at] google [dot] com)
* Use this at your own risk!
* Remember that Google has nothing to do with this
* Distributed under GPLv3
*
*/
function doGet(e) {
@rivman
rivman / Windown Telementry ans s**t IP, a bloquer dans router ou hosts
Created May 19, 2019 09:19
Windown Telementry ans s**t IP, a bloquer dans router ou hosts
13.68.31.193
13.66.56.243
13.68.82.8
13.76.218.117
13.76.219.191
13.76.219.210
13.78.130.220
13.78.232.226
13.78.233.133
13.92.194.212
@rivman
rivman / gare.html
Created May 20, 2019 09:38 — forked from diyfr/gare.html
Rechercher les premiers trains au départ d'une gare en utilisant le code UIC avec les Apis SNCF https://www.digital.sncf.com/startup/api
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />