Skip to content

Instantly share code, notes, and snippets.

View hbt's full-sized avatar

Hassen Ben Tanfous hbt

View GitHub Profile
We couldn’t find that file to show.
#!/usr/bin/env php
<?php
# install helpers in bin
# Usage: dpm-install-helpers
include(dirname(__FILE__) . '/../../src/php/lib/lib.php');
$loader = require dirname(__FILE__) . '/../../src/php' . '/vendor/vendor/autoload.php';
use Symfony\Component\Finder\Finder;
# from: https://nmilosev.svbtle.com/termuxfedora-install-fedora-on-your-phone-with-termux
# install:
# - install termux
# - wget this gist
# - sh
apt update && apt install wget -y && /data/data/com.termux/files/usr/bin/wget https://raw.githubusercontent.com/nmilosev/termux-fedora/master/termux-fedora.sh && sh termux-fedora.sh
sh termux-fedora.sh f26_arm64
startfedora
#!/bin/bash
rm -rf /home/user/mp3
mkdir /home/user/mp3
cd /home/user/mp3
mkdir .gd
cd .gd
cp ~/credentials.json .
cd ..
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y curl git python g++ build-essential python-pip ffmpeg sudo php7.0
# install youtube-dl
RUN pip install youtube-dl
# Install drive
RUN mkdir -p /goroot && \
curl https://storage.googleapis.com/golang/go1.8.1.linux-amd64.tar.gz | tar xvzf - -C /goroot --strip-components=1
function main() {
{
let bb = doSomething1()
let mm = doSomething2(bb, 'ww')
}
function doSomething2(var1, var2) {
@hbt
hbt / cvimrc
Created February 4, 2017 19:54
" begin
" Copy paste this into options.html
" first lines copied into options
let configpath = '/home/hassen/.cvimrc'
let homedirectory = '/home/hassen'
" this would load this file into the options page
set localconfig
""""
" end
chrome.runtime.getPackageDirectoryEntry(function (dir) {
window.dir = dir;
console.log(dir)
dir.getFile('version.txt', {}, function (fe) {
<!-- view ruby vrome -->
<textarea onkeyup="getLineNumberAndColumnIndex(this);" id="txt" rows="14" cols="60" style="background-color: black; color: white;">
asdsadh
das
d
d