Skip to content

Instantly share code, notes, and snippets.

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

Vasilj Milošević eboye

🏠
Working from home
View GitHub Profile
@eboye
eboye / AppRun
Last active December 19, 2022 00:09
Repack Binance deb as AppImage
#!/bin/sh
function readlink_file()
{
next_path=$1
while [ "$i" != 10 ] && [ "x$next_path" != "x$path" ]; do
path=$next_path
next_path=$(readlink "$path" || echo $path)
i=`expr $i + 1`
done
@keilmillerjr
keilmillerjr / Creating an AUR Package.md
Last active June 6, 2024 14:49
How to create and manage an AUR package. #AUR #ARCH #makepkg #PKGBUILD
@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@Tras2
Tras2 / cloudflare-ddns-update.sh
Last active July 1, 2024 20:06
A bash script to update a Cloudflare DNS A record with the external IP of the source machine
#!/bin/bash
# A bash script to update a Cloudflare DNS A record with the external IP of the source machine
# Used to provide DDNS service for my home
# Needs the DNS record pre-creating on Cloudflare
# Proxy - uncomment and provide details if using a proxy
#export https_proxy=http://<proxyuser>:<proxypassword>@<proxyip>:<proxyport>
# Cloudflare zone is the zone which holds the record
@rohankhudedev
rohankhudedev / opcache.ini
Last active July 3, 2024 13:45
Best Zend OpCache Settings / Tuning / Configurations
[opcache]
; Determines if Zend OPCache is enabled
opcache.enable=1
; Determines if Zend OPCache is enabled for the CLI version of PHP
;opcache.enable_cli=1
; The OPcache shared memory storage size.
opcache.memory_consumption=512
var SphereControls = function (camera, domElement, config) {
var self = this;
config = config || {};
domElement = ( domElement !== undefined ) ? domElement : document;
domElement.addEventListener( 'mousedown', onDocumentMouseDown, false );
domElement.addEventListener( 'mousemove', onDocumentMouseMove, false );
domElement.addEventListener( 'mouseup', onDocumentMouseUp, false );
@anhphamt
anhphamt / install_supervisord_centos.md
Last active February 22, 2022 04:00 — forked from fadhlirahim/installing_supervisor_macosx.md
Setting up supervisord in Mac OSX or CENTOS

Raise Open File Limits in OS X

in OS X 10.4 to macOS sierra 10.12 and maybe higher!

Create Launcher Script:

/Library/LaunchDaemons/limit.maxfiles.plist

Copy this entire code block and paste it into your terminal and push Return to create this file for you with correct permissions. It will (probably) ask for your password:

@jsit
jsit / soundcloud.php
Last active June 7, 2021 05:12
PHP preg_replace strings for AMP HTML extensions
$body = preg_replace( '/<iframe\b[^>]*soundcloud.com\/tracks\/(\d*).*"[^>]*>(.*?)>/', '<amp-soundcloud height=300 layout="fixed-height" data-trackid="$1" data-visual="true"></amp-soundcloud>', $body );
@erichrobinson
erichrobinson / README.md
Last active June 23, 2024 18:44
SwitchResX Configuration

#SwitchResX Settings for LG 21:9 UltraWide

SwitchResX is a utility that allows users to override the default resolution settings in OSX. For more information, including download links, vist http://www.madrau.com/ .

##Disabling System Integrity Protection (SIP)

If you are running OSX 10.11 or higher, SIP must be disabled. To disable SIP do the following:

  • Boot into the recovery partition by pressing CMD + R when starting up your Mac.
  • Once in recovery mode, open a terminal window.
  • Type the command csrutil disable