Instantly share code, notes, and snippets.

View bash.sh
#!/bin/bash -e
clear
YELLOW=`tput setaf 3`
GREEN=`tput setaf 2`
NC=`tput sgr0`
echo "${GREEN}"
echo "============================================"
echo "VOXTREAM INSTALL..."
echo "============================================"
echo "${NC}"
View list-files.ps1
Get-Item g:\* | Foreach { "Nombre: " + $_.Name + ", Creado: " + $_.CreationTime + "; Modificado: " + $_.LastWriteTime + ", Tamaño: " + $_.Length + " k
b" }
View Script1
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Script1 : MonoBehaviour {
public float velocidade;
//private Rigidbody2D rigidB;
void Start()
View IOTA-getTransactions.js
document.getElementById('search-transactions-js').addEventListener('click', function () {
let container = document.getElementById('transactions-js');
container.innerHTML = "";
let address = document.getElementById('iota-address-transactions-js').value
if (iota.valid.isAddress(address))
iota.api.findTransactionObjects(
{
addresses: [address]
}, function (err, res) {
if (err)
View canaisgui.m3u
#EXTM3U
#EXTINF:0 tvg-logo="https://logodownload.org/wp-content/uploads/2013/12/sbt-logo-5.png" group-title="TV Aberta",SBT
https://cdn.whostreams.net:8443/hls/kutf26.m3u8?s=3Y_DLgw0i3tFZtT8aKkj4A&e=1537853285
#EXTINF:0 tvg-logo="https://logodownload.org/wp-content/uploads/2013/12/sbt-logo-5.png" group-title="TV Aberta",Record
swfUrl= pageUrl=
#EXTINF:0 tvg-logo="http://pt-br.telepedia.wikia.com/wiki/Arquivo:Band.png" group-title="TV Aberta",Band
swfUrl= pageUrl=
View EMUBRK.diff
diff --git a/src/devices/cpu/m6809/hd6309.ops b/src/devices/cpu/m6809/hd6309.ops
index c96e3082d4..37e041e915 100644
--- a/src/devices/cpu/m6809/hd6309.ops
+++ b/src/devices/cpu/m6809/hd6309.ops
@@ -432,6 +432,7 @@ DISPATCH11:
case 0x3B: %TFM; return;
case 0x3C: set_regop8(m_md); set_imm(); %BIT8; return;
case 0x3D: set_regop8(m_md); set_imm(); %LD8; return;
+ case 0x3E: machine().debugger().debug_break(); return;
case 0x3F: %SWI3; return;
View gist:fd388370b93bceb47f82276389090a7b
Catfile | 4 +-
bin/includes/global-colours.sh | 31 +
bin/includes/global-environment.sh | 14 +
bin/includes/global-functions.sh | 91 +
bin/process_dps_txn_history.py | 25 +
bin/sync_d7_db.sh | 123 +
migrate-files.yml | 3 +
migrate-orders.yml | 5 +
migrate.yml | 4 +-
notes/compare-d7.sql | 115 +
View playground.rs
enum Test {
A(String)
}
fn main() {
println!("{}", std::mem::size_of::<Test>());
}
View gist:e1fc44b0b4bed4c2ced970624e4b4ecd
diff --git a/Catfile b/Catfile
index 2ff35ab2b..c5d701cf4 100644
--- a/Catfile
+++ b/Catfile
@@ -16,6 +16,6 @@ POSTGRES_PASS="nbr_website"
# Remote Production backup
PROD_FILES_SERVER="nbr-d8-st-web1.servers.catalyst.net.nz"
PROD_FILES_DIR="/var/lib/sitedata/drupal/nbr/files"
-PROD_DB_SERVER="nbr-d8-st-db1.servers.catalyst.net.nz"
-PROD_DB_DIR="/var/backups/pg/nbr-d8-st-db1/drupal-site-nbr/daily"