Skip to content

Instantly share code, notes, and snippets.

@tkhduracell
tkhduracell / colors.xml
Created March 21, 2015 17:31
Material Colors
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="primary">#673AB7</color>
<color name="primary_dark">#512DA8</color>
<color name="primary_light">#D1C4E9</color>
<color name="accent">#FF4081</color>
<color name="text_primary">#FFFFFF</color>
<color name="text_secondary">#727272</color>
<color name="icons">#FFFFFF</color>
@tkhduracell
tkhduracell / install_ssh_key.sh
Last active August 29, 2015 14:17
How to install SSH key
#
[email protected]
T_KEY=~/.ssh/mykey.pub
#
ssh $T_HOST 'umask 0077 && mkdir -p ~/.ssh && touch authorized_keys'
cat $T_KEY | ssh $T_HOST 'cat >> ~/.ssh/authorized_keys && echo "Key copied succefully"'
@tkhduracell
tkhduracell / install_docker.sh
Last active November 21, 2016 13:48
Install docker in VPSnet OpenKZ
# Install ubuntu
apt-get update
apt-get upgrade
apt-get install wget curl
wget -qO- https://get.docker.com/ | sh
# Install centOS 7 (VPSnet)
localedef -i en_US -f UTF-8 en_US.UTF-8
yum -y update
yum install epel-release
COLL=Main
PROJ=Installer
DEST=mycomp_installer
REMOTE=mycomp/installer
cd ~/GitMigration
git svn clone --trunk=/ --authors-file=authors.txt --username=Filip http://svn.mycomp.com/svn/$COLL/$PROJ $DEST
cd $DEST
java -Dfile.encoding=utf-8 -jar ~/svn-migration-scripts.jar clean-git --no-delete
@tkhduracell
tkhduracell / Default (OSX).sublime-keymap.js
Last active October 8, 2015 08:36 — forked from coldnebo/Default (OSX).sublime-keymap -- User
Sublime Text fix for OSX home/end keys
[
{ "keys": ["home"], "command": "move_to", "args": {"to": "bol" } },
{ "keys": ["end"], "command": "move_to", "args": {"to": "eol" } },
{ "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true } },
{ "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true } },
{ "keys": ["super+home"], "command": "move_to", "args": {"to": "bof" } },
{ "keys": ["super+end"], "command": "move_to", "args": {"to": "eof" } },
{ "keys": ["super+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true } },
{ "keys": ["super+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true } }
]
@tkhduracell
tkhduracell / hallon_old_codeship_build.sh
Last active January 2, 2016 15:39
Old CodeShip android
export ANDROID_PKG=platform-tool,android-22,build-tools-22.0.1,extra-google-m2repository,extra-android-m2repository
export SDK=`pwd`/sdk
mkdir -p $SDK
ls -l $SDK
curl --location http://dl.google.com/android/$SDK_VERSION.tgz | tar -xvz -C $SDK
ls -l $SDK
( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | $SDK_DIR/tools/android update sdk --all --no-ui --force --filter "$ANDROID_PKG"
echo "ANDROID_HOME=$SDK_DIR" >> /etc/environment
echo "android.platform.base=$SDK_DIR" >> /etc/environment
echo "export ANDROID_HOME=$SDK_DIR" >> ~/.bashrc
@tkhduracell
tkhduracell / build-run.sh
Created June 18, 2016 13:42
Running Android builds on CodeShip
# Install java 8
jdk_switcher home oraclejdk8
jdk_switcher use oraclejdk8
export JAVA8_HOME=/usr/lib/jvm/java-8-oracle
export BUILD_TOOLS_VERSION=23.0.3
export ANDROID_SDK=24
export ANDROID_SDK_REV=24.4.1
#
# Install android sdk
export SDK_TAR=android-sdk_r$ANDROID_SDK_REV-linux
@tkhduracell
tkhduracell / hallon_privacy.txt
Last active June 4, 2020 09:04
hallon_privacy.txt
Our Tools app "hallon.se Saldo (inofficiell)" requires the following permissions:
INTERNET - To access hallon.se "Mina Sidor"
ACCESS_NETWORK_STATE - Tell weather internet need to be enabled
Our app may use tracking technology (eg, Google Analytics, Sentry) depending on the features offered. Tracking technology are useful for gathering information such as device type and operating system, tracking the number of visitors to the app, and understanding how visitors use our app. Tracking technology can also help customize our apps for visitors. Personal information cannot be collected via tracking technology, however, if you previously provided personally identifiable information, tracking may be tied to such information. Aggregate tracking information may be shared with third parties.
We may share information with governmental agencies or other companies assisting us in fraud prevention or investigation. We may do so when: (1) permitted or required by law; or, (2) trying to protect against or prevent actual o
@tkhduracell
tkhduracell / dansguiden_privacy.txt
Last active November 28, 2022 22:02
Dansguiden Privacy Policy
Our app does not use any tracking technology to gather user information.
We may share information (if possible) with governmental agencies or other companies assisting us in fraud prevention or investigation. We may do so when: (1) permitted or required by law; or, (2) trying to protect against or prevent actual or potential fraud or unauthorized transactions; or, (3) investigating fraud which has already taken place. The information is not provided to these companies for marketing purposes.
If you have any questions, concerns, or comments about our privacy policy you may contact us using the information below:
By e-mail: [email protected]
We reserve the right to make changes to this policy. Any changes to this policy will be posted.
@tkhduracell
tkhduracell / vagrant_oneline.md
Created March 8, 2017 19:49
Oneline to read ENV / SECRETS file in Vagrant

Read env file

SECRETS=IO.read('./.env').split(/\n/).map{|s| s.split(/=/)}.to_h

Usage

token: SECRETS['MY_SECRET_TOKEN']