Skip to content

Instantly share code, notes, and snippets.

View hbt's full-sized avatar

Hassen Ben Tanfous hbt

View GitHub Profile
#!/bin/bash
rm -rf /home/user/mp3
mkdir /home/user/mp3
cd /home/user/mp3
mkdir .gd
cd .gd
cp ~/credentials.json .
cd ..
# 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
#!/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;
We couldn’t find that file to show.
@hbt
hbt / sk.js
Created December 7, 2018 01:48
// async windowCloseOtherWindows(_message, _sender, _sendResponse) {
// const ctab = await chrome.tabs.get(_sender.tab.id)
// var cwinId = ctab.windowId
// var ws = await chrome.windows.getAll()
// for(let w of ws) {
// if(w.id === cwinId) {
// continue;
// }
// const pinnedTabs = await chrome.tabs.query({
// pinned: true,
--- Actions ---
$Copy <C-C> <C-Ins>
$Cut <S-Del> <M-X>
$Delete <Del>
$LRU <A-C-O>
$Paste <S-Ins> <M-V> <C-V>
$Redo <A-S-BS>
$SearchWeb <A-G>
$SelectAll
$Undo <A-BS>
@hbt
hbt / .gitignore
Last active October 2, 2019 09:58
node_modules
.idea
{
}
{
// //
// let filenames = 'comp2.leo comp.leo oval2.xml etodos.leo fh.leo goals.leo housing.leo ia.leo outline.leo oval2.xml'
// let files = filenames.split(' ')
// files = files.filter((v) => {
// return v.length > 0