Skip to content

Instantly share code, notes, and snippets.

View erycamel's full-sized avatar
💭
I may be slow to respond.

Ery Camel erycamel

💭
I may be slow to respond.
View GitHub Profile
@erycamel
erycamel / go-wsl.md
Created January 21, 2024 11:42 — forked from renevo/go-wsl.md
Easily update/install Go in wsl

Updating/Installing Go in WSL

Remove

Removes older versions

sudo rm -rf /usr/local/go* && sudo rm -rf /usr/local/go
@erycamel
erycamel / install_mysql_in_wsl.md
Created January 20, 2024 14:35 — forked from zhensongren/install_mysql_in_wsl.md
Set up MySQL on local machine (Windows Subsystem for Linux, WSL2)

Upgrade the Repositories

sudo apt update sudo apt upgrade

Install MySQL 5.7

sudo apt install mysql-server

Secure MySQL Installation

sudo apt install mysql-server #To do the high security provide all answers to yes

@erycamel
erycamel / README.md
Created February 8, 2020 02:20 — forked from talon/README.md
Install Docker On Windows 10 Home

Install Docker On Windows 10 Home

"Windows Home Docker Desktop requires Windows 10 Pro or Enterprise version 15063 to run." So says the Docker Installer however, the Docker forums beg to differ

The workaround is to manually image the Hyper-V and Containers features, then trick the installer into thinking you're using Windows Pro.

TL;DR

  1. Run windows_home_containers.ps1 in an Administrative Powershell
  2. Restart your computer
@erycamel
erycamel / Windows
Created December 28, 2019 05:18 — forked from JerryLokjianming/Crack Sublime Text Windows and Linux.md
Crack Sublime Text 3.2.2 Build 3211
# Subscribe to my YouTube Channel -> https://lokjianming.page.link/CVLm #
How to Crack Sublime Text 3 with Hex Editor (without license) ↓
1. Download & Install Sublime Text 3.2.2 Build 3211
2. Visit Hexed.it
3. Open file sublime_text.exe
4. Search address: 97 94 0D -> 00 00 00
5. Offset 0x8545: Original 84 -> 85
6. Offset 0x08FF19: Original 75 -> EB
@erycamel
erycamel / Cara Repair Table MySQL yang Corrupt
Last active September 4, 2019 08:40
Cara Repair Table di Database MySQL yang Korup/Corrupt
mysql -uroot -p
use cakep;
CHECK TABLE images;
REPAIR TABLE images;
exit;
https://nurudin.jauhari.net/cara-repair-table-di-database-mysql-yang-korupcorrupt.jsp
@erycamel
erycamel / Reset Forgotten MySql root Password Under Windows
Last active September 4, 2019 08:41
Reset Forgotten MySql root Password Under Windows
1. Stop your MySQL server completely. This can be done from Wamp(if you use it), or start “services.msc” using Run window, and stop the service there.
2. Open your MS-DOS command prompt using “cmd” inside the Run window. Then go to your MySQL bin folder, such as C:\MySQL\bin. Path is different if you use Wamp.
3. Execute the following command in the command prompt:
mysqld.exe -u root --skip-grant-tables
4. Leave the current MS-DOS command prompt as it is, and open a new MS-DOS command prompt window.
5. Go to your MySQL bin folder again.
6. Enter “mysql” and press enter.
7. You should now have the MySQL command prompt working. Type “use mysql;” so that we switch to the “mysql” database.
8. Execute the following command to update the password:
package main
import (
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
_ "github.com/mattn/go-sqlite3"
)
type Users struct {
Id int `gorm:"AUTO_INCREMENT" form:"id" json:"id"`
Create GITHUB
-------------
echo "Application MEAN" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/erycamel/mean4.git
git push -u origin master
Create New Branch ==> "server-setup"
Changing the default character set to UTF-8
To change the default character set from latin1 to UTF-8, the following settings should be specified in the my.cnf configuration file.
[client]
...
default-character-set=utf8
...
[mysql]
...
@erycamel
erycamel / gist:3f6001209bd5e190e3b172db8cded2eb
Last active July 11, 2018 04:37
Angular 4 & Bootstrap 4 & FontAwesome & JQuery
Angular 4 & Bootstrap 4 & FontAwesome & JQuery
1. Install Bootstrap 4
As of now, Bootstrap 4 is still in alpha stage. This new version requires a newer version of jQuery as well as another component called tether.io which is used for the Bootstrap 4 Tooltips.
To install Bootstrap 4 and its dependencies, open up a terminal in your project’s base folder (where package.json is located) and execute the following commands:
npm install bootstrap@4.0.0-alpha.6 --save
npm install jquery@^3.2.1 --save
npm install tether@^1.4.0 --save