Skip to content

Instantly share code, notes, and snippets.

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

Fahmi Fisal Justryuz

🏠
Working from home
View GitHub Profile
@Justryuz
Justryuz / Elementor Horizontal Scrollbar on Mobile
Last active February 29, 2024 04:14
Horizontal Scrollbar on Mobile When Using Elementor
Step 1 – Navigate to Appearance > Customize > Additional CSS;
Step 2 – Add the following CSS code:
html,
body{
width:100%;
overflow-x:hidden;
}
@Justryuz
Justryuz / gist:6a4deef0ed2246efe16c1ad7050032fe
Created January 2, 2024 01:25
server closed the connection unexpectedly codeigniter 4
CodeIgniter\Database\Exceptions\DatabaseException
Unable to connect to the database.
Main connection [postgre]: pg_connect(): Unable to connect to PostgreSQL server: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
https://pasteboard.co/0Knh3LW7prvJ.png
Server conflict with main db
@Justryuz
Justryuz / gist:15d46fa66d2d0f9f66b0e53825e90867
Created December 28, 2023 07:04
name or service not known centos
name or service not known centos
Solution 1
I believe this is a problem on the thousands of the systems running Archlinux ARM and using NetworkManger.
In my case /etc/resolv.conf was a broken symlink to ../run/systemd/resolve/stub-resolv.conf.
NetworkManager can't populate the symlink, and the /etc/resolv.conf is empty. We have to:
Remove the broken symlink:
@Justryuz
Justryuz / msedge.exe
Created June 29, 2022 06:22
Edge failed to start because its side-by-side configuration
Edge failed to start because its side-by-side configuration is incorrect and restore history
Activation context generation failed for "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe". Dependent Assembly 83.0.478.58,language="*",type="win32",version="83.0.478.58" could not be found. Please use sxstrace.exe for detailed diagnosis.
C:\WINDOWS\system32>sxstrace.exe
WinSxs Tracing Utility.
Usage: SxsTrace [Options]
Options:
Trace -logfile:FileName [-nostop]
Enabling tracing for sxs.
@Justryuz
Justryuz / gist:f42ae4c14b860aee6f1c8783be997c3e
Created May 18, 2022 02:43
Enable TLS 1.2 on Windows Server 2008 R2
Problem
~~ Enable TLS 1.2 on Windows Server 2008 R2?
Solution
Recommends enabling and using the TLS 1.2 protocol on your server.
TLS 1.2 has improvements over previous versions of the TLS and SSL protocol which will improve your level of security.
By default, Windows Server 2008 R2 does not have this feature enabled.
Start the registry editor by clicking on Start and Run. Type in "regedit" into the Run field (without quotations).
@Justryuz
Justryuz / gist:0f26a8190a3f67a084acaa026b1e132e
Created June 18, 2021 09:22
tailwindcss break output css build #Upcoming Changes
risk - There are upcoming breaking changes: removeDeprecatedGapUtilities, purgeLayersByDefault
risk - We highly recommend opting-in to these changes now to simplify upgrading Tailwind in the future.
risk - https://tailwindcss.com/docs/upcoming-changes
1st Read this - https://tailwindcss.com/docs/upcoming-changes
Change // tailwind.config.js
@Justryuz
Justryuz / gist:0c42b0db0da87318a13c894079fd4437
Last active November 13, 2022 01:24
## Unlimited User License Sublime Text Windows Build 4107
## Unlimited User License Sublime Text Alpha 4107 Windows
Download & Install Sublime Text 4 Alpha 4107
Visit https://hexed.it/
Open file select sublime_text.exe
Go to Address: 80 38 00 and Change to FE 00 90
Export File and save it to location you want
Backup sublime_text.exe file (just rename)
Copy sublime_text.exe modified to directory Sublime Text 4 (i.e C:\Program Files\Sublime Text)

Keybase proof

I hereby claim:

  • I am Justryuz on github.
  • I am justryuz (https://keybase.io/justryuz) on keybase.
  • I have a public key whose fingerprint is E4CA 5F1D 20A4 23F7 847E 1B3C 4AF2 6238 4C66 B9A4

To claim this, I am signing this object: