This file contains 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
function recursivelyApplyRoutes(route){ | |
(function recurse(dir){ | |
let absoluteRoutesPath = process.cwd() + route + (dir? dir:''); | |
fs.readdirSync(absoluteRoutesPath).forEach((file) =>{ | |
let absoluteCurrentFilePath = absoluteRoutesPath + '/' + file; | |
let isDirectory = fs.statSync(absoluteCurrentFilePath).isDirectory(); | |
if(isDirectory) recurse((dir? dir:'') + '/' + file); | |
if(file.indexOf('index.js') !== -1) require(absoluteCurrentFilePath).applyRoutes(server, dir); |
This file contains 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
function network() { | |
ip_address="$(ip route get 8.8.8.8 | tr -s ' ' | cut -d' ' -f7)" | |
echo "$(ip -c -br address)" | |
echo | |
echo "$(ip -c -br link)" | |
echo | |
echo "$(route)" | |
echo | |
echo "$(nmap $ip_address)" |
This file contains 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
while sleep 1; do | |
tput sc; tput cup 0 $(($(tput cols)-29)); date; tput rc; | |
done |
This file contains 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
import java.sql.Connection; | |
import java.sql.DatabaseMetaData; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.ResultSetMetaData; | |
import java.sql.SQLException; | |
import java.sql.Statement; | |
import java.util.ArrayList; | |
import java.util.logging.Level; | |
import java.util.logging.Logger; |
This file contains 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
for (let [innerKey, innerValue] of Object.entries(value)) { | |
} |
This file contains 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
module.exports = { | |
extends: [ | |
'standard' | |
], | |
} |
This file contains 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>: (If applied, this commit will...) <keyword> <subject> (5o char. max) | |
# Explain why this change is being made (72 char. max) | |
# --- TYPE | |
# feat (new feature) | |
# fix (bug fix) | |
# refactor (refactoring production code) | |
# style (formatting, missing semi colons, etc; no code change) | |
# docs (changes to documentation) |
This file contains 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
import { localForage, VueLocalForage } from './plugins/vue-localforage' | |
Vue.use(VueLocalForage) | |
// to check for proper installation - can be deleted afterwords | |
localForage.ready().then(() => { | |
console.log(localForage.driver()) | |
}) | |
new Vue({ |
This file contains 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
# Edit this file to introduce tasks to be run by cron. | |
# | |
# Each task to run has to be defined through a single line | |
# indicating with different fields when the task will be run | |
# and what command to run for the task | |
# | |
# To define the time you can provide concrete values for | |
# minute (m), hour (h), day of month (dom), month (mon), | |
# and day of week (dow) or use '*' in these fields (for 'any').# | |
# Notice that tasks will be started based on the cron's system |
This file has been truncated, but you can view the full file.
This file contains 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
. | |
├── personal | |
│ ├── finance | |
│ │ ├── budget | |
│ │ │ ├── allocated_spending | |
│ │ │ ├── breakdown_of_saving | |
│ │ │ ├── consumer_equity_sheet | |
│ │ │ ├── debt_snowball | |
│ │ │ ├── income_sources | |
│ │ │ ├── lump_sum_payment |
OlderNewer