iTorn
  • Home
  • Gists
  • Mongo Note
Subscribe
ideas & concept

create .sh file for mac

  • Onyx

Onyx

9 ต.ค. 2016 • 1 min read
create .sh file for mac

When you forget command line for run something …
you can put it in a .sh file that looks like this.

#!/bin/bash
ulimit -n 2048 && mongod

Note that ‘\’ become ‘/’.

You could execute as

sh myfile.sh

or set the x bit on the file

chmod +x myfile.sh

and then just call

myfile.sh

ref: http://stackoverflow.com/questions/14065069/equivalent-of-bat-in-mac-os

Sign up for more like this.

Enter your email
Subscribe
Note: Setup Flutter, FlutterFire, and Firebase Cloud Messaging with awesome notifications

Note: Setup Flutter, FlutterFire, and Firebase Cloud Messaging with awesome notifications

สร้าง Firebase Project เริ่มจากให้ตั้งชื่อ Package Name ของ android และ Bundle ID ของ IOS เอาไว้ก่อนตัวอย่างเช่น com.orgname.appname เสร็จแล้วให้เข้าไปสร้าง project ใน https://console.firebase.google.com/ และ setup setup step 1 กำหนด Package Name ของ android

  • Onyx
Onyx 13 ม.ค. 2022 • 6 min read
Rename Flutter Package Name หรือ Bundle ID และ App Name ใน Flutter project

Rename Flutter Package Name หรือ Bundle ID และ App Name ใน Flutter project

จากที่ได้ทดลองมาสองตัว มี package ที่ชื่อ rename สามารถใช้ในการ rename ได้ทั้ง bundle Id และ app name ดูเนื้อหาทั้งหมดได้ที่ rename การติดตั้งpub global activate renameการใช้งานถ้าไม่ได้ส่ง parameter -t or --target เข้าไปด้วย จะเป็นการ rename ใน platform

  • Onyx
Onyx 12 ม.ค. 2022 • 1 min read
Python get public IP

Python get public IP

I liked the http://ipify.org. They even provide Python code for using their API. # This example requires the requests library be installed. You can learn more # about the Requests library here: http://docs.python-requests.org/en/latest/ from requests import get ip = get('https://api.ipify.org').content.decode(

  • Onyx
Onyx 20 ธ.ค. 2021 • 1 min read
iTorn © 2022
Powered by Ghost