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
| ' Example function call: =BuildHTMLTable(A1:D5) | |
| Public Function BuildHTMLTable(rng As Range) As String | |
| ' Given a Range of Cells, build a Bootstrap HTML table, using the formatting | |
| ' specified in the Excel cells. If "header" is specified to equal true, assumes | |
| ' the first row in the table is a header row. | |
| Dim last_r As Long: last_r = rng.Cells(1, 1).Row | |
| Dim tds As New Collection | |
| Dim txt As String | |
| Dim isFirstRow As Boolean: isFirstRow = True |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
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
| # Put this in your startup scripts | |
| xrandr --output DVI-D-0 --mode 1920x1080 --rate 144 | |
| # In order to find the correct parameters for the above command run: | |
| xrandr -q |
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
| HOST=http://radarr.local:7878 | |
| API_KEY= # Settings > General | |
| ids=$(curl --silent $HOST/api/movie -X GET -H "X-Api-Key: $API_KEY" \ | |
| | jq '.[] | select(.monitored == false) | .id') | |
| for id in $ids; do | |
| echo "Deleting movie id $id" | |
| curl --silent $HOST/api/movie/$id -X DELETE -H "X-Api-Key: $API_KEY" | |
| done |
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 | |
| # @author: Alexandre Plennevaux | |
| # @description: MIRROR DISTANT FOLDER TO LOCAL FOLDER VIA FTP | |
| # | |
| # FTP LOGIN | |
| HOST='sftp://ftp.domain.com' | |
| USER='ftpusername' | |
| PASSWORD='ftppassword' | |
| # DISTANT DIRECTORY |
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
| 'use strict'; | |
| /** | |
| * Authentication with token and email for every server request. (Sets HTTP headers) | |
| * | |
| * This interceptor shows the error from the server (i18n key). | |
| * Also sets global error variable if the request fails and redirects the user to '/' when he is not authorized. | |
| * @see http://engineering.talis.com/articles/client-side-error-logging/ | |
| */ | |
| app.factory('authInterceptor', function ($rootScope, $q, $cookies, $location, $timeout) { |
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
| /** | |
| * Simple localStorage with Cookie Fallback | |
| * v.1.0.0 | |
| * | |
| * USAGE: | |
| * ---------------------------------------- | |
| * Set New / Modify: | |
| * store('my_key', 'some_value'); | |
| * | |
| * Retrieve: |