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
| #!/usr/bin/env bash | |
| # https://unix.stackexchange.com/a/249238 | |
| echo "Start watching for new files" | |
| > watch.log | |
| while true | |
| do | |
| touch watch.log | |
| sleep 10 | |
| find . -type f -cnewer ./watch.log | tee -a watch.log |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace DavaHome.Tools | |
| { | |
| public class Bit | |
| { | |
| public enum Type |
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
| /** | |
| * Original Author: Lars Holm | |
| * Improved Usage: David Sommer | |
| * Since: 03.02.2012 | |
| **/ | |
| using System; | |
| using System.Reflection; | |
| using System.Resources; |
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/bash | |
| echo "This script will remove all non-zip and non-sh files" | |
| echo "Continue in 5 seconds..." | |
| sleep 5 | |
| echo "Clearing..." | |
| find . -type f -not -name "*.zip" -and -not -name "*.sh" -print0 | xargs -0 rm | |
| echo "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/bash | |
| getcomposer () { | |
| if [[ -f 'composer.phar' ]]; then | |
| php composer.phar self-update | |
| else | |
| wget https://getcomposer.org/composer.phar | |
| fi | |
| } |
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/bash | |
| apt-get () { | |
| setup_file='/cygdrive/c/cygwin64/setup-x86_64.exe' | |
| cmd=$1 | |
| if [[ ! -f $setup_file ]]; then | |
| cmd='update' | |
| fi | |
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/bash | |
| # Dump hdd as file | |
| dd if=/dev/sda of=./file.raw | |
| # Convert raw file to vdi (Virtual Box) | |
| VBoxManage convertdd file.raw file.vdi --format VDI | |
| # Mount raw image | |
| fdisk -l file.raw |
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
| var js = document.createElement("script"); | |
| js.type = "text/javascript"; | |
| js.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"; | |
| document.body.appendChild(js); |
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
| const int PANEL_LINES = 18; | |
| string[] panels = new string[] { | |
| "Ore Counter LCD #1", | |
| "Ore Counter LCD #2", | |
| "Ore Counter LCD #3" | |
| }; | |
| string[] storageObjects = new string[] { | |
| "Refinery", | |
| "Cargo", |