Skip to content

Instantly share code, notes, and snippets.

View Rogh64's full-sized avatar

Yann Carpentier Rogh64

  • IUT de Bayonne - Département informatique
  • Anglet, France
View GitHub Profile
@Rogh64
Rogh64 / memento.md
Created November 18, 2022 20:37 — forked from freuds/memento.md
Commandes de Docker

Commandes de Docker

Commandes de bases

run

La commande run permet d'instancier un container à partir d'une image. Executer une instruction dans un container :

docker run ubuntu:14.04 echo "hello world"

Affiche : hello world

<?php
if ( !function_exists( 'wp_log' ) ) {
/**
* A file based logging utility.
*
* Made for WordPress, but can be used anywhere with a single change.
*
* @author Tareq Hasan <tareq@wedevs.com>
*
@Rogh64
Rogh64 / dl-file.php
Created July 2, 2018 12:04 — forked from hakre/dl-file.php
Wordpress login to download uploaded files
<?php
/*
* dl-file.php
*
* Protect uploaded files with login.
*
* @link http://wordpress.stackexchange.com/questions/37144/protect-wordpress-uploads-if-user-is-not-logged-in
*
* @author hakre <http://hakre.wordpress.com/>
* @license GPL-3.0+
@Rogh64
Rogh64 / get-steam-screenshots.php
Created April 23, 2018 12:18 — forked from richardbenson/get-steam-screenshots.php
Turn Steam screenshots into RSS feed
<?php
header("Content-Type: application/rss+xml; charset=utf-8");
error_reporting(E_ALL);
ini_set("display_errors", 0);
define('STEAM_USER', $_GET['u']);
define('LIST_URL', "http://steamcommunity.com/id/".STEAM_USER."/screenshots/?appid=0&sort=newestfirst&browsefilter=myfiles&view=grid");
include('extlib/ganon/ganon.php');
public class Quine
{
public static void main(String[] args)
{
char q = 34; // Quotation mark character
String[] l = { // Array of source code
"public class Quine",
"{",
" public static void main(String[] args)",
" {",
@Rogh64
Rogh64 / nodejs-cheatsheet.js
Created November 15, 2017 16:28 — forked from LeCoupa/nodejs-cheatsheet.js
Complete Node.js CheatSheet --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
/* *******************************************************************************************
* THE UPDATED VERSION IS AVAILABLE AT
* https://github.com/LeCoupa/awesome-cheatsheets
* ******************************************************************************************* */
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@Rogh64
Rogh64 / WordPress Shortcode with ob_start()
Created October 25, 2017 17:41 — forked from azizultex/WordPress Shortcode with ob_start()
WordPress Shortcode with ob_start()
function custom_query_shortcode($atts) {
// EXAMPLE USAGE:
// [loop the_query="showposts=100&post_type=page&post_parent=453"]
// Defaults
extract(shortcode_atts(array(
"the_query" => ''
), $atts));
@Rogh64
Rogh64 / horizontal-lines-around-centered-content.markdown
Created August 18, 2016 18:07
Horizontal lines around centered content
@Rogh64
Rogh64 / Animated Gradient Mixin.markdown
Created June 26, 2016 16:23
Animated Gradient Mixin
@Rogh64
Rogh64 / flexbox
Created January 20, 2016 17:52
Des grilles, des grilles des grilles
- o-grid du FT : https://github.com/Financial-Times/o-grid
- http://flexboxgrid.com/
- Lost Grid : vhttps://github.com/corysimmons/lost
- Chewing Grid : https://github.com/tzi/chewing-grid.css
- flexgrid : http://ptb2.me/flexgrid/
- griddleCSS : http://studio51.github.io/gridlecss/
- http://fclaussen.github.io/Flexbox-Framework/
- http://la-cascade.ghost.io/layout-sur-12-colonnes-avec-flexbox/
- https://github.com/w-jerome/levity