Skip to content

Instantly share code, notes, and snippets.

View ayoubelmhamdi's full-sized avatar
🏠
Working from home

AYOUB EL MHAMDI ayoubelmhamdi

🏠
Working from home
View GitHub Profile
@netpoetica
netpoetica / Setting up Nginx on Your Local System.md
Last active November 13, 2024 17:24
Setting up Nginx on Your Local System

#Setting up Nginx on Your Local System ###by Keith Rosenberg

##Step 1 - Homebrew The first thing to do, if you're on a Mac, is to install homebrew from http://mxcl.github.io/homebrew/

The command to type into terminal to install homebrew is:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@demonixis
demonixis / PersonClass.js
Last active November 8, 2021 15:26
A basic Person class in JavaScript
/***********************************
* First method to create a classe *
* *********************************/
var Person = function (firstname, lastname, age) {
this.firstName = firstname;
this.lastName = lastname;
this.age = age;
this.setAge = function (age) {
@venkateshshukla
venkateshshukla / AndroidDevLinux
Last active September 19, 2023 04:20
Setting up your Linux for Android Application Development
Step 1. Preparation
--------------------
First take care of the dependencies for Android Application Development.
Dependencies are -
1. Java
2. ant
3. Eclipse and Android Development tools (IDE)
4. Android SDK and NDK
5. adb
@olasd
olasd / stream_to_youtube.sh
Created March 28, 2014 19:58
Stream video to youtube via ffmpeg
#! /bin/bash
#
# Diffusion youtube avec ffmpeg
# Configurer youtube avec une résolution 720p. La vidéo n'est pas scalée.
VBR="2500k" # Bitrate de la vidéo en sortie
FPS="30" # FPS de la vidéo en sortie
QUAL="medium" # Preset de qualité FFMPEG
YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2" # URL de base RTMP youtube
@Egyiastic
Egyiastic / IDM Reset.bat
Last active November 27, 2024 17:23
Reset Internet Download Manager
@Echo Off
Title IDM Trial Reset by http://arabia-geeks.blogspot.com/ & Color 57
@Echo Resetting your IDM License Brought to you by http://arabia-geeks.blogspot.com/
@Echo.
@Echo.
Pause
TASKKILL /F /IM IDMan.exe
@ECHO.
@echo Off HKEY_CURRENT_USER\Software\Classes\Wow6432Node\CLSID\{7B8E9164-324D-4A2E-A46D-0165FB2000EC} [7] >permdel.txt
@XVilka
XVilka / BiDiSupport.md
Last active February 14, 2025 16:27
BiDirectional Text

This gist will show the support of BiDirectional text in the terminal emulators and console programs. You can read more about the standardization efforts at the dedicated page of FreeDesktop Terminal BiDi working group.

How to test

Logical Order ◀ ◀ ◀ RTL LTR ▶ ▶ ▶
WHAT IS UNICODE؟ in arabic in arabic ؟EDOCINU SI TAHW ؟EDOCINU SI TAHW in arabic
ما هو الترميز الموحد يونيكود؟ in Arabic ما هو الترميز الموحد يونيكود؟ in Arabic
@yanaga
yanaga / gist:a271e0412da5b575d171
Created April 15, 2015 21:19
Create a 4G swap file on Ubuntu
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
cat << EOF | sudo tee -a /etc/fstab
/swapfile none swap sw 0 0
EOF
@xCoreDev
xCoreDev / create-swap.sh
Created October 1, 2015 20:18
Create a 4GB swapfile
#!/bin/sh
# size of swapfile in megabytes
swapsize=4096
# does the swap file already exist?
grep -q "swapfile" /etc/fstab
# if not then create it
if [ $? -ne 0 ]; then
@devsalman
devsalman / apksigner
Created March 24, 2016 06:58
Script to sign android apk using keystore
#!/bin/sh
filename=$(basename "$1")
filename=${filename%.*}
printf "Badr Interactive APK Signer V.1.0 \n"
printf "================================= \n"
if [ -z "$ANDROID_HOME" ]; then
printf "cannot find ANDROID_HOME environment variable \n"