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 | |
#==INSTRUCTIONS | |
# - Add EMAIL and PASS infomation | |
# - Replace script path with your path `/home/USER/scripts/` in the script | |
# - Check your machine timezone `date +"%Z %z"` output ex: UTC +0000 | |
# - patckpub.com is UTC +0000, find the best hour for you to use in the crontab | |
# - Execute `crontab -e` | |
# - Add `0 1 * * * /bin/sh /home/USER/scripts/packtpub_redeem.sh > /home/USER/scripts/packtpub_redeem.out` , this mean everyday 1am | |
# - Restart Service `sudo service cron reload` (optional, crontab -e, will reload) | |
# - Add Permission `chmod 755 /home/USER/scripts/packtpub_redeem.sh` |
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
// ==UserScript== | |
// @name GoogleMusicDark | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Google Music Dark Theme | |
// @author Jose De Gouveia | |
// @match https://play.google.com/music* | |
// @grant none | |
// ==/UserScript== |
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
# Usage: | |
# 1. Select the objects in blender | |
# 2. Open a Text Editor view in Blender. | |
# 3. Press Alt + O, or go to Text>Open Text Block and open the .py file | |
# 4. Then simply press Run script | |
import bpy | |
if bpy.context.selected_objects != []: | |
for obj in bpy.context.selected_objects: | |
if obj.type == 'MESH': |
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
# Usage: | |
# 1. Select the objects in blender | |
# 2. Open a Text Editor view in Blender. | |
# 3. Press Alt + O, or go to Text>Open Text Block and open the .py file | |
# 4. Then simply press Run script | |
import bpy | |
if bpy.context.selected_objects != []: | |
for obj in bpy.context.selected_objects: | |
if obj.type == 'MESH': |
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
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "run", | |
"type": "shell", | |
"command": "D:/Godot/bin/Godot.exe --path \"${workspaceRoot}\"" | |
}, |
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
"use strict"; | |
export class JWTHelper { | |
/** | |
* Decode a JWT token | |
* | |
* @static | |
* @param {string} token | |
* @throws Error | |
* @returns object|boolean |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--memory", 1024, "--cpus", 1, "--vram", 256, "--accelerate3d", "on"] | |
vb.customize ["setextradata", :id, "GUI/MaxGuestResolution", "any" ] | |
vb.customize ["setextradata", :id, "CustomVideoMode1", "1024x768x32" ] | |
vb.customize ["setextradata", :id, "GUI/CustomVideoMode1", "1024x768x32" ] | |
vb.gui = true | |
end | |
config.vm.provision "shell", inline: <<-SHELL |
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
Vagrant.configure("2") do |config| | |
config.vm.box = "minimal/xenial64" | |
config.vm.hostname = "gitlab.local" | |
config.vm.network :private_network, ip: "192.168.10.20" | |
config.vm.network :forwarded_port, guest: 80, host: 8080 | |
config.vm.network :forwarded_port, guest: 443, host: 8443 | |
config.vm.network :forwarded_port, guest: 2222, host: 2222 | |
config.vm.provision :docker | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update |
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
/** | |
* Usage: | |
* const JWT = require('./JWT'); | |
* const payload = { | |
* 'sub': 1234, // userid | |
* 'iat': Date().now(), // issued at | |
* 'exp': Math.floor(Date.now() / 1000) + 86400 // expiration time (1day = 86400) | |
* }; | |
* const token = JWT.encode(payload, 'my_secret'); | |
* console.log(token); |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{577c6bb9-9c1a-42b3-93ff-613621d0072a}", | |
"profiles": | |
[ | |
{ | |
"guid": "{577c6bb9-9c1a-42b3-93ff-613621d0072a}", | |
"name": "cmder", | |
"icon": "G:\\data\\Programs\\cmder\\icons\\cmder.ico", | |
"commandline": "cmd.exe /K \"G:\\data\\Programs\\cmder\\vendor\\init.bat\" -new_console:d:%USERPROFILE%", |
OlderNewer