Skip to content

Instantly share code, notes, and snippets.

View a4h8's full-sized avatar
▪️
refactoring

Anis Mula a4h8

▪️
refactoring
View GitHub Profile
@a4h8
a4h8 / keybase.md
Last active July 10, 2022 23:32
Keybase verification

Keybase proof

I hereby claim:

  • I am a4h8 on github.
  • I am a4h8 (https://keybase.io/a4h8) on keybase.
  • I have a public key ASATAbWTX13Hp3I2dsJLZAEYuErJiaS0yS0Wjk6Bo1dRlQo

To claim this, I am signing this object:

@a4h8
a4h8 / README.md
Last active June 26, 2021 03:22 — forked from dayne/README.md
Cowsay Fortunes

Chef essentials training result

... a cowsay fortune tool

Requirements

Dependencies

  • cowsay
  • fortune
  • lolcat Setup's
@a4h8
a4h8 / rails_setup.sh
Created May 20, 2021 05:23 — forked from mzaidannas/ubuntu_setup.sh
Ubuntu Initial Setup
#!/usr/bin/env bash
# OpenSSL 1.0 required for depreciated ruby versions
sudo apt install -y libssl1.0-dev
rbenv install 2.3.0
sudo apt install -y libssl-dev
rbenv install 3.0.0
# Ask for sudo password
@a4h8
a4h8 / .api.sh
Last active April 23, 2021 06:25
Terminal Configuration for ohmyzsh
# ~/.api.sh
# Weather Report
# WEATHER_APIKEY="<YOUR_API>"
# WEATHER_CITY_ID='<CITY_ID>'
# WEATHER_UNITS="metric"
# WEATHER_LANG="FR"
# WEATHER_API="https://api.openweathermap.org/data/2.5/weather?id=$WEATHER_CITY_ID&units=$WEATHER_UNITS&lang=$WEATHER_LANG&appid=$WEATHER_APIKEY"
@a4h8
a4h8 / 01-generate-ed25519-ssh-key.sh
Created April 22, 2021 01:06 — forked from grenade/01-generate-ed25519-ssh-key.sh
generate ed25519 ssh and gpg/pgp keys and set file permissions for ssh keys and config
#!/bin/bash
# generate and add new ed25519 ssh key
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <rthijssen@gmail.com>"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
# set local file permissions
chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
@a4h8
a4h8 / win10-sshd.md
Created April 22, 2021 01:05 — forked from lelegard/win10-sshd.md
Installing Windows 10 "built-in" SSH Server

Installing Windows 10 "built-in" SSH Server

Starting with Windows 10 build 1709, Windows integrates a port of OpenSSH, client and server.

This note describes how to install and configure the OpenSSH server sshd and run PowerShell scripts on a remote Windows server, from a Unix system, using SSH and public key authentication (no password).

Prerequisites: We need the Windows Local Security Policy Editor (secpol.msc). On Windows 10 Home edition, this tool is not present and you need to install it

@a4h8
a4h8 / readme.md
Created March 19, 2021 22:52 — forked from jimmywarting/readme.md
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@a4h8
a4h8 / profile.ps1
Created January 3, 2021 01:16 — forked from timsneath/profile.ps1
PowerShell template profile: adds some useful aliases and functions
### PowerShell template profile
### Version 1.03 - Tim Sneath <tim@sneath.org>
### From https://gist.github.com/timsneath/19867b12eee7fd5af2ba
###
### This file should be stored in $PROFILE.CurrentUserAllHosts
### If $PROFILE.CurrentUserAllHosts doesn't exist, you can make one with the following:
### PS> New-Item $PROFILE.CurrentUserAllHosts -ItemType File -Force
### This will create the file and the containing subdirectory if it doesn't already
###
### As a reminder, to enable unsigned script execution of local scripts on client Windows,
@a4h8
a4h8 / WSL-dns-resulotion-wsl2.md
Last active October 7, 2020 19:29
How to fix No internet connectivity from WSL2 Ubuntu nd Debian

How to fix DNS resolution WSL 2

  1. Create /etc/wsl.conf to prevent WSL from generating /etc/resolv.conf automatic.

    sudo touch /etc/wsl.conf

  2. Edit wsl.conf.

    sudo vi /etc/wsl.conf

  3. Add the following line.