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 / colors.json
Created Aug 3, 2019
Brand Colors for major companies
View colors.json
"500px": [
"": [
"Adidas": [
iamtekeste / background.html
Created Nov 9, 2018 — forked from erkie/background.html
Save parts of screen using Chrome extension
View background.html
var Constants = {
saveURL: 'http://random/birthday/saveimage.php',
w: 500,
h: 500,
x: 200,
y: 200
iamtekeste /
Created Sep 6, 2018 — forked from Brainiarc7/
#gif with text overlay #generator using #ffmpeg - inspired by
# $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 ]
echo "Usage: \$1 \$2 \$3 \$4 \$5
iamtekeste /
Created Aug 8, 2018 — forked from oodavid/
Backup MySQL to Amazon S3

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 for other systems like ubuntu etc

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 / 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
angular.module('awesomeApp', [])
.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 / *.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.

iamtekeste / git foce
Created Jun 19, 2016
Git Commands to Overwrite Local Files
View git foce
git fetch --all
$ git reset --hard origin/master
To download changes from some other branch use the following command.
$ git reset --hard origin/other_branch
iamtekeste / functions.php
Created Oct 30, 2015 — forked from levymetal/direct_parent.php
Custom Wordpress function which uses a nav walker to display a list of child pages from a common parent, which can be called from either the parent page (displays children) or any of the child pages (displays siblings). Detailed instructions available on my blog post here:…
View functions.php
// add hook
add_filter( 'wp_nav_menu_objects', 'my_wp_nav_menu_objects_sub_menu', 10, 2 );
// filter_hook function to react on sub_menu flag
function my_wp_nav_menu_objects_sub_menu( $sorted_menu_items, $args ) {
if ( isset( $args->sub_menu ) ) {
$root_id = 0;
You can’t perform that action at this time.