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
| storage: | |
| dbPath: /var/lib/mongodb | |
| repairPath: /var/lib/mongodb/.repair | |
| directoryPerDB: true | |
| journal: | |
| enabled: true | |
| engine: "mmapv1" | |
| mmapv1: | |
| smallFiles: true |
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 | |
| # This is a script that provides infinite history to get around Alfred's 3-month limit. | |
| # It works by regularly backing up and appending the items in the alfred db to a | |
| # sqlite database in the user's home folder. It also provides search functionality. | |
| # https://www.alfredforum.com/topic/10969-keep-clipboard-history-forever/?tab=comments#comment-68859 | |
| # https://www.reddit.com/r/Alfred/comments/cde29x/script_to_manage_searching_backing_up_and/ | |
| # Example Usage: | |
| # alfred-clipboard.sh backup |
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
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
| docker stats $(docker inspect -f '{{.Name}}' $(docker ps -q) | cut -c 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
| # Used as a base image that other Spring Boot-based | |
| # docker containers can be based off of. Example dependent Dockerfile: | |
| # | |
| # FROM <this-image> | |
| # ADD target/myjar.jar /app.jar | |
| # | |
| # Alternatively, you can modify this file to use a build arg: | |
| # ... | |
| # ... | |
| # ARG JAR_FILE |
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
| DEVICE="he-ipv6" | |
| DEVICETYPE=sit | |
| BOOTPROTO=none | |
| ONBOOT=yes | |
| IPV6INIT=yes | |
| IPV6TUNNELIPV4=184.105.253.10 | |
| IPV6TUNNELIPV4LOCAL=XXX.XXX.XXX.XXX | |
| IPV6ADDR=2001:470:YYYY:YYYY::2/64 | |
| IPV6_DEFAULTGW=2001:470:YYYY:YYYY::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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <wchar.h> | |
| #include <sys/types.h> | |
| #include <ifaddrs.h> | |
| #include <netdb.h> | |
| #ifdef __linux__ |
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
| #include <sys/cdefs.h> | |
| #include <sys/types.h> | |
| #include <sys/ioctl.h> | |
| #ifdef __FreeBSD__ | |
| #include <sys/endian.h> | |
| #endif | |
| #include <net/if.h> | |
| #include <net/pfvar.h> |
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
| type Api struct { | |
| *revel.Controller | |
| } | |
| func addHeaderCORS(c *revel.Controller) revel.Result { | |
| c.Response.Out.Header().Add("Access-Control-Allow-Origin","*") | |
| return nil | |
| } | |
| func init() { |
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 | |
| shift # get rid of -c | |
| # if no commands, just open a shell | |
| if [[ $# -eq 0 ]]; then | |
| /bin/bash -l | |
| # if the first arg is a git- command, that means it is something like git-push, etc... so forward it | |
| elif [[ $1 == git-* ]]; then | |
| ssh -q -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no git@localhost $* |
NewerOlder