Skip to content

Instantly share code, notes, and snippets.

View sople1's full-sized avatar
πŸ‹
:3

Seongsu Yoon sople1

πŸ‹
:3
View GitHub Profile
@sople1
sople1 / launch.json
Created August 22, 2022 03:35
Visual Studio Code: Debug multiple web app with Chrome
// .vscode/launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Debug Multiple application - with Launch Chrome Debug", // free to change
"urlFilter": "http://localhost:*", // for hooking
"pathMapping": {
@sople1
sople1 / backup.sh
Created July 13, 2021 02:43
data backup script
#!/bin/sh
dat=`date +%Y%m%d%H%M%S`
#echo $dat
echo "backing up current status..."
tar cfpz /backup/db/$dat-mysql.tgz /var/lib/mysql/*
tar cfpz /backup/web/$dat-sites-user.tgz /home/user/sites/*
#tar cfpz /backup/git/$dat-git.tgz /home/git/repositories/*
@sople1
sople1 / post-update
Last active December 22, 2019 13:51
GIT: post update for remote update (single server, simple ver.) 2019 checked.
#!/bin/bash
#
# .git/post-update
#
# [Simple Update Ver.]
#
git update-server-info
echo "Starting Updating Process..."
@sople1
sople1 / inetrefresh.js
Last active April 14, 2022 07:36
node wininet.dll refresh Internet Setting for proxy
'use strict';
/**
* node wininet.dll refresh Internet Setting for proxy
* using ffi, wininet.dll
*
* you may can use InternetSetOptionA rather then InternetSetOptionW
*
* @author SnooeyNET <sople1@snooey.net>
*/
@sople1
sople1 / post-update
Last active December 22, 2019 13:46
GIT: update data on post-update (local, remote)
#!/bin/bash
#
# .git/post-update
#
git update-server-info
echo "Starting Updating Process..."
# :: Auto-Pulling script >
<?php
// λ©”νƒ€νƒœκ·Έλ₯Ό μ΄μš©ν•œ URL 이동
// header("location:URL") 을 λŒ€μ²΄
function goto_url($url)
{
$url = str_replace("&amp;", "&", $url);
//echo "<script> location.replace('$url'); </script>";
if (!headers_sent())
header('Location: '.$url);
else {
// go to https://www.facebook.com/pokes/ and run the code below :)
javascript:setInterval(function(){var _=document.body.querySelectorAll('#poke_live_new a._42ft._4jy0._4jy3._4jy1.selected._51sy'),a=0;for(;a<_.length;a++)_[a].click()},2000);
# encoding: utf-8
require 'httparty'
module IB
class IBAgent
include HTTParty
base_uri 'www.ilbe.com'
format :plain
headers 'Referer' => 'http://www.ilbe.com/index.php?mid=index&act=dispMemberSignUpForm'
headers 'User-Agent' => 'Input your user-agent here'
#!/usr/bin/env bash
### BEGIN INIT INFO
# Provides: emperor
# Required-Start: $all
# Required-Stop: $all
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the uwsgi emperor app server
# Description: starts uwsgi emperor app server using start-stop-daemon