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
#!/usr/bin/env python3 | |
# Just run this program. It'll find all 'archived' letsencrypt certs, | |
# and sets up the corresponding live/ entries. | |
# This solves the following error: | |
# CertStorageError: expected /etc/letsencrypt/live/example.com/cert.pem to be a symlink | |
import os | |
import re |
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
function nameToShortName(name) { | |
var x = name.match(/(.* ([EiWA][0-9]+[^ ]+).*)/); | |
if (x != null) return x[2]; | |
x = name.match(/(.* ([A-Za-z-]*[0-9]{3,}[A-Za-z-]*)( .*|$))/); | |
if (x != null) return x[2]; | |
return name; | |
} | |
var results = {}; |
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
#categoryBar, .fpaItemsWrapper, .inbetweenContent, #highlightedProducts, .secondColumn { | |
display: none; | |
} | |
table.highlights td { | |
padding: 0; | |
line-height: normal; | |
} | |
.mainColumn { | |
width: 100% !important; | |
} |
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
using System; | |
using System.Diagnostics; | |
using System.Drawing; | |
using System.Drawing.Imaging; | |
using System.IO; | |
using System.Windows.Forms; | |
namespace qnd_png_conversion | |
{ | |
class Program |
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
enum QR { | |
MonsterBook = 1047, | |
SAVE_EXP_BUFF = 1062, | |
WeddingDivorce = 1103, | |
WeddingVows30days = 1125, | |
WeddingVows100days = 1126, | |
RecommendPartyQuestSave = 1216, | |
MonsterCarnival = 1301, | |
MonsterCarnivalS2 = 1302, | |
BeastFormWing_On_Off = 1544, |
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
#include <idc.idc> | |
static main (void) { | |
auto ea = ScreenEA(); | |
auto xt; | |
auto r = RfirstB(ea); | |
Message("Function\tCall\tOpcodeAddr\tOpcode\tOpcodeHex\n"); | |
while (r != -1) { | |
xt = XrefType(); |
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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
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
// app/adapters/application.js | |
import DS from 'ember-data'; | |
// Note: In order to allow the Location header to be seen through CORS requests, | |
// include 'Access-Control-Expose-Headers: Location' header in your API response. | |
export default DS.RESTAdapter.extend({ | |
_ajaxRequest(hash) { | |
let originalSuccess = hash.success; | |
let originalError = hash.error; |
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
// app/serializers/application.js | |
import DS from 'ember-data'; | |
import Ember from 'ember'; | |
import coerceId from "ember-data/-private/system/coerce-id"; | |
var get = Ember.get; | |
export default DS.JSONSerializer.extend({ | |
extractId(modelClass, resourceHash) { | |
var primaryKey = get(this, 'primaryKey'); |
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
package controllers | |
import javax.inject.{Inject, Singleton} | |
import play.api.libs.json.Json | |
import play.api.mvc.{Action, Controller} | |
@Singleton | |
class HomeController @Inject() () extends Controller with PrettyJsonOutput { | |
def index = Action { implicit request => |
NewerOlder