Skip to content

Instantly share code, notes, and snippets.

View Paulmicha's full-sized avatar

Paul Michalet Paulmicha

  • Apprenti redirectionniste
  • Porto Alegre, Brasil
  • X @Paulmicha
View GitHub Profile
@Paulmicha
Paulmicha / cloudSettings
Last active June 23, 2021 20:00
VSCodium Settings Sync
{"lastUpload":"2021-06-23T20:00:14.965Z","extensionVersion":"v3.4.3"}
@Paulmicha
Paulmicha / keybase.md
Created December 21, 2017 16:01
verifying myself on keybase.

Keybase proof

I hereby claim:

  • I am paulmicha on github.
  • I am paulmicha (https://keybase.io/paulmicha) on keybase.
  • I have a public key ASCQ_neRPmONXS9ogV7wR0M3nkxmJ4EiJD08hV2CNActRgo

To claim this, I am signing this object:

@Paulmicha
Paulmicha / cloudSettings
Last active February 23, 2022 22:52
Visual Studio Code Settings Sync Gist
{"lastUpload":"2022-02-23T22:52:49.754Z","extensionVersion":"v3.4.3"}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>author</key>
<string>Mattia Astorino</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>name</key>
<string>Material-Theme-Darker</string>
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@Paulmicha
Paulmicha / Crontab.sh
Last active June 23, 2018 00:36
Command-line / Shell / Bash Scripting - Snippets, Notes & Whatnot
#!/bin/bash
# -*- coding: UTF8 -*-
##
# Command-line / Shell / Bash - snippets : Cron-related snippets
# Tested on Debian 6 ("Squeeze")
#
# Sources :
# https://drupal.org/node/23714
# http://www.linuxquestions.org/questions/linux-general-1/crontab-every-10-minutes-117651/
<?php
/**
* Drupal 7 API snippet - Programmatically render blocks
*
* sources :
* http://www.only10types.com/2012/05/drupal-7-render-block-in-template-file.html
* http://drupal.stackexchange.com/questions/5775/programmatically-printing-a-block
* https://www.drupal.org/node/957038
*/
@Paulmicha
Paulmicha / drupal_entity_reference_helpers.php
Created February 14, 2013 09:57
Drupal 7 helper functions : get nodes referring to a given nid through a given entity reference field, and the same, but filtered by type
<?php
/**
* Drupal 7 helper functions for Entity Reference fields
*
* @author Paulmicha
* @version 0.1
*/
@Paulmicha
Paulmicha / git_force_reset_snippet.sh
Last active October 13, 2015 09:37
Git - Snippets, Notes & Whatnot Contents : - git_snippets.sh : usual tasks snippets - git_force_reset_snippet.sh : complete repository reset/clean/pull
#!/bin/bash
# -*- coding: UTF8 -*-
##
# Git - complete repository reset/clean/pull
#
# Source :
# @see http://eosrei.net/articles/2012/11/force-guaranteed-git-pull-success-story
#