This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Test on https://github.com/yousseb/meld/releases/tag/osx-20 | |
### OSX - 3.21.0 (r4) Sonoma | |
### !!! Note: You need put the Meld.app r4 build to the /Applications path first. | |
#!/bin/zsh | |
#Fix libpng16.16.dylib not found | |
install_name_tool -change /usr/local/opt/libpng/lib/libpng16.16.dylib @executable_path/../Frameworks/libpng16.16.dylib /Applications/Meld.app/Contents/Frameworks/libfreetype.6.20.0.dylib | |
#Fix libbrotlidec.1.dylib not found |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off&cls | |
SET z="C:\Program Files\7-Zip\7z.exe" | |
SET MYSQL_BIN_PATH="[REPLACE HERE BY YOURSELF, FOR EXAMPLE: C:\mysql\bin]" | |
SET LOCAL_STORE_BASE_PATH="[REPLACE HERE BY YOURSELF, FOR EXAMPLE: C:\]" | |
SET DATABASE_USERNAME="[REPLACE HERE BY YOURSELF, FOR EXAMPLE: root]" | |
SET DATABASE_PASSWORD="[REPLACE HERE BY YOURSELF, FOR EXAMPLE: password]" | |
SET TodayYear=%date:~0,4% | |
SET TodayMonthP0=%date:~5,2% | |
SET TodayDayP0=%date:~8,2% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cat > ~/.vimrc <<EOF | |
syntax on | |
set fileencodings=utf-8 | |
set termencoding=utf-8 | |
set encoding=utf-8 | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export LC_ALL="en_US.UTF-8" | |
sudo sed -i '/^#.* zh_TW.* /s/^#//' /etc/locale.gen | |
sudo locale-gen | |
sudo update-locale LANG="zh_TW.UTF-8" LANGUAGE="zh_TW" | |
echo "Please re-login or restart your system!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This shell script is made by SyneArt <sa@syneart.com> | |
# Android Studio default path on Mac | |
adb=~/Library/Android/sdk/platform-tools/adb | |
function connect() { | |
device_id=$1 | |
device_ip=`${adb} -s ${device_id} shell ip -f inet addr show wlan0 | grep -e "[0-9].*\/[0-9]*" | awk '{ print $2 }' | sed 's/\/[0-9]*//'` | |
echo "Android device id: ${device_id}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This shell script is made by SyneArt <sa@syneart.com> | |
####################################### | |
# INSTALL UHD ON UBUNTU OR DEBIAN # | |
####################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |--------------------------------------------------------| | |
# | OS | UHD | Test | Last test | | |
# |----------------|------------------|------|-------------| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |--------------------------------------------------------| | |
# | OS | MySQL | Test | Last test | | |
# |--------|--------------------------|------|-------------| | |
# | Ubuntu | Ver 14.14 Distrib 5.7.26 | OK | 16 May 2019 | | |
MYSQL_ROOT_PASSWORD=`head /dev/urandom | tr -dc A-Za-z0-9 | head -c10` | |
sudo mysql -uroot<<EOF | |
use mysql; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python2 | |
# -*- coding:utf-8 -*- | |
# pip2 install requests BeautifulSoup4 wget --user | |
import os, requests, json, re, wget | |
from bs4 import BeautifulSoup | |
root_save_dir_path = r'./netgear/' | |
if not os.path.isdir(root_save_dir_path): | |
os.mkdir(root_save_dir_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27a28 | |
> import subprocess | |
64,68d64 | |
< # Handle command line arguments | |
< parser = argparse.ArgumentParser(prog=PROGRAM_NAME, description='Toggle desktop idleness inhibition') | |
< parser.add_argument('-V', '--version', action='version', version=PROGRAM_NAME + ' ' + VERSION) | |
< parser.parse_args() | |
< | |
179d174 | |
< |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# This shell script is made by SyneArt <sa@syneart.com> | |
####################################### | |
# BUILD WIRESHARK ON UBUNTU OR DEBIAN # | |
####################################### | |
# | THIS SCRIPT IS TESTED CORRECTLY ON | | |
# |----------------------------------------------------------| | |
# | OS | Wireshark | Test | Last test | | |
# |--------------------|----------------|------|-------------| |
NewerOlder