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
port: | |
tcp:222: | |
listening: true | |
ip: | |
- 0.0.0.0 | |
tcp6:80: | |
listening: true | |
ip: | |
- '::' | |
tcp6:222: |
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
#References | |
#base script | |
#https://stackoverflow.com/questions/22988384/powershell-change-owner-of-files-and-folders | |
#parameters | |
#https://powershell.org/forums/topic/file-path-parameter/ | |
param ( | |
[Parameter(Mandatory=$true)] | |
[ValidateScript({Test-Path -Path $_})] | |
[string]$path | |
) |
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
- name: Install and Configure Solr | |
hosts: localhost | |
become: yes | |
gather_facts: yes | |
vars: | |
solr_change_default_password: False | |
solr_port: 80 | |
roles: | |
- role: lean_delivery.java | |
- role: lean_delivery.solr_standalone |
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
import bpy | |
import bpy_extras | |
import json | |
import os | |
from mathutils import * | |
from math import * | |
def write_frame(scene): | |
print("----Starting Render function----") | |
with open('collision.json', 'r') as f: |
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
#from https://minzkraut.com/2016/11/23/making-a-simple-spritesheet-generator-in-python/ | |
from PIL import Image | |
import os, math, time | |
max_frames_row = 16.0 | |
frames = [] | |
tile_width = 0 | |
tile_height = 0 | |
spritesheet_width = 0 | |
spritesheet_height = 0 |
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
(defun save-gdrive () | |
"Sync org file to GDrive with rclone." | |
(when (eq major-mode 'org-mode) | |
(shell-command-to-string "rclone sync $HOME/org/notes.org gdrive:notes.org") | |
(shell-command-to-string "rclone sync $HOME/org/notes.org_archive gdrive:notes.org_archive") | |
)) | |
(add-hook 'after-save-hook 'save-gdrive) |
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
#grep the logs like this | |
#grep "SERVICE ALERT: <instanceid>;Load;.* : CRITICAL" /var/log/nagios3/archives/nagios-* > critical_load.txt | |
<?php | |
$file = file('~/critical_load.txt'); | |
#initialise empty hashmap | |
$map = array(); | |
$hours = array(); | |
foreach($file as $line){ | |
#read timestamp | |
$guffpos = strpos($line,'[')+1; |
NewerOlder