Skip to content

Instantly share code, notes, and snippets.

View kbshl's full-sized avatar

Konstantin Büschel kbshl

  • Marburg, Hessen, Deutschland
  • 06:41 (UTC +02:00)
  • X @iskostja
View GitHub Profile
@kbshl
kbshl / unzip_to_dir.sh
Created April 17, 2016 11:58
Unzip file into specific directory
unzip -o <ZIP_FILE> -d <DESTINATION_DIR>
adb shell 'pm list packages -f -3' | sed -e 's/.*=//' | sort
@kbshl
kbshl / main.rb
Last active April 25, 2016 16:35 — forked from anonymous/main.rb
search my bitbucket repositories
#!/usr/bin/env ruby
# encoding: utf-8
require 'rubygems' unless defined? Gem # rubygems is only needed in 1.8
require_relative "bundle/bundler/setup"
require "alfred"
require 'json'
basic_user = ENV['BB_USER_NAME']
basic_password = ENV['BB_PASSWORD']
@kbshl
kbshl / open_webview_link_in_new_view.js
Created May 30, 2016 09:05
Appcelerator Titanium: Open link clicks from remote web view in system or other view
sudo find /private/var/folders/ \ -name com.apple.dock.iconcache -exec rm {} \;
sudo find /private/var/folders/ \ -name com.apple.iconservices -exec rm -rf {} \;
sudo rm -rf /Library/Caches/com.apple.iconservices.store
# Add the remote, call it "upstream":
git remote add upstream https://github.com/whoever/whatever.git
# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:
git fetch upstream
# Make sure that you're on your master branch:
@kbshl
kbshl / alloy_module_tag.xml
Created June 6, 2016 09:15
Appcelerator Alloy Module Tag in Action
<!-- Example:
<Module id="paint" module="ti.paint" method="createPaintView" eraseMode="false" strokeWidth="1.0" strokeColor="red" strokeAlpha="100" />
-->
<Module module="" method="" id="" />
@kbshl
kbshl / migration_file_timestamp.js
Created July 11, 2016 10:23
Create Appcelerator Alloy Migration File Timestamp from MomentJS
console.log(moment().format('YYYYMMDDHHmmss_'));
@kbshl
kbshl / el_capitan_gem_install_rootless.sh
Created August 2, 2016 12:37
Solution El Capitan Error (errnoeperm operation not permitted) while executing gem - From http://stackoverflow.com/questions/32891965/error-while-executing-gem-errnoeperm-operation-not-permitted
# Apparently with OSX el Capitan, there is a new security function that prevents
# you from modifying system files called Rootless.
# So you'll have 2 options: If you install gems on "/usr/local/bin"
# there will be no problem because rootless doesn't affect this path.
sudo gem install -n /usr/local/bin GEM_NAME_HERE