Skip to content

Instantly share code, notes, and snippets.

View almokhtarbr's full-sized avatar
👋

almokhtarbr

👋
View GitHub Profile
@jioo
jioo / share-git-stash.md
Last active April 13, 2026 11:24
How to export stash as a file, and apply it to another computer

Stash current changes

  • git > Stash > Stash (Include Untracked)

Create stash as patch

git stash show "stash@{0}" -p > changes.patch

Apply patch

@IanColdwater
IanColdwater / twittermute.txt
Last active June 19, 2026 17:31
Here are some terms to mute on Twitter to clean your timeline up a bit.
Mute these words in your settings here: https://twitter.com/settings/muted_keywords
ActivityTweet
generic_activity_highlights
generic_activity_momentsbreaking
RankedOrganicTweet
suggest_activity
suggest_activity_feed
suggest_activity_highlights
suggest_activity_tweet
@ftes
ftes / _seating_plan.html.haml
Created November 20, 2019 21:26
Drag and drop in CSS grid with rails 6, stimulus and rails-ujs
-# https://johnbeatty.co/2018/03/09/stimulus-js-tutorial-how-do-i-drag-and-drop-items-in-a-list/
.grid--draggable{ 'data-controller': 'seating-plan',
'data-seating-plan-endpoint': endpoint,
'data-action': 'dragstart->seating-plan#onDragStart dragover->seating-plan#onDragOver dragenter->seating-plan#onDragEnter drop->seating-plan#onDrop dragend->seating-plan#onDragEnd' }
- seating_plan.each do |seat|
- if seat[:is_empty]
.grid__item.grid__item--empty{ 'data-row': seat[:row],
'data-col': seat[:col],
style: "grid-row: #{seat[:row]}; grid-column: #{seat[:col]};",
class: ('grid__item--border' if seat[:is_border]) }

This post is a collection of links about John De Goes that show some clear patterns of behavior:

  • De Goes defending white supremacists and misogynists.
  • De Goes attacking critics and accusing them (especially women) of lying.
  • De Goes engaging in targeted harassment, either directly (@druconfessions) or indirectly (e.g. via ClarkHat, a LambdaConf sponsor).

Despite all of the information in this post being publicly available and widely known, De Goes is frequently invited to Scala conferences to speak. The following are a few of his conference appearances in 2019:

@shak18
shak18 / MySQL.php
Last active September 16, 2023 14:42
Simple PHP MYSQLi Class
<?php
class MySQL {
private $link = null;
private $info = array(
'last_query' => null,
'num_rows' => null,
'insert_id' => null
);
private $connection_info = array();
@jlollis
jlollis / rbenv-commands.txt
Created May 3, 2019 17:26
Rbenv Cheatsheet
rbenv commands
# Install rbenv
$ brew install rbenv
# Completely uninstall rbenv
$ brew uninstall rbenv
# list all available versions
$ rbenv install -l
@vicgonvt
vicgonvt / deployment_guide.md
Last active July 17, 2025 01:37
Deployment Guide for Ubuntu Server from Scratch with Laravel
@sammyhenningsson
sammyhenningsson / shaf-error.md
Last active October 11, 2020 19:01
Specification of the shaf-error media type profile

The shaf-error media type profile

This profile describes a set of descriptors for generic error messages.

shaf-error descriptors

  • code: An identifier that describes the type of error.
  • title: A short string used for labeling the error.
  • message: A description with details about the error.
  • fields: An object with validation errors

Fields

@amrabdelwahab
amrabdelwahab / Research.md
Last active July 1, 2021 19:43
What is wrong with Ruby Project

What is wrong with Ruby? - Research project

Introduction

Our industry has a tendency to follow hypes without backing it with solid constructive claims. Over the past few years, trashing Ruby was one of these hypes, I also find that the so called "Senior Engineers" tend to promote hypes to appear more opinionated without really trying to explain the logical claims behind it, leaving the community beginners and new joiners really confused.

Goals of the project

  • Solidifying the claims behind the hype (Because I believe it stems from real problems, not just an empty hype) and eventually passing this to Ruby core team as an input from the community.
  • Explain these problems in a much simpler language to beginners and community new joiners.

Initial Focal points

@sammyhenningsson
sammyhenningsson / shaf-form.md
Last active October 11, 2020 19:00
Specification of the shaf-form media type profile

The shaf-form media type profile

This profile describes how a set of descriptors should be interpreted to turn a generic media type into a form (similar to HTML forms). For example, the HAL media type (application/hal+json) does not specify any semantics about forms, however we can add semantics about forms to a HAL document but providing a profile.

shaf-form descriptors

  • method: The HTTP method used for submitting the form.
  • href: The target uri that the form should be submitted to.
  • name: A string used to indentify the form.
  • title: A string used as title/label when showing the form in a user interface.