Skip to content

Instantly share code, notes, and snippets.

View hurtsky's full-sized avatar

hurtsky

View GitHub Profile
@hurtsky
hurtsky / esolat.md
Created August 29, 2023 08:40 — forked from lomotech/esolat.md
JAKIM eSolat API

Keybase proof

I hereby claim:

  • I am hurtsky on github.
  • I am hurtsky (https://keybase.io/hurtsky) on keybase.
  • I have a public key ASD8BceR8kL7yUWgOyPlphwTmhQFrVGvARuOiTgSxwi8fwo

To claim this, I am signing this object:

@hurtsky
hurtsky / gist:d2c3fd8602e0000f8256205161310362
Created December 28, 2017 05:10
how to reset admin password in vestacp
sudo v-change-user-password admin secret
@hurtsky
hurtsky / gist:2dca95628bbce8568d59bea815a12a9b
Created December 28, 2017 04:30
fix file/folder permission in vestcp
find /home/admin/web/<domainfolder>/public_html -type d -print0 | xargs -0 chmod 755
find /home/admin/web/<domainfolder>/public_html -type f -print0 | xargs -0 chmod 644
chown -R root:root /home/admin/web/<domainfolder>/public_html/.git
chown root:root /home/admin/web/<domainfolder>/public_html/.gitignore
chmod g+s /home/admin/web/<domainfolder>/public_html
@hurtsky
hurtsky / gist:4fe96fdb63389e184a65119f93384b73
Last active April 27, 2019 13:58
how to get 90% + in email grader or use cram-md5 in vestaCP
# this tutorial provided without any guarantee!
# only tested in ubuntu 16.04 64bit
--- 1st step ---
open /usr/local/vesta/bin/v-add-email
navigate to 'Action' and change to this
# Generating hashed password
# salt=$(generate_password "$PW_MATRIX" "8")
# md5="{md5}$($BIN/v-generate-password-hash md5 $salt <<<$password)"
@hurtsky
hurtsky / dosu.php
Created June 27, 2017 06:48 — forked from karthikax/dosu.php
PHP Download file to server from URL
<html>
<p style="width: 70%;margin: auto;margin-top: 5%;font-size:larger;text-align:center">
Download a file from any URL</p>
<form method="post" style="width: 70%;margin: auto;margin-top: 10%;">
<input name="url" size="50" placeholder="Source URL" style="width: 100%;height: 10%;font-size: 1.5em;padding:10px" required>
<input name="submit" type="submit" value="Download" style="width: 30%;height: 10%;margin: 5% auto; display: block;">
<p style="width: 70%;margin: auto;margin-top: 10%;font-size:larger;text-align:center">
To <?php echo getcwd(); ?></p>
<p style="width: 70%;margin: auto;font-size: smaller;text-align: center;position: fixed;bottom: 0;background: #fff;">
Powered by: <a href="http://kart.tk/portfolio" target="_blank" style="color:#f60;text-decoration:none;">Karthik</a></p>