Skip to content

Instantly share code, notes, and snippets.

View gmrdad82's full-sized avatar
🎮
Gaming

Catalin Ilinca gmrdad82

🎮
Gaming
  • Castellon de la Plana, Spain
  • 22:14 (UTC +02:00)
  • YouTube @GmrDad82
View GitHub Profile
@gmrdad82
gmrdad82 / GamerDad-Countdown.lua
Created January 29, 2025 08:59
Sets a text source to act as a countdown timer to a specific date when the source is active.\n\nMade by Gamer Dad - YouTube.com/@gmrdad82
obs = obslua
source_name = ""
target_date = nil
prefix_text = ""
last_text = ""
activated = false
hotkey_id = obs.OBS_INVALID_HOTKEY_ID
-- Function to set the time text
set encoding=UTF-8
set exrc
set relativenumber
set nu
set hlsearch
set hidden
set noerrorbells
set tabstop=2 softtabstop=2 expandtab
set shiftwidth=2
set smartindent
# query_timer_instrumentation.rb
module QueryTimerInstrumentation
module_function
def before_query(_query)
@start_time = Time.now.to_i
end
def after_query(query)
end_time = Time.now.to_i
@gmrdad82
gmrdad82 / character_set_and_collation.rb
Created March 24, 2019 22:36 — forked from tjh/character_set_and_collation.rb
Convert all Rails table column collation and character set
#!/usr/bin/env ruby
# Put this file in the root of your Rails project,
# then run it to output the SQL needed to change all
# your tables and columns to the same character set
# and collation.
#
# > ruby character_set_and_collation.rb
DATABASE = ''
@gmrdad82
gmrdad82 / NERDTree.mkd
Created January 24, 2018 04:47 — forked from m3nd3s/NERDTree.mkd
My Vim Cheat Sheet

NERDTree

o.......Open files, directories and bookmarks....................|NERDTree-o|
go......Open selected file, but leave cursor in the NERDTree.....|NERDTree-go|
t.......Open selected node/bookmark in a new tab.................|NERDTree-t|
T.......Same as 't' but keep the focus on the current tab........|NERDTree-T|
i.......Open selected file in a split window.....................|NERDTree-i|
gi......Same as i, but leave the cursor on the NERDTree..........|NERDTree-gi|
s.......Open selected file in a new vsplit.......................|NERDTree-s|
gs......Same as s, but leave the cursor on the NERDTree..........|NERDTree-gs|

O.......Recursively open the selected directory..................|NERDTree-O|

@gmrdad82
gmrdad82 / docker_for_mac_disk_default_size.md
Created December 27, 2017 10:54 — forked from stefanfoulis/docker_for_mac_disk_default_size.md
How to resize Docker for Mac Disk image and set the default size for new images

Set the default size for new Docker for Mac disk images

If you are getting the error: No space left on device

Configuring the qcow2 size cap is possible in the current versions:

# my disk is currently 64GiB
$ /Applications/Docker.app/Contents/MacOS/qemu-img info ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
image: /Users/djs/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
@gmrdad82
gmrdad82 / iterm2-solarized.md
Created September 23, 2017 10:59 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

global
log 127.0.0.1 local0 notice
maxconn 50000
daemon
stats socket /tmp/proxystats level admin
defaults
log global
mode http
option httplog
option dontlognull
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"Alignment",
"ayu",
{
"atomic_save": true,
"caret_style": "phase",
"color_scheme": "Packages/ayu/ayu-mirage.tmTheme",
"ensure_newline_at_eof_on_save": true,
"folder_exclude_patterns":
[
"coverage",
"tmp",
".git",