Skip to content

Instantly share code, notes, and snippets.

View linuxgemini's full-sized avatar

İlteriş Eroğlu linuxgemini

View GitHub Profile

Keybase proof

I hereby claim:

  • I am linuxgemini on github.
  • I am linuxgemini (https://keybase.io/linuxgemini) on keybase.
  • I have a public key whose fingerprint is 03B9 8A66 9F30 6CFA 1AC5 A812 8518 57AE F956 0555

To claim this, I am signing this object:

@linuxgemini
linuxgemini / adbscreenshot-mac.bash
Last active June 18, 2017 23:53
ADB Screenshotter for Mac, Usage (in Terminal): "./adbscreenshot-mac.sh <optional filename>" without quotes. Requires Android Studio, Check the filename<.png> you choose is not present in Desktop. The default is "screen<.png>".
#!/bin/bash
if [ -e ~/Library/Android/sdk/platform-tools/adb ]; then
echo
echo ADB is installed. Go ahead.
echo
echo
else
echo
echo ADB, platform-tools or SDK is not installed. Install it and try again.
/*
SLIGHT MODIFICATIONS MAY BE NECESSARY IF YOU WANT TO RUN THIS COMMAND
ON YOUR BOT
*/
exports.commands = {
"bilgi": {
process: function(<client>, message) {
@linuxgemini
linuxgemini / fcopy.bash
Last active June 18, 2017 23:53
A weird way to move-to a-secure-place&share. Something higher than Ubuntu 12.10 required.
#!/bin/bash
# Move&Share Script v0.1.0 by linuxgemini
# Moves files in the format specified and runs a server daemon.
# Leaves no traces after using "stop" option.
# (Deletes the files in the destination folder (OPTIONAL) and stops the daemon)
SERVICE=vsftpd
SOURCE=/path/to/source/folder/
DEST=/path/to/destination/folder/
@linuxgemini
linuxgemini / ror-inst.bash
Last active August 30, 2017 12:08
ruby on rails installer for ubuntu 16.04 and 17.04
#!/bin/bash
# RoR Automated Install v2
if [[ $(id -u) -eq 0 ]]; then
isSomethingRoot=yes
else
isScriptReady=yes
fi
#!/bin/bash
DEST=/home/ircbot/hlsbuff/
streamName=run
# don't edit
topkek="*."
FORMAT=m3u8
FORMAT2=ts
/*
Please do note that this script will not do pulses on colours.
This is due to me not using H(ue) - S(aturation) - B(rightness) format
of Philips.
Written by linuxgemini, MIT License, 2017
*/
@linuxgemini
linuxgemini / randomcolor.js
Last active July 17, 2017 23:38
make your color random (discord.js 11.1)
/*
Warning:
The command core is written on the format of CommunityBot.
You can find my rendition here:
https://github.com/mertturunc/Bane/tree/test-dev
*/
exports.commands = {
"randomcolor": {
process: function(bot, message) {
{
"kr": null,
"any": null,
"us": null,
"eu": {
"heroes": {
"playtime": {
"quickplay": {
"widowmaker": 0.06666666666666667,
"torbjorn": 0,
@echo off
set /a minval=0
set /a maxval=1
:loop
set /a myrandom=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom2=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom3=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom4=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom5=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%
set /a myrandom6=%random% * (%maxval% - %minval% + 1) / 32768 + %minval%