Skip to content

Instantly share code, notes, and snippets.

View benyaminl's full-sized avatar
😬
Crazy with C#

Benyamin Limanto benyaminl

😬
Crazy with C#
View GitHub Profile
@rbreaves
rbreaves / Firefox-global-menu-fix.sh
Last active May 2, 2024 06:35
Firefox AUR global menu fix for any distro
#!/bin/bash
curl -s https://raw.githubusercontent.com/89luca89/distrobox/main/install | sudo sh
sudo apt install podman
distrobox-create --name arch --image docker.io/library/archlinux:latest
distrobox-enter arch
# Pre-compiled
@aqt
aqt / enable_firefox_maximize.ahk
Created August 26, 2021 17:05
Firefox disables maximization on popup window types, this autohotkey script re-enables that functionality
#Persistent
Gui +LastFound
shellMessage(wParam, lParam) {
if (wParam = 1) { ; HSHELL_WINDOWCREATED
hWnd := lParam
WinGetClass, winClass, ahk_id %hWnd%
if (winClass = "MozillaDialogClass") {
Sleep, 200 ; Quick fix, no effect if too fast
@oofnikj
oofnikj / answerfile
Last active May 28, 2024 12:58
Install Docker on Termux
KEYMAPOPTS="us us"
HOSTNAMEOPTS="-n alpine"
INTERFACESOPTS="auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
hostname alpine
"
TIMEZONEOPTS="-z UTC"
@benyaminl
benyaminl / OpenWithVim-Add.reg
Last active August 18, 2022 01:26
This's a Regedit Key for Windows that's used for adding and remove Open With Vim on Windows Folder and Background Folder, and Windows Library. This make Vim works like Opening Project in Open VS Code Functionality
REGEDIT4
[HKEY_CLASSES_ROOT\Folder\shell\VimHere]
@="Open with &Vim"
"Icon"="C:\\Apps\\vim\\gvim.exe,0"
[HKEY_CLASSES_ROOT\Folder\shell\VimHere\command]
@="\"C:\\Apps\\vim\\gvim.exe\" \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\VimHere]
@="Open with &Vim"
@MuhammadSaim
MuhammadSaim / rarreg.key
Last active June 1, 2024 03:30
Step 1: Create a file called rarreg.key Step 2: Paste into the file the raw content of this gist Step 3: Go to Winrar install directory (by default => c:\ProgramFiles\WinRAR\ ) Step 4: Paste the rarreg.key into WinRAR directory Step 5: Enjoy
RAR registration data
WinRAR
Unlimited Company License
UID=4b914fb772c8376bf571
6412212250f5711ad072cf351cfa39e2851192daf8a362681bbb1d
cd48da1d14d995f0bbf960fce6cb5ffde62890079861be57638717
7131ced835ed65cc743d9777f2ea71a8e32c7e593cf66794343565
b41bcf56929486b8bcdac33d50ecf773996052598f1f556defffbd
982fbe71e93df6b6346c37a3890f3c7edc65d7f5455470d13d1190
6e6fb824bcf25f155547b5fc41901ad58c0992f570be1cf5608ba9
@YliesC
YliesC / move-windows-buttons-from-right-to-left.sh
Last active August 23, 2023 02:05
[Move windows buttons from right to left on GNOME]
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/DecorationLayout': <'close,minimize,maximize:menu'>}"
gsettings set org.gnome.desktop.wm.preferences button-layout 'close,minimize,maximize:menu'
@Jiab77
Jiab77 / real-time-php-fpm-status.md
Last active May 5, 2024 16:13
Real-time PHP-FPM Status

Real-time PHP-FPM Status

This gist will explain you how to enable an undocumented feature of PHP-FPM which will give a real-time performance stats.

Everybody knows the famous phpinfo() and the page it generates, right? Then the real-time PHP-FPM status page design is very similar.

image

Some informations from the top are not displayed to avoid security issues.

Enable PHP-FPM Status

@Jiab77
Jiab77 / install-elementary-os-juno-on-secureboot-efi-enabled-computer.md
Last active May 19, 2024 17:57
Install ElementaryOS Juno on SecureBoot + EFI enabled computer

Install ElementaryOS Juno on SecureBoot + EFI enabled computer

Yet another night passed to fight with the machine. 💪

I was really happy to know that the latest version of ElementaryOS were out so I could not wait to install it on my latest laptop Acer Predator. 🤘 But... as usual, it was not without troubles...

Compatible with SecureBoot + EFI enabled computers? Awesome!!

But not really in fact... It might work for some brands but for my Acer Predator... not at all. Well it can work but will requires the steps explained below.

@santiaago
santiaago / Program.cs
Created August 13, 2018 11:05
Simple C# NATS example
using System;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using NATS.Client;
namespace worker
{
class Program
{
@pedroarthur
pedroarthur / userChrome.css
Created July 8, 2018 04:16
Change Firefox UI to i) auto hide address bar; and ii) hide tab bar when there is only one tab opened
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
/*
* From https://gist.github.com/BenoitAverty/af633ee20e27f48f9ba7178451432206
*/
#tabbrowser-tabs, #tabbrowser-tabs > .tabbrowser-arrowscrollbox {
min-height: 0 !important;
}