Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

maulvi

🏠
Working from home
Block or report user

Report or block maulvi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@maulvi
maulvi / soal no 1
Last active Sep 25, 2017
database minggu 3
View soal no 1
select employees.emp_no, first_name, last_name, count(dept_no) jml_dpt
from employees join dept_emp on employees.emp_no = dept_emp.emp_no
group by employees.emp_no, first_name, last_name
having count(dept_no) = 2;
View trigger
BEGIN
DECLARE
email_count INT;
SELECT COUNT(*)
INTO email_count
FROM employees
WHERE LCASE()
IF email_count > 0
THEN
SET NEW.email = CONCAT_WS(NEW.lastName, LEFT(NEW.firstName, 1), email_count, '@classicmodelcars.com');
@maulvi
maulvi / torrent.sh
Last active Aug 28, 2017
installer
View torrent.sh
#!/bin/bash
echo "Installing..."
curl https://i.jpillora.com/cloud-torrent! | bash
wget -O /etc/systemd/system/cloud-torrent.service https://gist.github.com/maulvi/f1df32bd73dcb709709c7afd30247a06/raw/4af916288313cf9ab24558986b4fee67239aa09a/cloud-torrent.service
systemctl enable cloud-torrent
systemctl start cloud-torrent
echo "cloud torrent running"
@maulvi
maulvi / cloud-torrent.service
Created Aug 28, 2017
cloud-torrent.service
View cloud-torrent.service
[Unit]
Description=cloud-torrent
[Service]
WorkingDirectory=/root/
ExecStart=/usr/local/bin/cloud-torrent --port 81 --config-path /root/cloud-torrent.json --title "Cloud"
Restart=always
RestartSec=3
[Install]
@maulvi
maulvi / arch
Created May 31, 2017
jp arch repositories
View arch
##
## Arch Linux repository mirrorlist
## Filtered by mirror score from mirror status page
## Generated on 2017-05-31
##
## Japan
Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
## Japan
Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch
@maulvi
maulvi / http_multithreaded.py
Created Apr 24, 2017 — forked from gnilchee/http_multithreaded.py
Multi-threaded Python3 HTTP Server
View http_multithreaded.py
#!/usr/bin/env python3
import sys, os, socket
from socketserver import ThreadingMixIn
from http.server import SimpleHTTPRequestHandler, HTTPServer
HOST = socket.gethostname()
class ThreadingSimpleServer(ThreadingMixIn, HTTPServer):
pass
@maulvi
maulvi / README.md
Last active Apr 23, 2017 — forked from nkcmr/README.md
simple deluge complete scope that uploads stuff to google drive
View README.md

deluge to google drive uploader

simple uploader script for deluge, assign this script to be called on torrent complete and it will walk a directory and upload it to your google drive

install dependencies:

npm install googleapis async winston lodash mime twilio
View owncloud9_deb8_instal.sh
# https://download.owncloud.org/download/repositories/stable/owncloud/
wget -nv https://download.owncloud.org/download/repositories/stable/Debian_8.0/Release.key -O - | apt-key add -
echo "deb http://download.owncloud.org/download/repositories/stable/Debian_8.0/ /" >> /etc/apt/sources.list.d/owncloud.list
apt-get update
apt-get install owncloud
@maulvi
maulvi / RPi-aria2-with-webui.sh
Last active Jan 29, 2017 — forked from akaxxi/RPi-aria2-with-webui.sh
Install Aria2 and webui on Raspberry Pi with one simple script.
View RPi-aria2-with-webui.sh
#!/bin/sh
DOWNLOAD_DIR="${HOME}/ddl"
CONFIG_DIR="${HOME}/.aria2"
RPC_TOKEN="lol"
RPC_PORT="6800"
sudo apt-get update
sudo apt-get install -y aria2 ca-certificates
@maulvi
maulvi / bootstrap_for_encoding_server.sh
Created Dec 11, 2015 — forked from drakeguan/bootstrap_for_encoding_server.sh
Bash script to install latest version of ffmpeg, x264 and libvpx on Ubuntu 14.04 server
View bootstrap_for_encoding_server.sh
#!/bin/bash
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 14.04
# Copyright @ 2014 Shuen-Huei (Drake) Guan <drake.guan@gmail.com>
# References:
# * https://gist.github.com/xdamman/e4f713c8cd1a389a5917
# * https://blog.dlasley.net/2013/05/install-ffmpeg-from-source/
# * http://fermat-little-theorem-blog.logdown.com/posts/203069-solved-when-building-gpac-suffer-usr-local-lib-libswscalea-error-adding-symbols-bad-value
You can’t perform that action at this time.