Skip to content

Instantly share code, notes, and snippets.

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

✘ ⓞⓗⓢⓔⓥ.ⓘⓝ ✘ ohsevin

🤞
h🔑🔑ding
View GitHub Profile
@ohsevin
ohsevin / -README.md
Created March 11, 2019 14:11 — forked from jirutka/-README.md
How to use terminal on Windows and don’t go crazy…

How to use terminal on Windows without going crazy…

Windows is really horrible system for developers and especially for devops. It doesn’t even have a usable terminal and shell, so working with command line is really pain in the ass. If you really don’t want to switch to any usable system (OS X, Linux, BSD…), then this guide should help you to setup somewhat reasonable environment – usable terminal, proper shell, ssh client, git and Sublime Text as a default editor for shell.

Install stuff

  1. Download and install Git for Windows* with:
    • [✘] Use Git from the Windows Command Prompt
  • [✘] Checkout as-is, commit Unix-style line endings
@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
@ohsevin
ohsevin / install.sh
Created October 7, 2018 22:20 — forked from davidcornu/install.sh
Media Server Easy Install
#!/usr/bin/env bash
# Usage: wget https://raw.github.com/artfox/ArtfoxMedia/master/install/install.sh -O - | sh
set -e;
echo '
_______ _______ ______ _____ _______
| | | |______ | \ | |_____|
| | | |______ |_____/ __|__ | |
_______ _______ ______ _ _ _______ ______
@ohsevin
ohsevin / Alternative_Internet.md
Created September 26, 2018 17:21
A collection of interesting networks and technology aiming at re-decentralizing the Internet. If you would like to help in categorising these projects, please submit a PR to this README.md file. (Source: https://github.com/redecentralize/alternative-internet)
@ohsevin
ohsevin / gist:d1d305f4fadcbf09280ed2331825d905
Created September 25, 2018 04:39 — forked from bendavis78/gist:827089ff8f2a8d8975ee
Installing Arch Linux on Chromebook Pixel 2
@ohsevin
ohsevin / README.md
Created September 23, 2018 19:56 — forked from timothyandrew/README.md
Set up a seedbox (on DigitalOcean – Ubuntu) really quick

Introduction

  • This script lets you set up and use a temporary DigitalOcean droplet to download torrent files.
  • Once downloaded, they can be streamed down to your local machine.
  • This uses transmission-cli for the torrent client, and nginx to serve files.

Setup on Local Machine

  • This assumes that you have a DigitalOcean account and tugboat set up, as well as seedbox-setup.sh present in the current directory.
#!/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
@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
@ohsevin
ohsevin / 20-intel.conf
Created August 7, 2018 00:11 — forked from radupotop/20-intel.conf
/etc/X11/xorg.conf.d/20-intel.conf
# /etc/X11/xorg.conf.d/20-intel.conf
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
Option "AccelMethod" "uxa"
Option "TearFree" "true"
EndSection
@ohsevin
ohsevin / imgur.sh
Created July 17, 2018 18:00
A flawless simple bash script to screenshot a user provided squared area and automatically API uploaded to imgur w/ URL provided + added to clipboard \m/
#!/bin/bash
# https://github.com/jomo/imgur-screenshot
# https://imgur.com/tools
if [ "${1}" = "--debug" ]; then
echo "########################################"
echo "Enabling debug mode"
echo "Please remove credentials before pasting"
echo "########################################"
echo ""