Skip to content

Instantly share code, notes, and snippets.

View boubkhaled's full-sized avatar
🗨️
الحمد لله على نعمة الإسلام

Khaled boubkhaled

🗨️
الحمد لله على نعمة الإسلام
View GitHub Profile
@boubkhaled
boubkhaled / git-scm.com.monkey.user.js
Created April 21, 2016 10:22
monkey script for git-scm.com/book
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://git-scm.com/book/*
// @grant none
// ==/UserScript==
@boubkhaled
boubkhaled / elbilad.net.monkey.user.js
Created April 29, 2016 17:26
Enable text selection
// ==UserScript==
// @name elbilad.net
// @namespace MyScripts
// @description Autoriser la sélection du text
// @include http://www.elbilad.net/*
// @version 1
// @grant none
// ==/UserScript==
$("#contenu *").css("-moz-user-select","text");
@boubkhaled
boubkhaled / miraath.user.js
Last active June 15, 2016 10:25
سكريبت تحديث عنوان الدرس script
// ==UserScript==
// @name miraath.net ميراث الأنبياء
// @namespace js
// @include http://www.miraath.net/radios.php?id=1
// @include http://miraath.net/radios.php?id=1
// @version 1
// @grant none
// ==/UserScript==
// Inject jQuery
@boubkhaled
boubkhaled / Github Webhook Tutorial.md
Last active April 29, 2021 14:00 — forked from jagrosh/Github Webhook Tutorial.md
Simple Github -> Discord webhook

Utiliser les Webhooks

Step 1 - Make a Discord Webhook

  1. Find the Discord channel in which you would like to send commits and other updates

  2. In the settings for that channel, find the Webhooks option and create a new webhook. Note: Do NOT give this URL out to the public. Anyone or service can post messages to this channel, without even needing to be in the server. Keep it safe! WebhookDiscord

Step 2 - Set up the webhook on Github

  1. Navigate to your repository on Github, and open the Settings
@boubkhaled
boubkhaled / vncserver_tightvnc_xubuntu_ubuntu.md
Last active November 25, 2020 14:28
Install tightvnc on ubuntu

source

Step 1

Start by opening a terminal and entering the following command to install TightVNC server and the XFCE desktop manager core files:

$ sudo apt install tightvncserver XFCE4 XFCE4-goodies

Step 2

After the packages are done installing, we need to configure a username and password that will be used to connect to the VNC server by a client. Create a password with this command:

@boubkhaled
boubkhaled / kill_sqlserver_database_processes.sql
Created March 17, 2021 08:55
kill SQL Server database processes
DECLARE @id bigint
DECLARE @temp TABLE(id bigint)
INSERT @temp SELECT spid FROM master.dbo.sysprocesses WHERE dbid = db_id('Database_Name')
WHILE EXISTS(SELECT TOP 1 1 FROM @temp)
BEGIN
SET @id = (SELECT TOP 1 id FROM @temp)
EXEC('kill ' + @id)
DELETE @temp WHERE id = @id
END
git config --global http.postBuffer 524288000
git clone http://github.com/large-repository --depth 1
cd large-repository
git fetch --unshallow
On Linux
Execute the following in the command line before executing the Git command:
@boubkhaled
boubkhaled / 50-ui-tips.md
Last active April 27, 2021 09:05
50 UI Tips

Twitter thread

Consistency matters, they say...🤔 Starting from today, I'll post one UI tip per day for the next 50 days! Follow this thread

💡Tip #01 - Set the fixed width of your buttons if they have a loading state Otherwise, they'll shrink when loading, and it looks terrible.

💡Tip #02 - Don't hide tips if it's unnecessary Developers tend to hide tips under icons/tooltips/popups. In this case, your users will be forced to hover every icon to read the tip. It'd be better to show tips right away, if possible. 😊

@boubkhaled
boubkhaled / TypeScript_In_One_Tweet.md
Last active May 10, 2021 10:57
Learn TypeScript in one tweet ~ Beginners guide

What is TypeScript? TypeScript is a typed superset of JavaScript that compiles to plain JavaScript which helps us build large scale applications with ease.

The main purpose of TS is to help developers be more productive by providing best in class tooling. (Eg. static type checking, editor intellisense, language features etc etc.)

Annotating your code isn't just about finding errors and validating the code before hand, it's also about documenting the code and conveying your intent more clearly to your future self and to other developers.

@boubkhaled
boubkhaled / 40+_High-Quality_Free_Resources_For_Web_Development.md
Last active May 25, 2021 09:31
40+ High-Quality Free Resources for Web Development