Skip to content

Instantly share code, notes, and snippets.

View Link-'s full-sized avatar
:octocat:

Bassem Dghaidi Link-

:octocat:
View GitHub Profile
@Link-
Link- / starship.toml
Created December 17, 2023 15:13
glich.stream starship configuration
command_timeout = 500
scan_timeout = 10
[character]
success_symbol = "[➜](bold green)"
error_symbol = " [λ](bold red)"
[aws]
disabled=true
@Link-
Link- / issue_comment.yaml
Last active January 26, 2024 06:50
Write your first workflow with GitHub Actions and GitHub APIs - beginner friendly tutorial!
name: Create a comment on new issues
on:
issues:
types: [opened]
permissions: write-all
jobs:
comment-with-action:
@Link-
Link- / self-signed-certificate-with-custom-ca.md
Last active April 8, 2021 21:45 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@Link-
Link- / osc_arabs.md
Last active July 2, 2020 20:16
Open Source Contributors in the Arab World

List has moved

I've moved the list here: https://github.com/Link-/Arab_OSC to allow for direction contributions

Arab OSC

List of the most influential Arab Open Source Contributors (Arab OSC)

This is a list of the most influential Arab Open Source Contributors. This list has been compiled based on recommendations and referrals from the community. Anyone can contribute to this list just create a Pull Request (PR)!

Open source contributions range from helping fix bugs, translation, providing design material, contributing to documentation or even being a core code contributor. It can take many forms. As such, the criteria to be on this list or to nominate someone for it are as follows:

@Link-
Link- / git_aliases
Created April 29, 2020 09:32
git useful aliases
alias.last=log -1 HEAD
alias.undo=reset --hard HEAD^
@Link-
Link- / vm-rp
Created September 28, 2017 10:21
Solution to a vector to matrix recoding problem
A is 100 dimensional vector containing integers N between [1 and 10] (inclusive) distributed at intervals of 10:
i.e.
at index x -> N
at index 1 -> 1
at index 11 -> 2
at index 21 -> 3
Problem:
-----------
Need to recode A into a 10x100 (Rows x Columns) matrix such that each column is a 10 dimensional vector y with y(x) = 1 the rest is 0

Keybase proof

I hereby claim:

  • I am Link- on github.
  • I am bassemdy (https://keybase.io/bassemdy) on keybase.
  • I have a public key whose fingerprint is BCB0 C423 4CFD 1D98 9318 B142 B0EB 1F1D 89CE 8D1F

To claim this, I am signing this object:

@Link-
Link- / Disk_operations
Last active January 12, 2017 20:13
Raspberry Pi - Useful Disk Operations
# OSX
# Covert .iso to .img
hdiutil convert -format UDRW -o /path/to/target.img /path/to/source.iso
# Backup microSD
sudo dd if=/dev/disk[n] of=/Users/username/SDCardBackup.dmg
# Copy image to microSD
diskutil unmountDisk /dev/disk[n]
dd bs=1m if=/Directory/of/image.img of=/dev/rdisk[n]
# Kill Ghost sshd sessions
pkill -o -u YOURUSERNAME sshd
@Link-
Link- / wifi_pass
Last active August 29, 2015 14:25
Get WiFi password of a connected network
#OS X
security find-generic-password -ga <SSID> | grep password
# Windows
netsh wlan show profile name=<SSID> key=clear