Skip to content

Instantly share code, notes, and snippets.

View KharmaScribbles's full-sized avatar

Kharma Scribbles KharmaScribbles

View GitHub Profile
# Base image
FROM gliderlabs/alpine:3.3
MAINTAINER Philippe Caseiro <pcaseiro@cadoles.com>
# Install Nodejs
RUN apk add --no-cache nodejs
RUN apk add --no-cache git
# Clone haste-server from git
RUN mkdir /opt
@KharmaScribbles
KharmaScribbles / fontface.sh
Created June 9, 2018 01:43
-forked- Convert any EOT/OTF/TTF font to all required @font-face and shows a ready-to-use CSS code
#!/bin/bash
# dependencies
FONTFORGE=`which fontforge`
TTFAUTOHINT=`which ttfautohint`
# base checks
if [ "x$1" == "x" ]; then
echo "Usage: ./font-forge.sh [FILE]"
exit
@KharmaScribbles
KharmaScribbles / kpcli-installer.sh
Created June 9, 2018 01:43 — forked from vaites/kpcli-installer.sh
kpcli installer for Termux
apt install perl
cpan Crypt::Rijndael
cpan Term::ReadKey
cpan Sort::Naturally
cpan File::KeePass
cpan Term::ShellUI
cpan Term::ReadLine::Perl5
wget http://netcologne.dl.sourceforge.net/project/kpcli/kpcli-3.0.pl -N -O /data/data/com.termux/files/usr/bin/kpcli
chmod +x /data/data/com.termux/files/usr/bin/kpcli
perl -pi -e 's/\/usr\/bin\/perl/\/data\/data\/com.termux\/files\/usr\/bin\/perl/g' /data/data/com.termux/files/usr/bin/kpcli
# This is the ssh client system-wide configuration file. See
# ssh_config(5) for more information. This file provides defaults for
# users, and the values can be changed in per-user configuration files
# or on the command line.
# Configuration data is parsed as follows:
# 1. command line options
# 2. user-specific file
# 3. system-wide file
# Any configuration value is only changed the first time it is set.
@KharmaScribbles
KharmaScribbles / .gitlab-ci.yml
Created June 16, 2018 00:31
I STILL have not figured out how I'd like to build my blog..
## Hosted on Github, built in Gitlab (source https://dev.to/ardianta/deploy-hugo-from-gitlab-ci-to-github-pages-5aml)
image: andthensome/alpine-hugo-git-bash:0.31.2
before_script:
- hugo version
github_pages:
script:
- rm -rf public
@KharmaScribbles
KharmaScribbles / git-pick-file.sh
Created July 3, 2018 04:36 — forked from jussi-kalliokoski/git-pick-file.sh
Cherry-picks commits from master that have changes to specified files.
$!/usr/bin/env sh
branch=`git symbolic-ref --short HEAD`
git checkout master
commits=`git log --pretty="%H" --reverse -- $*`
git checkout $branch
for commit in $commits; do
git cherry-pick $commit
done
@KharmaScribbles
KharmaScribbles / Github amd Curl
Created July 19, 2018 17:36
Useful for downloading binaries etc.
To download files in GitHub (or any other site that make redirects) using *curl*, you must pass -L (Follow redirects), so use:
curl -L http://url/.zip -o url.zip
@KharmaScribbles
KharmaScribbles / kiwiirc-theme.css
Created September 26, 2018 08:53
An example KiwiIRC theme to build off from.
/* Neither foe nor friend */
.kiwi-wrap {
background: #fff;
--kiwi-nick-brightness: 40;
--kiwi-supports-monospace: 1;
color: #201F1F;
}
@KharmaScribbles
KharmaScribbles / dabblet.css
Last active November 16, 2018 19:42
Leporidae Sidebar Code
/**
* Leporidae.org Sidebar Code
* © KharmaScribbles ||~2018
*/
background: #df80ff;
background: linear-gradient(#df80ff, #ccccff, #ff0066);
min-height: 100%;
@KharmaScribbles
KharmaScribbles / gnome_chromote.sh
Created January 14, 2019 05:11 — forked from packetpilot/gnome_chromote.sh
headless ubuntu|debian + gnome, accessible via Chrome Remote Desktop
#!/bin/bash
# gnome and chrome and chrome remote desktop access
# chrome itself is not required, but is included here.
# other desktops can be used w/ light script changes.
# tested on:
# - ubuntu xenial GCE instance
# - debian stretch crostini container on a Pixelbook (eve)
# running ChromeOS v67.0.3383.0 (dev channel)
# _without_ being in developer mode