Skip to content

Instantly share code, notes, and snippets.

View tnarik's full-sized avatar
🧗

tnarik

🧗
  • Le Café Automatique
  • London
View GitHub Profile
@tnarik
tnarik / gist:5842770
Last active December 18, 2015 20:49
Setting up a development environment
echo "choose a name for your new (RSA 4KB) key such as: id_rsa_tnarik_resma"
ssh-keygen -t rsa -b 4096 -C "tnarik@lecafeautomatique.co.uk"
####ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
\curl -L https://get.rvm.io | bash
echo "rvm_install_on_use_flag=1" > ~/.rvmrc
### Sourcing the RVM script adds the rvm to the PATH automatically.
####echo "configuring GIT"
@tnarik
tnarik / gist:5844253
Last active December 18, 2015 20:59
some notes
http://hints.macworld.com/article.php?story=20110831105634716&query=lion+usb -> to extract the mountain lion install image into a USB.
and
http://www.techrepublic.com/blog/mac/how-to-create-a-bootable-usb-to-install-os-x/2699 to put it there.
To avoid auto-opening volumes from USB drives and such:
sudo bless -folder "/Volumes/Mountain Lion"
@tnarik
tnarik / gist:10330667
Created April 9, 2014 23:43
sql script to create a user, run as system user
DROP user ertpdev cascade;
CREATE USER ertpdev IDENTIFIED BY ertpdev
DEFAULT TABLESPACE USERS
TEMPORARY TABLESPACE temp
QUOTA UNLIMITED ON USERS
;
GRANT RESOURCE, CONNECT, QUERY REWRITE , CREATE SYNONYM, CREATE VIEW TO ertpdev;
@tnarik
tnarik / gist:11188258
Last active August 29, 2015 14:00
Arduino - Eclipse setup
# As explained in http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1211165807/6
sudo mkdir /var/lock
sudo chmod 777 /var/lock
Make sure the ```Preferences > Arduino``` paths are properly set, so that you can use the same private and hardware libraries as from the Arduino IDE.
@tnarik
tnarik / gist:9bc4645f81db8cd22460
Created May 29, 2014 13:00
Using FreeFileSync and RealTimeSync
You can do the following:
1) download and install
2) create the destination folder (I used the following in a mountable disk):
usb_backups (a folder for the backups)
├── huolongjing (a folder for the USB stick)
├── huolongjing_SyncSettings.ffs_batch
├── huolongjing_SyncSettings.ffs_gui
├── huolongjing_SyncSettings.ffs_real
└── huolongjing_version (a folder for versioning, just as a safeguard)
@tnarik
tnarik / gist:eb8b31611a344bc7da6a
Created October 23, 2014 06:01
node thingies on the mac.
brew install passenger nginx --with-passenger
@tnarik
tnarik / node and npm and registry
Last active August 29, 2015 14:08
node and npm and registry
##
## Better Node installation
##
# Install node from the packages as usual if you feel so inclined, or install NVM instead (or as a second step)
curl https://raw.githubusercontent.com/creationix/nvm/v0.17.3/install.sh | bash
# Edit .zshrc to add the sourcing of the file
```
@tnarik
tnarik / NEW lecafeautomatique.zsh-theme
Last active June 11, 2024 21:47
LeCafeAutomatique ZSH Theme
PROMPT='$(build_prompt) '
ZSH_THEME_GIT_PROMPT_AHEAD="▲"
ZSH_THEME_GIT_PROMPT_BEHIND="▼"
ZSH_THEME_RVM_PROMPT_PREFIX="["
ZSH_THEME_RVM_PROMPT_SUFFIX="]"
prompt_status() {
@tnarik
tnarik / Command run
Last active August 29, 2015 14:12
chef-zero behaviour with/without network connectivity
sudo -E chef-client -z --config /tmp/kitchen/client.rb --log_level debug --json-attributes /tmp/kitchen/dna.json
@tnarik
tnarik / cassandra_3_nodes_docker-compose.yaml
Last active November 13, 2016 12:58
Test setup with 3 cassandra nodes in a cluster and a client container
version: '2'
services:
cassandra-1:
image: cassandra:2
environment:
- CASSANDRA_CLUSTER_NAME="demo_3nodes"
- CASSANDRA_BROADCAST_ADDRESS=cassandra-1
ports:
- "9042:9042"