This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Drush script to delete a text format (filter format) from the Drupal 7 database. | |
* | |
* Usage: | |
* drush scr path/to/delete_filter_format.drush.php --filter_format=filtered_html [--dry-run] | |
*/ | |
// Drush bootstrap for full Drupal access. | |
drush_bootstrap(DRUSH_BOOTSTRAP_DRUPAL_FULL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- For details of usage and explanation see: | |
--- https://dev.to/vonheikemen/how-to-install-astronvim-without-overriding-your-existing-neovim-configuration-1nke | |
local path_sep = vim.loop.os_uname().version:match('Windows') and '\\' or '/' | |
local join = function(...) return table.concat({...}, path_sep) end | |
local getpath = function(arg) | |
local path = vim.fn.stdpath(arg) | |
return vim.fn.substitute(path, [[\(.*\)\zsnvim]], 'astronvim', '') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
main() { | |
previous_file="$1" | |
file_to_edit=`select_file $previous_file` | |
if [ -n "$file_to_edit" ] ; then | |
"$EDITOR" "$file_to_edit" | |
main "$file_to_edit" |
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"syntax": "less", | |
"rules": { | |
"color-hex-case": ["lower", { | |
"message": "HEX цвета буквами строчными указывать следует" | |
}], | |
"color-named": ["never", { | |
"message": "Цвета ключевыми нельзя словами писать" | |
}], | |
"color-no-invalid-hex": [true, { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# === Optimized my.cnf configuration for MySQL/MariaDB (on Ubuntu, CentOS, Almalinux etc. servers) === | |
# | |
# by Fotis Evangelou, developer of Engintron (engintron.com) | |
# | |
# ~ Updated September 2024 ~ | |
# | |
# | |
# The settings provided below are a starting point for a 8-16 GB RAM server with 4-8 CPU cores. | |
# If you have different resources available you should adjust accordingly to save CPU, RAM & disk I/O usage. | |
# |
Better Drupal Building
- Custom glue should be accomplished with configuration first and PHP code second.
Configuration Management and Dependencies
- Use Composer (or Drush Make) to build your project and it's depencies.
- Store your work in files.
- Set your config directory above the webroot.
- Sync UUIDs across all developers.
Theming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
NewerOlder