Skip to content

Instantly share code, notes, and snippets.

View yugaego's full-sized avatar
🌻
Let the flowers grow.

YE yugaego

🌻
Let the flowers grow.
View GitHub Profile
@yugaego
yugaego / restore.bat
Last active November 20, 2024 09:56
Restore Windows Services (Processes)
:: Batch Script Created by FreeBooter.
;; https://www.youtube.com/watch?v=j83VP4V8ifs
@Echo Off & Cls
REM --> Check for permissions
Reg query "HKU\S-1-5-19\Environment"
REM --> If error flag set, we do not have admin.
if %errorlevel% NEQ 0 (
ECHO **************************************
@yugaego
yugaego / automator_setup.md
Created November 3, 2024 22:53 — forked from Coool/automator_setup.md
Clearing Telegram cache & Automate using LaunchDaemons and Automator application

How to setup clear cache on login.

Note: If your mac is off, LaunchDaemons will not run. So, automator will clear the cache during login.

  1. Open Automator application -> select Application -> Click Choose

application

  1. Select run shell script -> copy & paste clear_telegram_cache.sh -> Click test run

1. Download latest apktool version.
2. Download the batch file and aapt.exe.
3. Create a folder anywhere in the PC and put all the apktool.jar, aapt.exe and the batch script in that folder.
4. Open command prompt.
5. Navigate to the folder where you placed apktool.jar, batch script and the aapt.exe.
6. Now, you need to install the file using the " IF " command.
7. Type the following command.
apktool if name-of-the-app.apk
@yugaego
yugaego / test.asciidoc
Last active November 22, 2020 00:06
Asciidoctor possessive monospaced phrase render

The class’ static methods make it easy to operate on files and directories.

===

The class' static methods make it easy to operate on files and directories. Then `monospaced follows.

===

@yugaego
yugaego / basics.md
Last active November 4, 2020 09:05
Markdown vs Org Mode Cheat Sheet

Markdown

Headings

Top Level Header

Second Level Header

Third Level Header

@yugaego
yugaego / init-dictionary.el
Created April 30, 2020 16:25 — forked from Superbil/init-dictionary.el
lookup dictionary in emacs on mac
;; from http://larkery.tumblr.com/post/465585528/emacs-dictionary-app
(defun mac-open-dictionary (the-word)
"Open Dictionary.app for the-word"
(interactive "Dictionary Lookup: ")
(shell-command
(concat "open \"dict:///" (replace-regexp-in-string "\"" "\\\\\"" the-word) "\"")))
;; see https://gist.github.com/1228110
;; dict.py is from http://sakito.jp/mac/dictionary.html
(defun dictionary ()
@yugaego
yugaego / setup.md
Last active August 14, 2018 12:01
Xcode Line Actions Custom Shortcuts

Setup

Based on [Stackoverflow solution][0]

Environment

  • Xcode 9.4.1
  • MacOS 10.13.6 High Sierra
@yugaego
yugaego / cert-install.bash
Last active December 28, 2021 16:50
Manage Let's Encrypt Certificate using Certbot with SSL Virtual Hosts
#!/usr/bin/env bash
# Setup custom SSL virtual host with Lets Encrypt certificate
# In /etc/httpd/conf.d/ssl.conf add line 'IncludeOptional conf.d/ssl/*.host'
searchDir=../path/to/dir/with/domain/names/to/setup
hostsDir=/etc/httpd/conf.d/ssl
documentRoot=../path/to/www/dir
certNotificationsEmail=some@email.dev
dbConfig=../path/to/db/config.file
@yugaego
yugaego / console-command.js
Created May 5, 2018 12:20
Output Infusionsoft Merchants Accounts ID using JavaScript
var merchants = 'Merchant Accounts:\n';
jQuery('#defaultMerchantAccount option').each(function(i, elem){
if (elem.value) {
merchants += '\t• ID ' + elem.value.split('|')[0] + '\t' + elem.text + '\n';
}
});
alert(merchants);
@yugaego
yugaego / composer.php
Created November 9, 2017 13:09
Running composer from a browser
<?php
header("Content-type: text/html");
//
// Run composer with a PHP script in browser
//
// http://stackoverflow.com/questions/17219436/run-composer-with-a-php-script-in-browser
error_reporting(E_ALL);
ini_set('display_errors', 1);