Skip to content

Instantly share code, notes, and snippets.

View guemidiborhane's full-sized avatar
👷‍♂️
Pretending to work on something important

Borhaneddine Guemidi guemidiborhane

👷‍♂️
Pretending to work on something important
View GitHub Profile
@guemidiborhane
guemidiborhane / install-arch-linux-lvm-luks-dell-xps-15-7590.md
Created June 2, 2024 09:57 — forked from chrisleekr/install-arch-linux-lvm-luks-dell-xps-15-7590.md
Install Arch Linux with Full Disk Encryption (LVM on LUKS) for Dell XPS 15 7590
@guemidiborhane
guemidiborhane / build_home
Last active February 1, 2023 14:02
script to run YADM to setup `home`
#!/bin/sh
# vim: set ft=sh sw=4 et :
yay -S --noconfirm yadm
yadm clone https://github.com/guemidiborhane/dotfiles.git -b yadm -f
yadm restore --staged $HOME
yadm checkout -- $HOME
yadm bootstrap
From 8fd6114648a02e92cfeccd8be1c0bbefa7ce6db7 Mon Sep 17 00:00:00 2001
From: Borhaneddine GUEMIDI <guemidiborhane@gmail.com>
Date: Fri, 11 Jun 2021 03:09:36 +0100
Subject: [PATCH] :sparkles: Add kitty as shell option
---
app/src/lib/shells/linux.ts | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/app/src/lib/shells/linux.ts b/app/src/lib/shells/linux.ts
@guemidiborhane
guemidiborhane / main.c
Created October 24, 2018 06:38
morse-decoder-encoder
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
static const char *alpha[] = {
".-", //A
"-...", //B
"-.-.", //C
"-..", //D
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#define MAX_STR_SIZE 20
#define PERSONS_TO_SAVE_FILE "evacuation_plan.txt"
enum zipcode
#include <stdio.h>
int main(void) {
int a,b, op;
op = 5;
printf("Enter the value of A: ");
scanf("%i", &a);
printf("Enter the value of B: ");
scanf("%i", &b);
(function (file) {
var fs = require('fs'),
_ = require('underscore');
if (fs.existsSync(file)) {
_.mixin({
deepExtend: require('underscore-deep-extend')(_)
});
_.deepExtend(elixir.config, JSON.parse(fs.readFileSync(file, 'utf8')));
let obj = {}
let file = require('fs').readFileSync(__dirname + '/../../../../.js.env', 'utf8')
file.toString().split('\n').forEach(function (line) {
// matching "KEY' and 'VAL' in 'KEY=VAL'
var keyValueArr = line.match(/^\s*([\w\.\-]+)\s*=\s*(.*)?\s*$/)
// matched?
if (keyValueArr != null) {
var key = keyValueArr[1]
// default undefined or missing values to empty string
Elixir = require('laravel-elixir')
config = Elixir.config
browserify = require('browserify')
gulp = require('gulp')
source = require('vinyl-source-stream')
path = require('path')
coffeeify = require('coffeeify')
###
# This task run the given coffee files through browserify
@guemidiborhane
guemidiborhane / tmuxme
Created February 5, 2016 23:28
This is my setup for working on rails projects in vi and tmux. Thanks to http://www.tofu.org/drupal/node/183 for inspiration. If it isn't a rails project, just open the directory with default tmux stuff.
#!/bin/bash
#
# Usage: tmuxme
# creates a tmux session with the name of the current directory
# if the current directory is a rails project, sets up 3 windows:
# server, console, and vim.
#
SESSION=$(basename $(pwd))