Skip to content

Instantly share code, notes, and snippets.

View 85degree's full-sized avatar
🏠
Working from home

Abdul Gaffur A Dama 85degree

🏠
Working from home
View GitHub Profile
@85degree
85degree / index.html
Created August 24, 2012 06:32
Contoh IFRAME
<!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" />
@85degree
85degree / slapd.xml
Last active August 29, 2015 14:10
SmartOS SMF Manifest for OpenLDAP Server
<?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">
@85degree
85degree / nginx
Last active August 29, 2015 14:23 — forked from vdel26/nginx
#!/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
@85degree
85degree / install.md
Created December 7, 2015 02:15 — forked from Micka33/install.md
cassandra on mac OSX

Installing Cassandra on Mac OS X

Install Homebrew

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)"
@85degree
85degree / updateip.lua
Created February 13, 2016 21:18
CloudFlare Dynamic DNS using OpenWRT
#!/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
@85degree
85degree / fix-homebrew-npm.md
Created March 6, 2016 08:46 — forked from DanHerbert/fix-homebrew-npm.md
Instructions on how to fix npm if you've installed Node through Homebrew on Mac OS X or Linuxbrew

Fixing npm On Mac OS X for Homebrew Users

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.

Solution

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.

@85degree
85degree / index.js
Created November 4, 2017 15:32 — forked from martimatix/index.js
Writing data to Dynamodb from Serverless
'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();
@85degree
85degree / crontab -e
Created November 13, 2018 17:51 — forked from ImpulseTheFox/crontab -e
CloudFlare v4 API DNS entry updater
*/5 * * * * /usr/local/bin/foxdd 1>/dev/null 2>&1
@85degree
85degree / SoftEther VPN Server Setup in Raspberry Pi 3
Last active January 26, 2020 20:30 — forked from amanjuman/SoftEther VPN Server Setup in Raspberry Pi 3
SoftEther VPN Server Setup in Raspberry Pi 3
#/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