Skip to content

Instantly share code, notes, and snippets.

View casjay's full-sized avatar
🎯
Learning, Self Discovery

casjay casjay

🎯
Learning, Self Discovery
View GitHub Profile
@casjay
casjay / find_vars_in_file
Created August 15, 2020 23:35
find all variables in a shell script
awk '/[A-Za-z0-9]+=/ { gsub(/=.*/,"",$0); print $NF; }' filename
@casjay
casjay / arch-chromebook.md
Last active June 24, 2022 14:19
arch on chromebook

Start new/existing VM from crosh shell:

crosh> vmc start dev

Create temprorary directory for LXC image preparation:

(termina) chronos@localhost ~ $ mkdir /tmp/alarm && cd /tmp/alarm

Download Arch Linux ARM tarball (I am using Generic AArch64 from https://archlinuxarm.org/platforms/armv8/generic):

@casjay
casjay / docker-tizonia.sh
Last active December 10, 2019 07:35
tizonia
#!/bin/bash
USER_ID=$(id -u);
GROUP_ID=$(id -g);
docker run -it --rm \
-e LC_ALL=en_US.UTF-8 \
-e PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native \
--volume=${XDG_RUNTIME_DIR}/pulse:${XDG_RUNTIME_DIR}/pulse \
--volume="${HOME}/.config/tizonia":/home/tizonia/.config/tizonia \
@casjay
casjay / windows-terminal
Last active November 25, 2019 22:59
profile.json
// 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",
"defaultProfile": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}",
"profiles":
[
@casjay
casjay / YouPHPTube.md
Last active November 28, 2018 17:46
YouPHPTube Install
CentOS 
git clone https://github.com/DanielnetoDotCom/YouPHPTube.git /var/www/html/youphptube
git clone https://github.com/DanielnetoDotCom/YouPHPTube-Encoder.git /var/www/html/encoder
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl && sudo chmod a+rx /usr/local/bin/youtube-dl
systemctl restart httpd

sudo mysql_secure_installation

mkdir /var/www/html/youphptube/videos
@casjay
casjay / aria2c_webUI.md
Created November 25, 2018 15:27 — forked from GAS85/aria2c_webUI.md
Aria2 + Ubuntu 16.04 + Apache2 + Web UI
OS: Ubuntu 16.04 Apache/2.4.18 1.0.2g-1ubuntu4.10
Aim: to install Aria2 with WebUI and secure Token.
IP Addr of your Aria2 server is 111.222.111.222
Your local IP network is 192.168.0.0/24

Aria 2

1. Installation

Install aria2 package:

Keybase proof

I hereby claim:

  • I am casjay on github.
  • I am casjay (https://keybase.io/casjay) on keybase.
  • I have a public key whose fingerprint is B1DF 4B06 7C9E F00C 33A1 F73D 1AB3 09F4 2A76 4145

To claim this, I am signing this object:

@casjay
casjay / Install-zammad-CentOS
Created March 19, 2018 20:22
Add Zammad, Elasticsearch & epel-release RPM repos and install RPM
sudo yum -y install epel-release wget
sudo wget -O /etc/yum.repos.d/zammad.repo https://dl.packager.io/srv/zammad/zammad/stable/installer/el/7.repo
echo "[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
@casjay
casjay / kaltura-centos
Last active March 18, 2018 05:39
Kaltura on CentOS install
#Kaltura On CentOS 7
#edit /etc/selinux/config and
#either disable or set selinux to permissive
setenforce permissive
#Setup repos
rpm -ihv http://installrepo.kaltura.org/releases/kaltura-release.noarch.rpm
rpm -ihv https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
@casjay
casjay / defaults-centossrv.txt
Created March 12, 2018 14:29
Default Packages for CentOS
acl
aic94xx-firmware
alsa-firmware
alsa-lib
alsa-tools-firmware
apr
apr-util
audit
audit-libs