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
#!/bin/bash
# check to see is git command line installed in this machine
IS_GIT_AVAILABLE="$(git --version)"
if [[ $IS_GIT_AVAILABLE == *"version"* ]]; then
echo "Git is Available"
else
echo "Git is not installed"
exit 1
fi
@eboye
eboye / version188.patch
Created September 15, 2022 00:02
TablePlus Version Patch for aur
diff --git a/PKGBUILD b/PKGBUILD
index 5ffe1e5..4384d1e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,20 +2,33 @@
# Maintainer: Henry Pham <huy at tableplus dot com>
pkgname=tableplus
-pkgver=0.1.186
-pkgrel=1
@eboye
eboye / git-fs-history.sh
Created April 5, 2022 23:57
list the given file's filesize next to each commit
#!/bin/sh
#
# list the given file's filesize next to each commit
# usage: git-fs-history path/to/file
#
if [ $# -ne 1 ]; then
echo "Error: invalid number of arguments."
exit 1
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Shift>Alt_L']" &&\
gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['<Alt>Shift_L']"
@eboye
eboye / Creating an AUR Package.md
Created December 20, 2021 04:56 — forked from keilmillerjr/Creating an AUR Package.md
How to create and manage an AUR package. #AUR #ARCH #makepkg #PKGBUILD
@eboye
eboye / opcache.ini
Created November 12, 2021 00:10 — forked from rohankhudedev/opcache.ini
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
@eboye
eboye / clean.sh
Created February 6, 2021 04:12 — forked from Iman/clean.sh
Free up disk space on Ubuntu - clean log, cache, archive packages/apt archives, orphaned packages, old kernel and remove the trash
#!/bin/sh
#Check the Drive Space Used by Cached Files
du -sh /var/cache/apt/archives
#Clean all the log file
#for logs in `find /var/log -type f`; do > $logs; done
logs=`find /var/log -type f`
for i in $logs
Verifying my Blockstack ID is secured with the address 16CmgshGmmSZ4StKKpU9HfFYDph3pNU2Wd https://explorer.blockstack.org/address/16CmgshGmmSZ4StKKpU9HfFYDph3pNU2Wd
127.0.0.1 a.stat.xiaomi.com
127.0.0.1 abtest.mistat.intl.xiaomi.com
127.0.0.1 abtest.mistat.xiaomi.com
127.0.0.1 ad.mi.com
127.0.0.1 ad.xiaomi.com
127.0.0.1 ad1.xiaomi.com
127.0.0.1 adv.sec.miui.com
127.0.0.1 api.account.xiaomi.com
127.0.0.1 api.ad.xiaomi.com
127.0.0.1 api.admob.xiaomi.com