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 / svn_cs.sh
Created October 24, 2012 10:34
Svn - Versionnig of a project with existing sources (+ how to remove all ".svn" dirs recursively)
#!/bin/bash
# -*- coding: UTF8 -*-
##
# SVN shell commands cheat sheet
# Tested in Debian 6 ("Squeeze")
#
# Prerequisites : svn server & repository
#
# Sources :
@Paulmicha
Paulmicha / drush_cs.sh
Last active July 5, 2018 09:17
Drush - usual commands cheatsheet
#!/bin/bash
# -*- coding: UTF8 -*-
##
# Drush usual commands cheat sheet
# Prerequisites : drush installed
#
# Sources:
# http://drushcommands.com/
# http://highrockmedia.com/blog/features-drush-drupal-goodness
@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
#
@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
*/
<?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 / 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/
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
# 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'
#
<?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>
@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"}