Skip to content

Instantly share code, notes, and snippets.

View rescenic's full-sized avatar
:electron:
AI Engineer

Muhammad Ridwan Hakim, S.T., CPITA, ITPMCP rescenic

:electron:
AI Engineer
View GitHub Profile
@bhaveshdaswani93
bhaveshdaswani93 / oop_classes.js
Created December 22, 2019 06:00
Understanding classes in javascript
class Person
{
constructor(first_name,last_name) {
this.first_name = first_name;
this.last_name = last_name;
}
getFullName() {
return `Full Name is: ${this.first_name} ${this.last_name}`;
}
}
@0penBrain
0penBrain / commitCount.sh
Last active November 10, 2025 16:35
The simplest way to get commit count of a GitHub repository through the API
curl -I -k "https://api.github.com/repos/:owner/:repo/commits?per_page=1" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'
### And that's all !
# I saw many fighting with finding first commit SHA or similar fancy thing.
# Here we just rely on the GH API, asking commits at 1 per page and parsing the last page number in the header of the reply (whose body only holds the last commit !)
# So this is robust and bandwidth efficient. :)
# If one want the commit count of a specific SHA, just use :
curl -I -k "https://api.github.com/repos/:owner/:repo/commits?per_page=1&sha=:sha" | sed -n '/^[Ll]ink:/ s/.*"next".*page=\([0-9]*\).*"last".*/\1/p'
@pishangujeniya
pishangujeniya / reset-mysql-8-root-password-windows.md
Created December 5, 2019 18:04
Reset MySQL 8.0 root Password in Windows

Reset MySQL 8.0 root Password in Windows

  1. Stop the MySQL 8.0service from services
  2. Go to path C:\Program Files\MySQL\MySQL Server 8.0\bin and open cmd
  3. Run mysqld --console --skip-grant-tables --shared-memory
  4. Open new cmd in the same path
  5. Run following commands
  6. mysql -u root
  7. select authentication_string,host from mysql.user where user='root';
  8. UPDATE mysql.user SET authentication_string='' WHERE user='root';
@danieldogeanu
danieldogeanu / WampSendmail.md
Last active July 31, 2024 17:22
How to configure Wamp Server to send email with sendmail.

1. Download and Configure Sendmail for Windows:

  • Download Sendmail for Windows;
  • Extract sendmail.zip and place the contents in an easily accessible place, like C:\sendmail;
  • Open the sendmail.ini file using a text editor such as notepad and edit the following values:
    [sendmail]
    smtp_server=mail.example.com
    smtp_port=465
    auth_username=username@example.com
    

auth_password=your_password

@symmetryninja
symmetryninja / mywsl.md
Last active July 27, 2020 12:56
A basic howto for of the WSL setup I have now that I have no Apple products.

Setting up WSL v2 to do some linux on windows

This is a constant work in progress.

Why Windows with WSL

Because I became so accustom to having bash behind my VSCode app to run linux-like commands on my MacBookPro and now that I don't have or want another MacBook variant, I want to be able to have a linux-like command system behind visual studio code.

Why not just use linux? Because I use a lot of apps that don't run on linux.

@rohan-molloy
rohan-molloy / vmware-onthehub-downloads.yml
Last active June 15, 2026 15:55
Public Downloads for Various VMWare Products from OnTheHub.Com. License keys are requied
vmware:
-
name: 'VMware NSX for vSphere'
serial: null
url:
- 'http://software.onthehub.com/shared/publisher/VMware/VMware-NSX-Manager-6.2.0-2986609.ova'
-
name: 'VMware vRealize Suite 7 Enterprise'
serial: null
url:
@AppLoidx
AppLoidx / Audio-on-HTML5.md
Last active March 23, 2025 15:27
Way to autoplay audio on html5

This is the method I use to automatically play the audio on the page when I open it

  1. Creating iframe with empty audio:
<iframe src="assets/music/silence.mp3" allow="autoplay" id="audio" style="display:none"></iframe>

You can use this sound: silence

  1. Add audio tag with your original sound:
@Toliak
Toliak / .bashrc
Created June 19, 2019 13:24
Useful aliases for arch linux
alias ll="ls -la"
alias pac="sudo pacman --noconfirm"
alias yao="yaourt --noconfirm"
alias give-me-upgrade="sudo pacman --noconfirm -Syyuu && yaourt --noconfirm -Syyuua"
alias give-me-ssh="ssh-add $(ls ~/.ssh | egrep "^([^\.]+)$" | grep -v known_hosts)"
@riverar
riverar / features.json
Last active April 20, 2026 18:39
Quick n' dirty hack to enable Your Phone remoting, notification and other experiments
{
"AATes123": true,
"AcrylicAndBackground": true,
"AudioInfoSync": true,
"BatteryIndicator": true,
"CallingDiscoveryTimeout": 30,
"CallingEnableOnARM": true,
"CallingFromMessages": true,
"CallingLabelInProd": true,
"CallingNode": true,