Skip to content

Instantly share code, notes, and snippets.

🕺
having fun with code

Tekeste Gebreanenia iamtekeste

🕺
having fun with code
Block or report user

Report or block iamtekeste

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@iamtekeste
iamtekeste / build-dvisvgm.sh
Created Jan 17, 2020 — forked from tobywf/build-dvisvgm.sh
Build dvisvgm and kpathsea on macOS
View build-dvisvgm.sh
#!/bin/bash
set -xeuo pipefail
IFS=$'\n\t'
PREFIX="${1:-/usr/local/dvisvgm}"
TEX="$(kpsewhich -var SELFAUTOLOC)"
echo "$PREFIX, $TEX"
brew install automake freetype ghostscript potrace
@iamtekeste
iamtekeste / table.mkdn
Created Aug 27, 2019 — forked from ngs/table.mkdn
Unicode character table
View table.mkdn

A

Description Entity Preview
A With Acute, Latin Capital Letter Á Á
A With Acute, Latin Small Letter á á
A With Breve, Latin Small Letter ă ă
A With Caron, Latin Small Letter ǎ ǎ
A With Circumflex, Latin Capital Letter  Â
A With Circumflex, Latin Small Letter â â
@iamtekeste
iamtekeste / colors.json
Created Aug 3, 2019
Brand Colors for major companies
View colors.json
{
"500px": [
"0099e5",
"ff4c4c",
"34bf49"
],
"About.me": [
"00a98f"
],
"Adidas": [
@iamtekeste
iamtekeste / background.html
Created Nov 9, 2018 — forked from erkie/background.html
Save parts of screen using Chrome extension
View background.html
<script>
var Constants = {
saveURL: 'http://random/birthday/saveimage.php',
w: 500,
h: 500,
x: 200,
y: 200
};
@iamtekeste
iamtekeste / gifenc.sh
Created Sep 6, 2018 — forked from Brainiarc7/gifenc.sh
#gif with text overlay #generator using #ffmpeg - inspired by http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
View gifenc.sh
#!/bin/bash
#parameters:
# $1 - mp4 url
# $2 - start time in format hh:mm:ss.mic
# $3 - duration in seconds
# $4 - text for gif overlay
# $5 - output file without extension
if [ "$#" -ne 5 ]
then
echo "Usage: gifenc.sh \$1 \$2 \$3 \$4 \$5
@iamtekeste
iamtekeste / README.md
Created Aug 8, 2018 — forked from oodavid/README.md
Backup MySQL to Amazon S3
View README.md

Backup MySQL to Amazon S3

This is a simple way to backup your MySQL tables to Amazon S3 for a nightly backup - this is all to be done on your server :-)

Sister Document - Restore MySQL from Amazon S3 - read that next

1 - Install s3cmd

this is for Centos 5.6, see http://s3tools.org/repositories for other systems like ubuntu etc

@iamtekeste
iamtekeste / gist:5414131089cbcc6b117a10691abf9385
Created Jul 31, 2018 — forked from aral/gist:84ddf7ac37be079632ab
NSPopover .appearance property is NSAppearance in Swift, not NSPopoverAppearance as per the docs
View gist:5414131089cbcc6b117a10691abf9385
// The docs say that the appearance property of an NSPopover should be set to an
// NSPopoverAppearance enum but it actually expects an NSAppearance instance.
// e.g., in an NSViewController subclass:
let popover = NSPopover()
popover.contentViewController = self.storyboard?.instantiateControllerWithIdentifier("someViewController") as? NSViewController
popover.appearance = NSAppearance(named: NSAppearanceNameVibrantLight)
popover.behavior = NSPopoverBehavior.Transient
@iamtekeste
iamtekeste / cleanup-git-repo.js
Last active May 8, 2017
This is a NodeJS script to clean up our remote git repository by deleting branches we longer need. I have commented out the line that does the actual deletion for the time being.
View cleanup-git-repo.js
#!/usr/bin/env node
'use strict';
const fs = require('fs');
const readline = require('readline');
const execSync = require('child_process').execSync;
const config = {
filterText: 'DISCO-',
View angular-http-interceptors.js
(function(){
angular.module('awesomeApp', [])
.config(function($httpProvider){
$httpProvider.interceptors.push('myInterceptors');
})
.factory('myInterceptors', function(){
return {
request: function(config){
//any code you put here will be executed right before you make the request
//config here refers to the $http config object, you are okay to modify it
@iamtekeste
iamtekeste / *.md
Created Jul 4, 2016 — forked from toddmotto/*.md
How I lost 20kg/3stone/44lbs
View *.md

Everytime I tweet about losing weight and posting images, a lot of people ask questions - so thought I'd write something decent down about what I've done so far and am currently working on.

12 months change:

Necessary changes

Step 1: Fixing your diet

My diet used to be so so bad, energy drinks, constant sugar intake. Kill that! I also used to order takeaways at least 2-3 times a week, because it was easy and the bigger you get the lazier you get from my experience.

You can’t perform that action at this time.