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
<UserSettings> | |
<override-colours caret="e6e6fa" indentGuides="282828" /> | |
<override-classes> | |
<style-class name="default" font="Monaco" back="272828" fore="fafafa" /> | |
<style-class back="222222" fore="666666" name="linenumbers"></style-class> | |
<style-class name="comment" fore="d500d5"/> | |
<style-class name="keyword" fore="f47a00" bold="true"/> | |
<style-class name="string" fore="5fff61" /> | |
<style-class name="number" fore="fafafa" /> | |
<style-class name="identifier" fore="fddf39" /> |
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 | |
/** | |
* Constructor | |
* @param boolean $exceptions Should we throw external exceptions? | |
*/ | |
public function __construct($exceptions = false) | |
{ | |
$this->exceptions = ($exceptions == true); | |
// Mailtrap settings |
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
-- you can enable the log by change my.cnf settings (not recommended) | |
-- you can make changes on demand via your sql program, e.g workbench (recommended) | |
-- run the following commands to enable logging on demand. | |
# specify location for your log. Mysql needs write access to the folder specified | |
set global general_log_file = '/var/log/mysql/mysql.log'; | |
# turn on login (1), turn off logging (0) | |
set global general_log = 1; |
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 | |
## Paste on the command line to delete 256K bitrate mp3 files. | |
## /bin/bash at the top is here only to assist syntax highlighting | |
for i in *.mp3; do exiftool -audiobitrate "$i" | perl -ne 's,.*: (\d+).*,\1,g ; $rate=$1; if ($rate==256000) { print "rate: $rate\n"; }'; 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 | |
## -------------- | |
## Important notes | |
## | |
## * Run script as root or sudo | |
## * home.server is defined in ~/.ssh/config. Sample ~/.ssh/config is attached. | |
## * modify /etc/hosts to map home.server to correct IP address on your network | |
## | |
## * create an exclusion-list.txt file make sure the scripts point to its location correctly |
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 | |
## ------------------------------- | |
## | |
## IMPORTANT NOTES | |
## | |
## Don't use this script blindly. Some instructions may not be compatible with your distribution or version | |
## | |
## Run this script as root or sudo privileged account |