This file contains hidden or 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/python3 | |
DEBUG = False | |
import math | |
import os | |
import random | |
import re | |
import sys |
This file contains hidden or 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/python3 | |
DEBUG = False | |
import os | |
import sys | |
def trie_find(node, path): | |
if not node.get(path[0]): | |
return 0 |
This file contains hidden or 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
$appname="one" | |
ng new $appname --prefix=$appname --enableIvy=true --inlineStyle=true --inlineTemplate=true --skipTests=true --routing=true --skipInstall=true --style=sass |
This file contains hidden or 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
# Install Chrome | |
choco install googlechrome -y | |
# Install Slack | |
choco install slack -y | |
# Install other packages | |
choco install nvm -y | |
# Install NodeJS |
This file contains hidden or 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: | |
## python(3) .\extract-packages.py filename.ext::filename2.ext | |
import sys | |
import subprocess | |
import json | |
import requests | |
def log(txt, line_end='\n'): | |
outfile = open('extract-packages.log.txt', 'a') |
This file contains hidden or 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
const copyToClipboard = str => { | |
const el = document.createElement('textarea'); | |
el.value = str; | |
document.body.appendChild(el); | |
el.select(); | |
document.execCommand('copy'); | |
document.body.removeChild(el); | |
}; | |
document.addEventListener('click', (e) => { |
This file contains hidden or 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
{ | |
"//0.0.1": "http://localhost:59659/", | |
"0.0.1": "http://192.168.137.1:59659/" | |
} |
This file contains hidden or 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
### Requires Pandoc. | |
### Install this using `choco install pandoc` | |
### | |
import sys | |
import subprocess | |
def log(txt): | |
outfile = open('convert.log.txt', 'a') | |
print(txt) |
This file contains hidden or 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 node | |
const Discord = require('discord.io'); | |
const teamcity = require('teamcity'); | |
const auth = require('../auth.json'); | |
// Create Discord Bot | |
const bot = new Discord.Client({ | |
token: auth.token, | |
autorun: true | |
}); |
This file contains hidden or 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
## dongle.conf | |
DefaultVendor=0x12d1 | |
DefaultProduct=0x1505 | |
TargetVendor=0x12d1 | |
TargetProductList="140b,140c,1506,150f,150a" | |
HuaweiNewMode=1 |