Skip to content

Instantly share code, notes, and snippets.

View ohsevin's full-sized avatar
🤞
h🔑🔑ding

✘ ⓞⓗⓢⓔⓥ.ⓘⓝ ✘ ohsevin

🤞
h🔑🔑ding
View GitHub Profile
# echo $LD_LIBRARY_PATH
# pacmd list-sink-inputs
# pulse-audio -kpacmd set-default-sink 1 & pacmd move-sink-input 5 1
# pacmd set-default-sink 1 & pacmd move-sink-input 5 1
# pacmd list-sink-inputs
# pacmd list-sink-inputs | grep index | while read line; do echo "Moving input: "; echo $line | cut -f2 -d' '; echo "to sink: $1"; pacmd move-sink-input `echo $line | cut -f2 -d' '` $1;
# sudo nano togglesinks.sh
# sudo nano movesinks.sh
# sudo nano movesinks2.sh
# sudo nano movesinks3.sh
#################################
# Ubuntu Repos #
#################################
### Main
#deb cdrom:[Nitrux _nxos_]/ xenial main multiverse restricted universe
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
#deb http://archive.ubuntu.com/ubuntu cosmic main restricted universe multiverse
### Updates
@ohsevin
ohsevin / GalliumOS-Braswell-4.9.4-AMD64
Last active May 20, 2018 23:22
INSTALL guide for ANY GalliumOS (Braswell) based kernel image & firmware required
# Prerequisites Files:
galliumos-braswell_4.9.4-galliumos2_amd64.tar.gz
galliumos.gpg
linux-firmware-image-4.9.4-galliumos-braswell_4.9.4-galliumos2_amd64.deb
linux-headers-4.9.4-galliumos-braswell_4.9.4-galliumos2_amd64.deb
linux-image-4.9.4-galliumos-braswell_4.9.4-galliumos2_amd64.deb
## GALLIUMOS BRASWELL 4.9.4 KERNEL USAGE GUIDE FOR OTHER LINUX DISTROS: ##
================================================================================
tiny.cc/streamlist
tiny.cc/URLz
=
============================== RADIO STREAMS ===================================
!!!! 99 JAMZ :
$ mpv http://oom-cmg.streamguys1.com/mia991/mia991-tunein.mp3
@ohsevin
ohsevin / iphone-setup.sh
Created June 24, 2018 01:02
iphone usb driver installation for ubuntu
#!/bin/bash
zip_dir_name=""
function install_package () {
./autogen.sh
make
make install
}
function unzip_name () {
d="`mktemp -d`"
# dhammapada
http://tiny.cc/dhammapada-deb
Ubuntu terminal based install =
[=====================================================]
sudo apt-get install display-dhammapada
[=====================================================]
@ohsevin
ohsevin / sources.list
Last active August 11, 2018 01:33
default (yet altered with some necessary additions/changes) || Ubuntu Xenial 16.04 || /etc/apt/sources.list (using cz. servers and include xenial-proposed repos) || removed #cdrom depend and uncommented #marked canonical to allow for repository access.
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://cz.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://cz.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
#!/bin/bash
#The MIT License
#
#Copyright (c) 2007 Cappy
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without restriction, including without limitation the rights
#to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
#copies of the Software, and to permit persons to whom the Software is
@richtera
richtera / IdControl.js
Last active September 5, 2018 21:09
This is how I mount the CMS.
/** @format */
import React from "react";
import uuidv1 from "uuid/v1";
// ... using predefined DNS namespace (for domain names)
export const uuid = () => {
return uuidv1();
};
@ohsevin
ohsevin / check-system-specs.sh
Created November 12, 2018 06:31
A script to automate the process checking computer specs within linux [BASH script]
#!/bin/bash
#This script reports the following specs about your PC:
# -How much space is available on each hard disk drive
# -How much space is used/available on each mounted partition
# -How much memory is available on each RAM device
# -How fast is each CPU core (single core machines only have 1 entry)
# -The name, driver used and memory available from your graphics accelerator
#Some of the commands in this script require root privelages, so