Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View d12frosted's full-sized avatar
⚠️
war time

Boris Buliga d12frosted

⚠️
war time
View GitHub Profile
@d12frosted
d12frosted / projectile-replace-regexp.el
Created February 27, 2016 12:30
A version of projectile-replace function that works with regexps. Be careful when using it on huge projects.
(defun projectile-replace-regexp ()
"Replace a string in the project using `tags-query-replace'.
Less efficient than `projectile-replace' but at least allows
usage of regular expressions. See
https://github.com/bbatsov/projectile/issues/576 for more details
on `projectile-replace' issue with regexps."
(interactive "P")
(let* ((old-text (read-string
(projectile-prepend-project-name "Replace: ")
(projectile-symbol-or-selection-at-point)))

Keybase proof

I hereby claim:

  • I am d12frosted on github.
  • I am d12frosted (https://keybase.io/d12frosted) on keybase.
  • I have a public key ASDWalCe2USqwkWak_d8e3TZ-jDp0M6w66lrUc4TQcLViQo

To claim this, I am signing this object:

@d12frosted
d12frosted / Tuto.md
Created October 10, 2016 12:40 — forked from yogsototh/Tuto.md
Starting Emacs in GUI with shell environment variables correctly set

Problem

When starting Emacs.app on Mac, the Emacs doesn't have some environment variable set correctly. Typically it is terrible when you use GPG, pinentry-mac, gpg-agent But also a lot of different variables used to make git works correctly, etc...

Solution

  1. Create the file ~/bin/init-app-env.sh:
@d12frosted
d12frosted / FindDependentAssets.cs
Created May 5, 2017 14:28 — forked from winkels/FindDependentAssets.cs
Unity editor script to find all assets that depend on the currently selected asset (i.e. assets that have serialized references to the selected asset). NOTE: Currently only works on OS X.
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class FindDependentAssets
{
[MenuItem("Assets/Find Dependent Assets")]
public static void FindAssets()
From 11f74c32af3f2f5385407672cdeabcd2b9079958 Mon Sep 17 00:00:00 2001
From: Boris Buliga <boris@d12frosted.io>
Date: Thu, 24 May 2018 21:19:03 +0300
Subject: [PATCH] increase size of remembered_data
---
src/pdumper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pdumper.c b/src/pdumper.c
From de7a046b4585db2d7cb054157f39bac608b04034 Mon Sep 17 00:00:00 2001
From: Boris Buliga <boris@d12frosted.io>
Date: Thu, 7 Jun 2018 08:59:13 +0300
Subject: [PATCH 1/1] allow to resize undecorated frame
Signed-off-by: Boris Buliga <boris@d12frosted.io>
---
src/nsterm.m | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
From 2724d26e5f6cc8bfa9c9ca86d35e3df396bcd2ba Mon Sep 17 00:00:00 2001
From: Boris Buliga <boris@d12frosted.io>
Date: Thu, 7 Jun 2018 20:11:34 +0300
Subject: [PATCH] allow to resize undecorated frame
---
src/nsterm.m | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/nsterm.m b/src/nsterm.m

Keybase proof

I hereby claim:

  • I am d12frosted on github.
  • I am d12frosted (https://keybase.io/d12frosted) on keybase.
  • I have a public key whose fingerprint is 5E8F 3282 1421 9477 A44A C324 0273 2815 0F06 4FA8

To claim this, I am signing this object:

From 95160c34b4f41e867761f29239db02e8e7232bbe Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Mon, 29 Oct 2018 15:37:35 +0000
Subject: [PATCH] Fix more drawing bugs in NS port (bug#32932)
* src/nsterm.m (ns_row_rect): New function.
(ns_clip_to_row): Remove function.
(ns_copy_bits): Fix mistake.
(ns_draw_fringe_bitmap): Stop using ns_clip_to_row.
(ns_draw_window_cursor): Stop using ns_clip_to_row and move
commit 23236f26d2f5839f2fdb7022039dcf102dcf3a3b
Author: Dhruva Krishnamurthy <address@hidden>
Date: Mon Dec 23 14:49:51 2019 -0800
Initialize ImageMagick runtime environment before use
diff --git a/src/image.c b/src/image.c
index 70d932f9ed..50d90ccb55 100644
--- a/src/image.c
+++ b/src/image.c