Skip to content

Instantly share code, notes, and snippets.

View keglostephane's full-sized avatar

KEGLO DODZI keglostephane

View GitHub Profile
@alexispurslane
alexispurslane / tramp-distrobox-layer.el
Last active May 31, 2025 20:42
Want to use Emacs's TRAMP to transparently enter containers you're using as distroboxes/devcontainers? Here's how.
(defun user/tramp-layer ()
"Enable TRAMP to use distrobox to transparently enter containers."
(use-package tramp
:commands (eshell shell term ansi-term)
:custom
(tramp-histfile-override "/dev/null")
:config
(add-to-list 'tramp-remote-path 'tramp-own-remote-path) ; make sure TRAMP/any shell you use checks the path variable of the container as well as its own
(message "Loading tramp...")
;; TRAMP 2.7.1 will have distrobox built in, so this won't be necessary for much longer!
@fahimxyz
fahimxyz / MobileFirstMethod.css
Created February 6, 2019 05:41
Responsive Breakpoint ( CSS Media Queries for Desktop, Tablet, Mobile )
## Mobile First Method
/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {
}
/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {
@pitrk
pitrk / _mock_file_with_string.md
Last active November 28, 2024 21:12
Mock file with string in Python

Mock file with string in Python

This is an example on how to mock a file with string.

Use case

Testing a function which opens a file and does some kind of operation on it.

About the example

@derekbtw
derekbtw / create-script.sh
Created April 14, 2017 14:37
Bash script to create a header for bash scripts
#!/bin/bash -
#title :mkscript.sh
#description :This script will make a header for a bash script.
#author :bgw
#date :20111101
#version :0.4
#usage :bash mkscript.sh
#notes :Install Vim and Emacs to use this script.
#bash_version :4.1.5(1)-release
#==============================================================================
@CrazyMath
CrazyMath / models.py
Last active June 27, 2020 21:06
Singleton Model
from django.db import models
from django.core.cache import cache
class SingletonModel(models.Model):
class Meta:
abstract = True
def delete(self, *args, **kwargs):
pass
@svetlemodry
svetlemodry / .gemrc
Created February 28, 2016 17:49
Jekyll on Fedora
gem:
--bindir ~/.local/bin
--no-ri --no-rdoc
@rxaviers
rxaviers / gist:7360908
Last active June 21, 2025 15:20
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue: