Skip to content

Instantly share code, notes, and snippets.

View cben's full-sized avatar

Beni Cherniavsky-Paskin cben

View GitHub Profile
@joeyates
joeyates / run_ruby_tests.sh
Last active January 23, 2017 09:44
Running MRI Ruby Tests
# While modifying Ruby source, it's handy to only run the tests on the file you're modifying.
# See:
# * doc/contributing.rdoc in Ruby source,
# * https://bugs.ruby-lang.org/projects/ruby/wiki/DeveloperHowto
# Run core tests:
make test
# Run all tests:
@thedod
thedod / .gitignore
Last active December 22, 2021 23:38
Hyde Park - githubless gh-pages with gitolite
config.py
env-*
*.pyc
@XVilka
XVilka / BiDiSupport.md
Last active June 17, 2025 16:01
BiDirectional Text

This gist will show the support of BiDirectional text in the terminal emulators and console programs. You can read more about the standardization efforts at the dedicated page of FreeDesktop Terminal BiDi working group.

How to test

Logical Order ◀ ◀ ◀ RTL LTR ▶ ▶ ▶
WHAT IS UNICODE؟ in arabic in arabic ؟EDOCINU SI TAHW ؟EDOCINU SI TAHW in arabic
ما هو الترميز الموحد يونيكود؟ in Arabic ما هو الترميز الموحد يونيكود؟ in Arabic
@tenderlove
tenderlove / h2_puma.rb
Last active August 14, 2024 06:10
Demo HTTP/2 server with Puma
require 'socket'
require 'openssl'
require 'puma/server'
require 'ds9'
class Server < DS9::Server
def initialize socket, app
@app = app
@read_streams = {}
@write_streams = {}
@orez-
orez- / git-stash-inbox.py
Last active October 2, 2021 16:18
Run through your git stashes, either committing them to branches or deleting them.
#!/usr/bin/env python2.7
import collections
import os
import re
import readline
import subprocess
tty_bold = '\x1b[1m'
tty_af = '\x1b[{}m'.format
@blomquisg
blomquisg / Debugging-miq-worker.md
Last active September 3, 2017 14:51
Debugging a MIQ Worker
  1. Remove the worker class name from class_names.rb
  2. Start your sever normally
  3. Make sure your provider is added to your appliance (for provider-specific workers like refreshers and event catchers)
  4. Run rails console (see rails script below)
@laughinghan
laughinghan / MathSON.md
Last active August 9, 2024 09:23
MathSON - JSON for Math Formulae

MathSON

Status: Draft 1 In Progress. This document is undergoing its first revision. Initial implementation has begun alongside editing Draft 1. Your feedback is hoped and dreamed of.

Mathematical Structured Object Notation is a JSON-based representation for most of the common subset of what LaTeX and Presentation MathML can

@aslakr
aslakr / Syntax-for-AsciiMath-in-Markdown.md
Last active March 8, 2021 13:21
Testing syntax for using AsciiMath in Markdown
title date
Syntax for AsciiMath in Markdown
2016-04-05

What syntax should be used for AsciiMath in Markdown?

@skateman
skateman / separate_worker.rb
Created April 19, 2016 08:03
Snippet to start a MiqWorker separately
MiqWebsocketWorker.delete_all
require_relative 'config/environment'
class MiqWebsocketWorker::Runner
def heartbeat
end
end
row = MiqWebsocketWorker.create_worker_record
guid = row.guid
@robertpainsi
robertpainsi / README.md
Last active July 24, 2025 16:14
How to reopen a pull-request after a force-push?

How to reopen a pull-request after a force-push?

Precodinitions

  • You need the rights to reopen pull requests on the repository.
  • The pull request hasn't been merged, just closed.

Instructions

  1. Write down the current commit hash of your PR-branch git log --oneline -1 <PR-BRANCH>
  2. Write down the latest commit hash on github before the PR has been closed.
  3. git push -f origin :