Skip to content

Instantly share code, notes, and snippets.

View MaxySpark's full-sized avatar
🐧
JS in Front JS in Back

BHARGAB MaxySpark

🐧
JS in Front JS in Back
View GitHub Profile
@MaxySpark
MaxySpark / Pointer.md
Created September 29, 2017 21:15
C and C++ Pointer Tips

Pointer in C and C++

  • Def : Variable that stores address of other variables

    p //address

    *p // value at address

  • Code

@MaxySpark
MaxySpark / install.bat
Created September 16, 2017 07:51
Run As Administrator
echo "Choco"
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
choco install python
choco install cmder
@MaxySpark
MaxySpark / init.sh
Last active May 21, 2019 21:06
ubuntu fresh install ready
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get install -y ubuntu-restricted-extras
sudo apt-get install -y curl
sudo apt-get install -y openjdk-8-jdk
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get install -y git vlc build-essential vim
sudo apt-get install -y redshift redshift-gtk dconf-editor
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
@MaxySpark
MaxySpark / Makefile
Created August 29, 2017 09:34
Arduino `make upload clean`
ARDUINO_DIR = /usr/share/arduino
ARDUINO_PORT = /dev/ttyACM*
USER_LIB_PATH = /home/pi/sketchbook/libraries
BOARD_TAG = uno
include /usr/share/arduino/Arduino.mk
@MaxySpark
MaxySpark / index.css
Created August 23, 2017 16:42
Web Technology Assigment
body {
background-color: gray;
text-align: center;
color: white;
font-family: Courier New, Courier, monospace;
/* font-size: 25px; */
}
a {
font-size: 2em;
private void updateRowHeights()
{
for (int row = 0; row < table.getRowCount(); row++)
{
int rowHeight = table.getRowHeight();
for (int column = 0; column < table.getColumnCount(); column++)
{
Component comp = table.prepareRenderer(table.getCellRenderer(row, column), row, column);
rowHeight = Math.max(rowHeight, comp.getPreferredSize().height);
#!/bin/bash
# Usage:
# ./curl-multi-url.sh -d OUTPUT_DIRECTORY -u USER_AGENT http://url-1/ http://url-2/;
# Arguments -d and -u are optional
#
#
# Defaults 990=990MB max size limit of one part
fsize_limit=$((990*1024*1024))
@MaxySpark
MaxySpark / SMTPandIMAP.md
Last active July 6, 2024 03:00
SMTP and IMAP Server and Ports of Email Services

SMTP and IMAP Server and Ports

Gmail

SMTP Server smtp.gmail.com
SMTP Port 465 (SSL)
SMTP Port 587 (TLS)
IMAP Server imap.gmail.com
IMAP Port 993

Hotmail

[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
Documentation=https://docs.mongodb.org/manual
[Service]
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
@MaxySpark
MaxySpark / up.sh
Created June 3, 2017 18:02
My Bash Scripts
sudo apt-get update
sudo apt-get upgrade