This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # Precommit hook to generate css from scss | |
| # Loop over all files included in the commit. | |
| for file in $( exec git diff-index --cached --name-only HEAD ) | |
| do | |
| # We only want to take action unless the file is a LESS file. | |
| if [[ $file == *".scss"* ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To configure a log handler with errbit, add airbrakepy to requirements and add to config file: | |
| [handler_errbitHandler] | |
| class=airbrakepy.logging.handlers.AirbrakeHandler | |
| level=DEBUG | |
| args=(api_key="xxx", environment="dev", component_name="mobyle", node_name="mytestserver", use_ssl=False, timeout_in_ms=3000, airbrake_url="http://localhost:3000/notifier_api/v2/notices") | |
| Do not forget to call logging.shutdown() to clean the logging on application shudown |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git checkout -b mybranch origin/mybranch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| in app dir: | |
| cordova build | |
| cordova emulate (a device must have been set previously with Android Device Manager in Eclipse) | |
| To log: | |
| adb logcat |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Loaded provider `virtualbox' | |
| Loaded plugin `user_packages' | |
| Tasklist: | |
| <class 'common.tasks.workspace.CreateWorkspace'> | |
| <class 'common.tasks.packages.ImagePackages'> | |
| <class 'plugins.user_packages.user_packages.AddUserPackages'> | |
| <class 'providers.virtualbox.tasks.packages.ImagePackages'> | |
| <class 'common.tasks.packages.HostPackages'> | |
| <class 'common.tasks.host.CheckPackages'> | |
| <class 'common.tasks.loopback.Create'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Configuring grub | |
| Executing: /usr/sbin/chroot /target/af963f8b/root /bin/umount /dev/pts | |
| Executing: /usr/sbin/chroot /target/af963f8b/root /bin/umount /sys | |
| Executing: /usr/sbin/chroot /target/af963f8b/root /bin/umount /proc | |
| Executing: /bin/umount /target/af963f8b/root/dev | |
| Executing: /bin/umount /target/af963f8b/root/boot | |
| Executing: /bin/umount /target/af963f8b/root | |
| Executing: /sbin/kpartx -d /dev/loop0 | |
| Executing: /sbin/dmsetup create vda | |
| Executing: /sbin/kpartx -l /dev/mapper/vda |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <SWI-Prolog.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| typedef struct context /* define a context structure */ | |
| { | |
| int max; | |
| } context; | |
| foreign_t |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| http://www.debiantutorials.com/add-a-second-hard-disk/ | |
| fdisk -l | |
| cfdisk /dev/sdX | |
| > New -> Primary -> Specify size in MB | |
| > Write | |
| > Quit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff -crB CMakeLists.txt.orig CMakeLists.txt > cmake.patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Configuring grub | |
| Installing grub | |
| Executing: umount /target/38028fa6/root/dev/pts | |
| Executing: umount /target/38028fa6/root/proc | |
| Executing: umount /target/38028fa6/root/boot | |
| Executing: umount /target/38028fa6/root/sys | |
| Executing: umount /target/38028fa6/root/dev | |
| Executing: umount /target/38028fa6/root | |
| Executing: kpartx -ds /dev/loop0 | |
| Executing: dmsetup create vdd |
OlderNewer