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/sh | |
sleep 5; | |
/tmp/ebt_setup.sh | |
/tmp/fw_setup.sh | |
sleep 5; | |
/tmp/check_consist.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
Sub GeraEndereco() | |
Dim endFinal As String | |
Dim myRange As Range | |
Set myRange = Selection | |
lf = myRange.Row + myRange.Rows.Count - 1 | |
cf = myRange.Column + myRange.Columns.Count - 1 | |
For l = myRange.Row To lf | |
For c = myRange.Column To cf |
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
For Android devices: Script for setting CPU Scaling parameters (governor, min_freq, max_freq) | |
for all CPU cores. | |
Doesn't work for all devices - e.g. for my SGS4 the max_freq for additional cores (core != 0) | |
gets reset to the nominal CPU maximum frequency (cpuinfo_max_freq) when the cpu reawakens from | |
sleep state. So I'm leaving this here only for educational purposes and future reference for | |
myself. | |
This was tested on CyanogenMod 12.1. It should in theory work (as in the script should execute | |
without errors) on any rooted device with busybox installed. |
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 | |
### BEGIN INIT INFO | |
# Provides: terraria_server | |
# Required-Start: $local_fs $remote_fs $network | |
# Required-Stop: $local_fs $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# X-Interactive: true | |
# Short-Description: Start/stop terraria_server | |
### END INIT INFO |
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 | |
SPECIALEXTLIST=(app action caction definition bundle kext prefPane plugin jdk fs framework) | |
function joinList { local IFS="$1"; shift; echo "$*"; } | |
function getListWithTerminators { | |
PROCLIST=() | |
for EXT in "${SPECIALEXTLIST[@]}"; do |
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
<#@ template language="C#" debug="false" hostspecific="true"#> | |
<#@ include file="EF6.Utility.CS.ttinclude"#><#@ | |
output extension=".cs"#><# | |
const string inputFile = @"PRDataModel.edmx"; | |
var textTransform = DynamicTextTransformation.Create(this); | |
var code = new CodeGenerationTools(this); | |
var ef = new MetadataTools(this); | |
var typeMapper = new TypeMapper(code, ef, textTransform.Errors); | |
var loader = new EdmMetadataLoader(textTransform.Host, textTransform.Errors); |
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
@ECHO OFF | |
setlocal | |
FOR /F "tokens=1-4 delims=/:," %%a in ("%TIME%") do (set MYTIME=%%a%%b%%c%%d) | |
REM DEPENDENDO DE QUAL O IDIOMA OU COMO ESTIVER CONFIGURADO AS CONFIGURAÇÕES REGIONAIS DO WINDOWS, PODE SER NECESSÁRIO USAR A | |
REM PRIMEIRA OU SEGUNDA LINHA ABAIXO. COMENTE/DESCOMENTE A QUE FUNCIONAR MELHOR | |
SET TS=%date:~6,4%%date:~3,2%%date:~0,2%_%MYTIME% |
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
@REM !! ALTERE AS DUAS LINHAS ABAIXO PARA SE ADEQUAR SUAS NECESSIDADES !! | |
@SET "SEG=PE1" | |
@SET "EXT=txt" | |
@REM ******** NAO ALTERE NADA DAQUI PRA BAIXO! ******** | |
@ECHO OFF | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
FOR /R %%G IN (*.%EXT%) DO ( |
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
Windows Registry Editor Version 5.00 | |
[-HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd] | |
[-HKEY_CLASSES_ROOT\Directory\shell\cmd] | |
[-HKEY_CLASSES_ROOT\Directory\Background\shell\cmd] | |
[-HKEY_CLASSES_ROOT\Directory\Background\shell\01MenuCmd] | |
[-HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd] | |
[-HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell] | |
[-HKEY_CLASSES_ROOT\Directory\shell\powershellmenu] |
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
//Forked from kristopherjohnson/SHA1Util.cs gist | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Snippets | |
{ | |
public static class SHA1Util | |
{ | |
/// <summary> | |
/// Compute hash for string encoded as UTF8, return as base64 encoded string |
OlderNewer