Skip to content

Instantly share code, notes, and snippets.

View shrysr's full-sized avatar

Shreyas Ragavan shrysr

View GitHub Profile
; http://emacs.stackexchange.com/questions/1051/copy-region-from-emacs-without-newlines
(defun my-copy-simple (&optional beg end)
"Save the current region (or line) to the `kill-ring' after stripping extra whitespace and new lines"
(interactive
(if (region-active-p)
(list (region-beginning) (region-end))
(list (line-beginning-position) (line-end-position))))
(let ((my-text (buffer-substring-no-properties beg end)))
(with-temp-buffer
(insert my-text)
@shrysr
shrysr / wordpress-indieweb-custom.php
Created August 11, 2019 23:25 — forked from glueckpress/wordpress-indieweb-custom.php
[WordPress][IndieWeb] Customise relme list of the IndieWeb plugin.
<?php
/**
* Plugin Name: IndieWeb | Customisations
* Description: Customises relme list of the IndieWeb plugin.
* Version: 2019.01
* Author: Caspar Hübinger
* Author URI: http://glueckpress.com/
* License: GNU General Public License v2 or later
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
@shrysr
shrysr / Freenode IRC.md
Created July 16, 2019 03:05 — forked from yeyewangwang/Freenode IRC.md
Freenode Nickserv Commands

Connect

/server chat.freenode.net

Nick

@shrysr
shrysr / README.md
Created October 30, 2017 01:44 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.

For more about AWS and AWS Certifications and updates to this Gist you should follow me @leonardofed