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
##### | |
alias pc4=proxychains4 | |
##### | |
git_incremental_clone() | |
{ | |
REPO=$1 | |
DIR=$2 | |
git clone --recurse-submodules $REPO $DIR --depth=1 | |
cd $DIR |
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 | |
# From AWS doc | |
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-instance-addressing.html | |
# We release your instance's public IP address when it is stopped or terminated. | |
# Your stopped instance receives a new public IP address when it is restarted. | |
PATH=$HOME/.local/bin:$PATH | |
instace_ids="i-1348636c" #change it |
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
platform :ios do | |
desc "Resign Electra iOS ipa" | |
lane :resign_ios do | |
resign( | |
ipa: "Electra1141-1.3.2.ipa", | |
signing_identity: "iPhone Distribution: Luka Mirosevic (0123456789)", | |
provisioning_profile: "Electra_iOS.mobileprovision", | |
) | |
end | |
end |
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 | |
PATH=$PATH:/usr/local/bin | |
echo `date` | |
echo "Checking himawari" | |
if ! type himawari > /dev/null; then | |
echo "Install himawari with:" | |
echo | |
echo "brew install imagemagick" |
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 python | |
# -*- coding: utf-8 -*- | |
import tweepy, sys | |
#enter the corresponding information from your Twitter application: | |
CONSUMER_KEY = '' | |
CONSUMER_SECRET = '' | |
ACCESS_KEY = '' | |
ACCESS_SECRET = '' |
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
const { exec } = require('child_process'); | |
var glob = require("glob") | |
var cronTime = '*/10 * * * *'; | |
CronJob = require('cron').CronJob; | |
var job = new CronJob({ | |
cronTime: cronTime, | |
onTick: function() { |
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
import MediaPlayer | |
class ShutterSoundCanceller { | |
static func playShutterInvertSound() { | |
if let soundURL = Bundle.main.url(forResource: "photoShutterAntiSound", withExtension: "caf") { | |
do { | |
// Play sound even in silent mode | |
try AVAudioSession.sharedInstance().setCategory(AVAudioSessionCategoryPlayAndRecord, mode: AVAudioSessionModeMeasurement, options: []) | |
} catch { | |
print(error) |
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 | |
LOGTIME=$(date "+%Y-%m-%d %H:%M:%S") | |
# CHANGE THESE | |
auth_email="user@example.com" | |
auth_key="c2547eb745079dac9320b638f5e225cf483cc5cfdda41" # find in cloudflare account settings | |
record_name="www.example.com" | |
zone_identifier="023e105f4ecef8ad9ca31a8372d0c353" # get zone ID via API and store it here | |
record_identifier_ipv4="372e67954025e0ba6aaa6d586b9e0b59" # use List DNS Records api to get record id, link below ↓ |
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
VERSION=19.07.7 | |
# Download imagebuilder for R7800. | |
aria2c -c -x4 -s4 https://downloads.openwrt.org/releases/${VERSION}/targets/ipq806x/generic/openwrt-imagebuilder-${VERSION}-ipq806x-generic.Linux-x86_64.tar.xz | |
# Extract & remove used file & cd to the directory | |
tar -xvf openwrt-imagebuilder-${VERSION}-ipq806x-generic.Linux-x86_64.tar.xz | |
rm openwrt-imagebuilder-${VERSION}-ipq806x-generic.Linux-x86_64.tar.xz | |
cd openwrt-imagebuilder-${VERSION}-ipq806x-generic.Linux-x86_64/ |
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
# CocoaPods aliases | |
alias pod_install_quick="pod install --no-repo-update" | |
alias pod_update_quick="pod update --no-repo-update" | |
alias pod_repo_update="pod repo update" |