Skip to content

Instantly share code, notes, and snippets.

View derhasi's full-sized avatar
💚
Life is green!

Johannes Haseitl derhasi

💚
Life is green!
  • Nuremberg, Germany
  • 10:54 (UTC +02:00)
View GitHub Profile
@stephenway
stephenway / README.md
Last active April 13, 2024 21:45
BEMIT Cheatsheet
@webflo
webflo / gist:a55dbfd92da8d5534585
Created December 12, 2014 17:22
repo overwrite
{
"name": "reload/drupal-composer-project",
"description": "Composer template for Drupal projects",
"repositories": [
{
"type": "composer",
"url": "https://gist.githubusercontent.com/webflo/5ebd4103f374779882e6/raw/07c263f83194448bd13503cc62fcca554e05f955/composer.json"
},
{
"type": "composer",
@webflo
webflo / composer.json
Created December 12, 2014 17:02
D7 Composer
{
"name": "fweber/foo.dev",
"authors": [
{
"name": "Florian Weber",
"email": "florian.weber@ueberbit.de"
}
],
"minimum-stability": "dev",
"prefer-stable": true,
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active January 16, 2024 01:17
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@okunishinishi
okunishinishi / Remove all git tags
Created March 8, 2014 03:12
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
@derhasi
derhasi / drupal_hackedgit.md
Last active December 25, 2021 16:57
Script to get a diff of a Drupal dev project from git and write the diff to the projects folder: `bash check_hacked.sh $PROJECTNAME`.

Check hacked status from git

This small script provides some code to check a project of your installation (located in .../www) against the associated git commit on drupal.org.

Notice: currently the root path and temp directory are hardcoded.

Examples

Check status of views module.

@atimb
atimb / find-empty-dir-in-svn.rb
Last active May 10, 2018 22:52 — forked from mfn/find-empty-dir-in-svn.rb
Ruby script to find top-level empty directories in a working SVN directory tree (forked and fixed because original script was not properly working for more complicated directory structure)
##
# Ruby script to find top-level empty directories in a working SVN directory tree
#
# A directory is considered empty, if there are zero files reachable through this directory (excluding
# files under .svn directories). That means that a directory containing other empty directories is
# also empty (recursively). The algorithm will consolidate the output so that it only contains
# top-level empty directories, but not their sub-directories.
#
# The output of this script can be used, for example to remove non-used parts of a SVN repository:
# ruby empty_dirs.rb | xargs svn del
@Anks
Anks / package.json
Created August 20, 2012 08:32
Easy local development with a node.js proxy
{
"name": "your-app-name",
"version": "0.0.1",
"private": true,
"dependencies": {
"http-proxy": "0.8.x",
"connect": "2.3.x"
}
}
@emilisto
emilisto / injection-proxy.js
Created May 25, 2012 10:39
A content replacing proxy in node.js
//
// injection-proxy.js
// Emil Stenqvist <emsten@gmail.com>
//
// Free for all!
//
// A content-replacing proxy in node.js.
//
// I made this for debugging JavaScript on a live website.
//
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible).
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export.
var FORMAT_ONELINE = 'One-line';
var FORMAT_MULTILINE = 'Multi-line';
var FORMAT_PRETTY = 'Pretty';
var LANGUAGE_JS = 'JavaScript';
var LANGUAGE_PYTHON = 'Python';