- Install cmder_mini (msysgit is already installed, so no need for full version)
- In Cmder, open settings:
Win + Alt + P - Under Startup > Tasks, add a task called
{bash}with the following settings:- Task parameters (set icon):
- For Cmder icon:
/icon "%CMDER_ROOT%\cmder.exe" - For Git icon:
/icon "C:\Program Files (x86)\Git\etc\git.ico"
- For Cmder icon:
- Commands (open Git's bash shell):
- Task parameters (set icon):
"C:\Program Files (x86)\Git\bin\sh.exe" -l -new_console:d:%USERPROFILE%
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
| # NOTICE: Before you copy this example, be sure you understand what all this does. Remember: This is a gist, not a github file meaning | |
| # you can't pip install this, you would need to put this into a new file and add it to your cog list. | |
| import discord | |
| import asyncio | |
| from discord.ext import commands | |
| def chunks(l, n): |
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
| // Load up the discord.js library | |
| const Discord = require("discord.js"); | |
| // This is your client. Some people call it `bot`, some people call it `self`, | |
| // some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`, | |
| // this is what we're refering to. Your client. | |
| const client = new Discord.Client(); | |
| // Here we load the config.json file that contains our token and our prefix values. | |
| const config = require("./config.json"); |
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### MySQL Server Login Info ### | |
| MUSER="USERNAME" | |
| MPASS="PASSWORD" | |
| MHOST="localhost" | |
| MYSQL="$(which mysql)" |
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 | |
| show_menu(){ | |
| NORMAL=`echo "\033[m"` | |
| MENU=`echo "\033[36m"` #Blue | |
| NUMBER=`echo "\033[33m"` #yellow | |
| FGRED=`echo "\033[41m"` | |
| RED_TEXT=`echo "\033[31m"` | |
| ENTER_LINE=`echo "\033[33m"` | |
| echo -e "${MENU}*********************************************${NORMAL}" | |
| echo -e "${MENU}**${NUMBER} 1)${MENU} Mount dropbox ${NORMAL}" |
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
| ## TeamSpeak 3 Server - Autostart Service Script (LSBInitScript) ## | |
| Init file: "/etc/init.d/tsserver" | |
| Runtime user: "ts" | |
| TeamSpeak server dir: "/home/ts/teamspeak3-server/<your tsserver>" | |
| Install: "chmod 0755 /etc/init.d/tsserver && cd /etc/init.d/ && insserv tsserver && cd - > /dev/null" | |
| Autostart after reboot: "update-rc.d tsserver defaults" | |
| Usage: tsserver {start|stop|status|restart} "/etc/init.d/tsserver status" "service tsserver status" | |
| enjoy |
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 | |
| class Mysql{ | |
| static private $link = null; | |
| static private $info = array( | |
| 'last_query' => null, | |
| 'num_rows' => null, | |
| 'insert_id' => null | |
| ); |
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 | |
| # | |
| # Use this script to perform backups of one or more MySQL databases. | |
| # | |
| # Databases that you wish to be backed up by this script. You can have any number of databases specified; encapsilate each database name in single quotes and separate each database name by a space. | |
| # | |
| # Example: | |
| # databases=( '__DATABASE_1__' '__DATABASE_2__' ) |
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 | |
| # Simple colorize for bash by means of sed | |
| # | |
| # Copyright 2008-2015 by Andreas Schamanek <andreas@schamanek.net> | |
| # | |
| # 2017 - Modified from mycolorize into a shell function | |
| # by Ignacio Nunez Hernanz <nacho _a_t_ ownyourbits _d_o_t_ com> | |
| # | |
| # GPL licensed (see end of file) * Use at your own risk! | |
| # |
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 | |
| TIMESTAMP=$(date +"%F") | |
| BACKUP_DIR="/backup/$TIMESTAMP" | |
| MYSQL_USER="backup" | |
| MYSQL=/usr/bin/mysql | |
| MYSQL_PASSWORD="password" | |
| MYSQLDUMP=/usr/bin/mysqldump | |
| mkdir -p "$BACKUP_DIR/mysql" |
NewerOlder