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
| # README | |
| This is a very basic repo. It consist in 2 files: | |
| 1. `addvhost.sh` | |
| 2. `wp.sh` | |
| They will help you to streamline a basic virtual host configuration in a Ubuntu machine using Nginx. Also, in case you would like to chose Wordpress, the `wp.sh` script will guide you to install it without messing around with databases, etc. It will do everything automatically. | |
| In a fresh machine, they should be used in order. |
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.IO; | |
| using System.Net; | |
| using System.Diagnostics; | |
| using System.IO.Compression; | |
| using System.Collections.Generic; | |
| using System.Runtime.InteropServices; | |
| namespace ScreenRec | |
| { |
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
| /// <summary> | |
| /// Creates color with corrected brightness. | |
| /// </summary> | |
| /// <param name="color">Color to correct.</param> | |
| /// <param name="correctionFactor">The brightness correction factor. Must be between -1 and 1. | |
| /// Negative values produce darker colors.</param> | |
| /// <returns> | |
| /// Corrected <see cref="Color"/> structure. | |
| /// </returns> | |
| public static Color ChangeColorBrightness(Color color, float correctionFactor) |
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
| <?php | |
| // I made this array by joining all the following lists + .php extension which is missing in all of them. | |
| // please contribute to this list to make it as accurate and complete as possible. | |
| // https://gist.github.com/plasticbrain/3887245 | |
| // http://pastie.org/5668002 | |
| // http://pastebin.com/iuTy6K6d | |
| // total: 1223 extensions as of 16 November 2015 | |
| $mime_types = array( | |
| '3dm' => array('x-world/x-3dmf'), | |
| '3dmf' => array('x-world/x-3dmf'), |
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
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>exe</OutputType> | |
| <TargetFrameworks>net472;net5.0-windows</TargetFrameworks> | |
| </PropertyGroup> | |
| <ItemGroup> | |
| <PackageReference Include="System.IO.Pipes.AccessControl" Version="5.0.0" /> | |
| </ItemGroup> |
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 | |
| ## backup each mysql db into a different file, rather than one big file | |
| ## as with --all-databases. This will make restores easier. | |
| ## To backup a single database simply add the db name as a parameter (or multiple dbs) | |
| ## Putting the script in /var/backups/mysql seems sensible... on a debian machine that is | |
| ## Create the user and directories | |
| # mkdir -p /var/backups/mysql/databases | |
| # useradd --home-dir /var/backups/mysql --gid backup --no-create-home mysql-backup | |
| ## Remember to make the script executable, and unreadable by others |