Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Muhammad Hussein Ammari xmha97

🏠
Working from home
View GitHub Profile
@ebraminio
ebraminio / time-calculator.html
Last active Feb 8, 2022
dead simple calculator for time
View time-calculator.html
<textarea id=input style="width: 50%; height: 5em; white-space: pre" oninput="result.innerText = calculate(this.value)"></textarea>
<div id=result></div>
<script>
window.onload = () => {
input.value = '1d 2h 3m 4s + 4h 5s - 2030s + 28h';
input.dispatchEvent(new Event('input'))
};
function calculate(input) {
const units = Object.entries({ d: 86400, h: 3600, m: 60, s: 1 });
const seconds = eval(
View amozeshyar_bypass_igap.user.js
// ==UserScript==
// @name Amozeshyar Bypass iGap
// @version 1
// @description Bypass Amozeshyar iGap code
// @author Yedoost
// @match http://stdn.iau.ac.ir/Student/captchaProcess
// @match http://stdn.iau.ac.ir/Student/manageAccount
// @grant none
// ==/UserScript==
@MrOtherGuy
MrOtherGuy / fx-css-variables.txt
Last active Mar 5, 2022
CSS variables used by Firefox
View fx-css-variables.txt
main-window
***********************
--arrowpanel-background
--arrowpanel-border-color
--arrowpanel-color
--arrowpanel-dimmed
--arrowpanel-dimmed-even-further
--arrowpanel-dimmed-further
--arrowpanel-padding
--autocomplete-popup-background
@BrianTJackett
BrianTJackett / WT-profiles.json
Last active May 17, 2021
Windows Terminal settings.json file with included shells (profiles) for PowerShell v7, Zsh, and more.
View WT-profiles.json
// This file was initially generated by Windows Terminal 1.0.1811.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@kasuken
kasuken / profiles.json
Created Jun 23, 2019
Windows Terminal settings and files
View profiles.json
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
@gustavomdsantos
gustavomdsantos / AutoHotKey script - Always-on-top.ahk
Last active Feb 3, 2022
AutoHotKey script that make any window Always-on-Top on Windows.
View AutoHotKey script - Always-on-top.ahk
; Press Ctrl+Shift+Space to set any currently active window to be always on top.
; Press Ctrl+Shift+Space again set the window to no longer be always on top.
; Source: https://www.howtogeek.com/196958/the-3-best-ways-to-make-a-window-always-on-top-on-windows
^+SPACE::
WinGetTitle, activeWindow, A
if IsWindowAlwaysOnTop(activeWindow) {
notificationMessage := "The window """ . activeWindow . """ is now always on top."
notificationIcon := 16 + 1 ; No notification sound (16) + Info icon (1)
}
View pi-hole_iran
# Ads
#--------------------------------
0.0.0.0 utop.ir
0.0.0.0 ad01.iranfilmplus.com
0.0.0.0 ad02.iranfilmplus.com
0.0.0.0 ad03.iranfilmplus.com
0.0.0.0 ad04.iranfilmplus.com
0.0.0.0 ad05.iranfilmplus.com
@sam0737
sam0737 / clock.html
Last active Mar 26, 2022
OBS Studio: A HTML page for showing current date and time in the video
View clock.html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
View termux-url-opener
#!/data/data/com.termux/files/usr/bin/zsh
#
# This is a termux-url-opener script to do diffrent tasks on my Android phone
#
#
#
# How to use this script
#############################
# Create the bin directory
# ➜ ~ mkdir bin
@Hrxn
Hrxn / show-cmd-context.reg
Last active Jul 7, 2021
Always show the 'Open Command Prompt' option in Windows context menu
View show-cmd-context.reg
Windows Registry Editor Version 5.00
; Always shows the CMD option (Open Command Prompt) in context menu
; No need for the Shift key anymore
; Removes the 'Extended' keyword from ../shell/cmd
[HKEY_CLASSES_ROOT\Drive\shell\cmd]
"Extended"=-
[HKEY_CLASSES_ROOT\Directory\shell\cmd]