Skip to content

Instantly share code, notes, and snippets.

View definiteIymaybe's full-sized avatar

dfntlmb definiteIymaybe

View GitHub Profile
@definiteIymaybe
definiteIymaybe / nuxt-js-and-gsheet-example.vue
Created July 26, 2021 16:25 — forked from mornir/nuxt-js-and-gsheet-example.vue
#sheets Nuxt.js vue component to display datas from a google spreadsheet (with google api V4 without oAuth )
<template>
<div id="homepage">
<h1>Les dernières Articles</h1>
<div class="article" v-for="article in articles">
<h2> {{ article.title }} </h2>
<p> {{ article.content }} </p>
</div>
</div>
</template>
@definiteIymaybe
definiteIymaybe / directus_mover.sh
Created July 13, 2021 00:42 — forked from tspvivek/directus_mover.sh
Directus postgres DB - Script to move schema changes between different servers without replacing data
#!/bin/sh
start=`date +%s.%N`
SRC_CONNECTION_STRING="postgresql://src_username:src_password@src_host/src_dbname"
DST_CONNECTION_STRING="postgresql://dst_username:dst_password@dst_host/dst_dbname"
rm src_schema.sql
rm src_data.sql
rm dst_data.sql
@definiteIymaybe
definiteIymaybe / iterm2.md
Created July 12, 2021 11:19 — forked from nobitagit/iterm2.md
iterm2 cheatsheet

This gist has been moved to its own Github repo, so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
@definiteIymaybe
definiteIymaybe / wordpress-plugin-svn-to-git.md
Created July 7, 2021 11:54 — forked from kasparsd/wordpress-plugin-svn-to-git.md
Using Git with Subversion Mirroring for WordPress Plugin Development
@definiteIymaybe
definiteIymaybe / admin.php
Created May 3, 2021 06:59 — forked from Dorf/admin.php
[Roots Sage starting admin functions] add Color Palette, Gutenberg editor styles, and basic Intervention commands #sage #roots #admin #intervention #gutenberg #editor
<?php
/**
* Admin assets
*/
add_action('admin_enqueue_scripts', function () {
// global $post;
// $my_post_type = 'page';
if ( stristr( $_SERVER['REQUEST_URI'], 'post.php' ) !== false // just for the post editor
// && is_object( $post )
@definiteIymaybe
definiteIymaybe / cloudSettings
Last active December 4, 2020 18:15 — forked from kjohnson/0_ninja-forms-hooks.markdown
Ninja Forms Hooks - Filters and Actions
{"lastUpload":"2020-12-04T18:15:47.938Z","extensionVersion":"v3.4.3"}
<?php
/**
* Gather all data from Caldera Forms submission as PHP array
*/
add_action( 'caldera_forms_submit_complete', 'slug_process_form', 55 );
function slug_process_form( $form ) {
//put form field data into an array $data
$data= array();
foreach( $form[ 'fields' ] as $field_id => $field){
#!/bin/bash
## Install vim
apt-get update
apt-get upgrade
apt-get install vim
# Read from ext repository
echo 'deb http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
echo 'deb-src http://packages.dotdeb.org jessie all' >> /etc/apt/sources.list
@definiteIymaybe
definiteIymaybe / icon-packs.md
Created September 15, 2019 15:32 — forked from revolunet/icon-packs.md
List of free icon packs

Icon ressources collection

A curated list of awesome PHP frameworks, libraries and software.
* [laravel/laravel](https://github.com/laravel/laravel) - A PHP Framework For Web Artisans
* [symfony/symfony](https://github.com/symfony/symfony) - The Symfony PHP framework
* [bcit-ci/CodeIgniter](https://github.com/bcit-ci/CodeIgniter) - Open Source PHP Framework (originally from EllisLab)
* [domnikl/DesignPatternsPHP](https://github.com/domnikl/DesignPatternsPHP) - sample code for several design patterns in PHP
* [fzaninotto/Faker](https://github.com/fzaninotto/Faker) - Faker is a PHP library that generates fake data for you
* [yiisoft/yii2](https://github.com/yiisoft/yii2) - Yii 2: The Fast, Secure and Professional PHP Framework
* [composer/composer](https://github.com/composer/composer) - Dependency Manager for PHP