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 / rw-rootfs
Created October 27, 2017 23:02 — forked from DennisLfromGA/rw-rootfs
A script that asks to make the root filesystem read-writable for subsequent changes and additions by the user.
#!/bin/sh -e
##!! PLEASE USE THIS SCRIPT WITH CAUTION - AND AT YOUR OWN RISK !!##
##!! IT HAS BEEN KNOWN TO CAUSE RESETS AND WIPE DATA ON SOME CHROMEBOXES !!##
APPLICATION="${0##*/}"
ANSWER=''
CURRENTROOT=''
CURRENTKERNEL=''
ROOTDEV=''
ROOTDEVPFX=''

Hello there! This is a sample post for gist.io, a super-lightweight writing soapbox for hackers.

Now look up. Further. Above the post title. See that grey text with the gist ID?

Now back to me. That grey text is a link! Open that sucker in a new tab to see the source for this post. Also, I'm on a horse.

This is a major heading

If you peek at it with a web inspector, you'll see that it is a second-level heading. You can use first level headings, but they'll look just like the second level ones, and the gods of the HTML5 outlining algorithm will frown upon you.

https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
https://vk.com/page-164495988_53958182?=al_login.php?&_query=1&_fm2=Peter.Rabbit.FILM.FULL.MOVIE
@ohsevin
ohsevin / getBlockLists.sh
Created April 7, 2018 02:57 — forked from johntyree/getBlockLists.sh
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@ohsevin
ohsevin / node-and-npm-in-30-seconds.sh
Created May 11, 2018 00:26 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@ohsevin
ohsevin / GalliumOS on Edgar.markdown
Created May 11, 2018 13:08 — forked from stupidpupil/GalliumOS on Edgar.markdown
Guide to installing GalliumOS on an Acer Chromebook 14" (CB3-431) 'Edgar'

GalliumOS on Edgar

This document sets out how I installed GalliumOS 2.1 on a new Acer Chromebook 14" (CB3-431) 'Edgar' in April 2017. I installed GalliumOS on the internal eMMC storage, but left Chrome OS in place (allowing dual-booting).

It is meant to be an easy-to-follow and particularly thorough (if repetitive) guide, but I make no warranty that it will work correctly for you. It will wipe all data on your Edgar.

I have tried to provide references for each section; see the GalliumOS wiki guide to chrx installation for an overview of the general process.

⚠ Caution: There have been reports of Edgars' speakers overheating, due to a malfunction of the audio hardware, when booted into anything other than Chrome OS. I have not experienced this, and it seems to be believed that this will not now occur under GalliumOS. More information can be found in the comments for the [GalliumOS Braswell Platform Validation

@ohsevin
ohsevin / BBC.m3u
Created May 14, 2018 13:30 — forked from random-robbie/BBC.m3u
BBC HLS Streams - let me know if i missed any
#EXTM3U
#EXTINF:-1 tvg-id="BBC One HD" tvg-name="BBC One HD" tvg-logo="https://s4.postimg.org/k5xl5dmf1/bbc_one.png" group-title="BBC",BBC One HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_hd.m3u8
#EXTINF:-1 tvg-id="BBC One London" tvg-name="BBC One London" tvg-logo="https://s4.postimg.org/z61nj8qd9/Bbc_london_logo.jpg" group-title="BBC",BBC One London
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/hls_tablet/ak/bbc_one_london.m3u8
#EXTINF:-1 tvg-id="BBC One Northern Ireland HD" tvg-name="BBC One Northern Ireland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Northern Ireland HD
http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/hls/uk/abr_hdtv/ak/bbc_one_northern_ireland_hd.m3u8
#EXTINF:-1 tvg-id="BBC One Scotland HD" tvg-name="BBC One Scotland HD" tvg-logo="https://s3.postimg.org/ltztuojqr/6y_QROLCn_400x400.png" group-title="BBC",BBC One Scotland HD
http://a.fi
@ohsevin
ohsevin / install.sh
Created May 28, 2018 07:44 — forked from vanyasem/install.sh
*buntu 16.04 - Auto-install must have packages
# You can run this script as many times as you want, it won't harm your machine
# Android Studio and/or JetBrains Toolbox may be outdated, but they have a built-in updater, so that's not a big deal
#
# List of Software included:
# BEGIN LITE
# - Main Python packages (+bpython)
# - PulseAudio Equalizer
# - openssh-server & sshfs & denyhosts
# - "joke" packages: sl & cowsay & fortune & lolcat
# - htop, iotop
@ohsevin
ohsevin / how-to-install-latest-gcc-on-ubuntu-lts.txt
Created June 29, 2018 18:56 — forked from application2000/how-to-install-latest-gcc-on-ubuntu-lts.txt
How to install latest gcc on Ubuntu LTS (12.04, 14.04, 16.04)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497
To install gcc-6 (gcc-6.1.1), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \
@ohsevin
ohsevin / miniuploader.html
Created July 4, 2018 07:38 — forked from andreaseger/miniuploader.html
a very compact drag and drop image uploader written in html5 an javascript
<!DOCTYPE html>
<!-- This is the shortest Image Uploader ever :)
And you can even make it shorter if you don't
want all the drag'n drop thing. -->
<!--
AUTHOR: @paulrouget <paul@mozilla.com>
LICENSE: