mount /dev/sdX /media/usbmount windows.iso /media/windows| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| /* | |
| Please make sure to add the following environment variables: | |
| HEROKU_PREVIEW=<your heroku preview app> | |
| HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
| HEROKU_PRODUCTION=<your heroku production app> |
| #!/bin/bash | |
| for file in $(find . -iname '*.rar'); do | |
| echo "Extracting ${file}..." | |
| dir=$(dirname ${file}) | |
| unrar e -y -o+ -p- "${file}" "${dir}" | |
| # check exit status, if not 0 it failed |
| /** | |
| * GradientArray • Steps gradient. | |
| * @author Siamak Mokhtari <hi@siamak.work> | |
| * @date 06/21/16. | |
| */ | |
| class GradientArray { | |
| // Convert a hex color to an RGB array e.g. [r,g,b] | |
| // Accepts the following formats: FFF, FFFFFF, #FFF, #FFFFFF | |
| hexToRgb(hex) { | |
| let r, g, b, parts; |
| @echo off | |
| set TARGET=D:\DCIM\path | |
| set DESTINATION=C:\path\to\photos\%date% | |
| echo Copying images from camera %TARGET% to %DESTINATION% | |
| echo d | xcopy /s /y %TARGET% %DESTINATION%\ | |
| echo Removing images from camera.. | |
| del /s /q "%TARGET%\*.JPG" | |
| PAUSE |
| import random | |
| from time import sleep | |
| import pygame | |
| class CarRacing: | |
| def __init__(self): | |
| pygame.init() |
| acpi | |
| acpid | |
| alsa-firmware | |
| alsa-utils | |
| android-studio | |
| android-studio-beta | |
| android-studio-canary | |
| android-tools | |
| atop | |
| audacity |
| import android.support.annotation.StringDef | |
| import android.text.Editable | |
| import android.text.TextWatcher | |
| import android.widget.EditText | |
| @StringDef(PHONE_9_MASK, PHONE_8_MASK, CPF_MASK, ZIP_CODE_PT_BR, MONTH_YEAR, CREDIT_CARD) | |
| @Retention(AnnotationRetention.SOURCE) | |
| annotation class MaskType | |
| const val PHONE_9_MASK = "(##) #####-####" |
| #!/bin/bash | |
| # Usage | |
| # chmod +x semverdiff.sh | |
| # Get diff between 1.0.0..1.0.1 | |
| # ./semverdiff 1.0.1 | |
| get_diff() { | |
| sed -n "/^## \[$1\]/,/^## /p" CHANGELOG.md | egrep "^(-|\s+)" | |
| } |