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
#!/bin/bash | |
sudo dnf config-manager --add-repo http://mirror.amberit.com.bd/fedora/linux/releases/25/Everything/x86_64/os/ | |
sudo dnf config-manager --add-repo http://mirror.amberit.com.bd/fedora/linux/updates/25/x86_64/ |
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
#!/bin/bash | |
brew tap homebrew/dupes | |
brew install coreutils findutils gawk gnu-getopt gnu-tar grep wget quilt xz | |
brew ln gnu-getopt --force | |
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" | |
hdiutil create -size 20g -type SPARSE -fs "Case-sensitive HFS+" -volname OpenWrt OpenWrt.sparseimage | |
hdiutil attach OpenWrt.sparseimage | |
cd /Volumes/OpenWrt | |
git clone https://github.com/openwrt/openwrt.git buildroot | |
cd buildroot |
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
#!/usr/bin/env python | |
import argparse | |
from string import Template | |
""" | |
Subclassing template class | |
""" | |
class NginTemplate(Template): | |
delimiter = '#' |
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
#!/usr/bin/lua | |
-- Original script: https://github.com/nileshgr/utilities/blob/master/general/updateip.lua | |
-- http://nileshgr.com/2015/09/23/cloudflare-dynamic-dns-using-openwrt | |
-- For use with openwrt since openwrt supports LUA. | |
-- Prerequisites: | |
-- luasec | |
-- luasocket | |
-- libubus-lua |
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
#!/usr/bin/env bash | |
yum update -y | |
yum install -y https://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_17.5-1\~centos\~7_amd64.rpm | |
yum install -y expat-devel openssl-devel erlang-reltool gcc-c++ make | |
git clone https://github.com/esl/MongooseIM.git ~/mongooseim | |
cd ~/mongooseim | |
./rebar get-deps | |
./tools/configure with-all | |
./rebar compile | |
make install |
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
const opener = require('opener'); | |
const { devServerUrl } = require('./config'); | |
const removeCallback = require('lodash/pull'); | |
function OpenerPlugin() { | |
} | |
OpenerPlugin.prototype.apply = (compiler) => { | |
compiler.plugin('done', function openerCallback(stats) { | |
/*eslint no-console:0*/ |
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
#!/bin/bash | |
# "Bridge" Networking between KVM Guest and Host | |
# | |
# Copyright (c) 2014 Jesse J. Cook | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
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
export ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="robbyrussell" | |
plugins=(git history-substring-search fedora yum) | |
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$PATH" | |
source $ZSH/oh-my-zsh.sh | |
alias zshconfig="vi ~/.zshrc" | |
alias reload="source ~/.zshrc" |
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
/** | |
* Takes a raw param strings then converts it to int if integer | |
* If separated with , then return an array | |
* @param rawParams | |
* @returns {Params Item Array} || { Param Item} | |
*/ | |
function paramsMake(rawParams) { | |
const param = rawParams.split(',').map(item => { | |
if (Number.isNaN(parseInt(item, 8))) return item; | |
return parseInt(item, 8); |
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
"precommit.silent": true, | |
"pre-commit": [ | |
"pre-commit-eslint" | |
] |