Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
<title>Contoh iFrame</title> | |
</head> | |
<frameset rows="80,*" frameborder="no" border="0" framespacing="0"> | |
<frame src="./menu.html" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" /> | |
<frame src="./utama.html" name="mainFrame" id="mainFrame" title="mainFrame" /> |
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="slapd"> | |
<service name="slapd" type="service" version="1"> | |
<create_default_instance enabled="false"/> | |
<single_instance/> | |
<dependency name="network" grouping="require_all" restart_on="error" type="service"> | |
<service_fmri value="svc:/milestone/network:default"/> | |
</dependency> | |
<dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> |
#!/bin/sh | |
# | |
# chkconfig: 2345 55 25 | |
# Description: Nginx init.d script, put in /etc/init.d, chmod +x /etc/init.d/nginx | |
# For Debian, run: update-rc.d -f nginx defaults | |
# For CentOS, run: chkconfig --add nginx | |
# | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all |
#!/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 |
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
This solution fixes the error caused by trying to run npm update npm -g
. Once you're finished, you also won't need to use sudo
to install npm modules globally.
Before you start, make a note of any globally installed npm packages. These instructions will have you remove all of those packages. After you're finished you'll need to re-install them.
'use strict'; | |
const doc = require('dynamodb-doc'); | |
const dynamo = new doc.DynamoDB(); | |
const Q = require('kew'); | |
module.exports.handler = (event, context, callback) => { | |
function putItem() { | |
const defer = Q.defer(); |
*/5 * * * * /usr/local/bin/foxdd 1>/dev/null 2>&1 |
#/bin/sh | |
softether_version=v4.32-9731-beta | |
softether_date_build=2020.01.01 | |
softether_release=softether-vpnserver-$softether_version-$softether_date_build-linux-arm_eabi-32bit.tar.gz | |
softether_release_url=https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/$softether_version/$softether_release | |
is_user_root () { [ ${EUID:-$(id -u)} -eq 0 ]; } |
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: softether-vpnserver | |
# Required-Start: $network $remote_fs $syslog | |
# Required-Stop: $network $remote_fs $syslog | |
# Should-Start: network-manager | |
# Should-Stop: network-manager | |
# X-Start-Before: $x-display-manager gdm kdm xdm wdm ldm sdm nodm | |
# X-Interactive: true | |
# Default-Start: 2 3 4 5 |