Skip to content

Instantly share code, notes, and snippets.

View fatihyildizhan's full-sized avatar
🎯
Focusing

Fatih YILDIZHAN fatihyildizhan

🎯
Focusing
View GitHub Profile
import UIKit
import AudioToolbox
struct SoundPlayer {
static var filename : String?
static var enabled : Bool = true
private struct Internal {
static var cache = [URL:SystemSoundID]()
}
#!/bin/bash
mkdir drc && cd drc
sudo wget https://github.com/DoctorCoinNGO/drc/releases/download/v1.0.2/linux.zip
sudo apt install unzip
sudo unzip linux.zip
chmod +x drc*
mv drc-cli drcd /usr/local/bin
cd ..
drcd -daemon
ls
echo 'dr civan'
drcd -daemon
sleep 8
drc-cli getinfo
sleep 1
drc-cli mnsync status
echo 'Cure exc'
echo 'oha Ya'
cd RLN.V.1.0/src/
./lotus-cli masternode start
./lotus-cli masternode status
echo ' Yohe Mi'
echo "begin"
cd RLN.V.1.0/src/
./lotus-cli stop
cd ..
cd ..
sleep 3
cd .lotuscore
ls
rm banlist.dat
rm .cookie
echo 'oha Ya'
cd RLN.V.1.0/src/
./lotusd
sleep 11
./lotus-cli masternode start
./lotus-cli masternode status
drc-cli mnsync status
echo ' Yohe Mi'
drcd -daemon
sleep 1
cd RLN.V.1.0/src/
./lotusd
sleep 11
./lotus-cli masternode start
./lotus-cli masternode status
drc-cli mnsync status
cd ..
cd ..
current_date_time="`date "+%Y-%m-%d %H:%M:%S"`";
echo $current_date_time
ls -a
echo "step 1: cd .lotuscore/"
cd .lotuscore/
echo "step 2: nano lotus.conf"
nano lotus.conf
current_date_time="`date "+%Y-%m-%d %H:%M:%S"`";
echo $current_date_time
echo "after save conf"
drc-cli stop
sleep 1
rm -r .drccore
drcd -daemon
echo "step 5: sleep"
for i in {10..1}
do
echo "Waiting! Remaining ${i}s";
sleep 1
done
@fatihyildizhan
fatihyildizhan / gist:450822246e8deb14099c
Created January 3, 2016 21:46
Swifty JSON manual using
// SwiftyJSON.swift
//
// Copyright (c) 2014 Ruoyu Fu, Pinglin Tang
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions: