Skip to content

Instantly share code, notes, and snippets.

View cyrillbrito's full-sized avatar

Cyrill Brito cyrillbrito

View GitHub Profile
@Directive({
standalone: true,
providers: [
{
provide: NG_VALUE_ACCESSOR,
multi: true,
useExisting: HostControlDirective,
},
],
})
@cyrillbrito
cyrillbrito / -xdotool.md
Last active March 31, 2018 18:37
scripts using xdotool to automate something.

xdotool

This is a list of bash scripts using xdotool to automate something.

@cyrillbrito
cyrillbrito / -email-generator.md
Last active March 12, 2019 20:40
Email generator and special character remover.

Email Generator

This program is base in 3 files.

  1. list of first names
  2. list of last names
  3. list of nicknames

With this 3 files the generator will generate a specified number of emails and save them in a diferent file. Before using the generator you should use the FixNames.java on the lists. This will try to remove all the special carrecters that are not allowed in a email.

@cyrillbrito
cyrillbrito / -git-push.md
Last active March 12, 2019 20:40
The code will run git add, git commit and git push in a attempt to simplify using git in the console.

Git Push

This script is my attempt of simplifying git, by putting tree git commands in one. The sript will git add, git commit and git push. This will result in a simpler command but a lot less flexible. The script will always add all the files to the commit and pust to origin master. To use the command you need to be in the directory of the repository and use the command $ gitpush commitMessage. Example: $ gitpush Updated readme file

@cyrillbrito
cyrillbrito / -auto-dragon-ball.md
Last active March 12, 2019 20:41
Automatically open a new episode of dragon ball Z and GT in VLC.

autoDBZ

This script will remember the last watched episode of Dragon Ball Z you watched and open a new episode. The Scripts is getting the videos from Saiyan Watch. To use the script you just call the script and select the e episode you want to watch. The script is using python 2.7.

Versions:

0.01 (2015-12-??)
 Initial drop
@cyrillbrito
cyrillbrito / -minecraft-server-starter.md
Last active March 12, 2019 20:39
Automatically wake-on-lan a server, remote access it, run commands, exit the console and let the commands running and run sudo commands without asking the password from the console.

Minecraft Server Starter

I have a old laptop running linux that I'm using as a server for my modded minecraft world. And because I don't want the laptop to be on all the time I'm trying to make some scripts to automate the turn on and start of the server. This scripts will run from my main Windows computer.

How to use

To use this scripts you'll need python2.7, Wake On Lan and Plink on the windows side. And on the linux server you'll need screen. You also need to enable wake on lan on the server.